![](http://content.invisioncic.com/r49260/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
Chocolate570
-
Posts
1,550 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
Events
Posts posted by Chocolate570
-
-
Yes, it's possible. The code would be like:
UPDATE table SET field = value WHERE where_clause
Where table is the table, field is the field, value is the value, and where_clause is the where clause.
(thanks to Ascii_OSborn for giving me the answer on that one
)Good luck.
-
Can't you run on the 4th down?You can at least change a stylesheet dynamically. That much I know.
-
Nice job! Can't wait till the next version.
-
Well, if you are getting inconsistent results, that just may be different types of OS's and browsers speaking. Unless it's only on your computer.Also, I'm pretty sure it's simple using str.replace(/%5/gi,"/");. Try that?That would mean trying to parse for these characters and replacing them with the appropriate slash or space. But I am concerned whether these will really work since I am getting inconsistent results from location.pathname. -
Try this instead.
theFrame=' <html><frameset rows="50%,50%"><frame src="frameset.htm"><frameset rows><frame src="exit.htm">'theLeaf= window.open('frameset.htm','', 'height=200')theLeaf.document.write(theFrame)document.close()
-
Hah! I quoted you! :)But remember, document.createElement('table') will not work in IE or Opera. There's a different way of doing it...it's something like document.createElement('<table attribute="value"></table>'). But don't quote me on thatMy guess is because you are using document.writeif you create the elements throught he DOM then append them to the page it should work.var tbl = document.createElement('table')
I believe I read somewhere that W3C is going to depreciate document.write in favor of a DOM method...don't quote me on that though.
-
I don't understand. Would you like it that if a user picks 'date' in the first box, all the other boxes don't have 'date' in them? :ph34r:
-
Never learnt RegExp. Whenever I sit down and read a tutorial, my mind wanders.
-
Yes, actually it is possible to find out what xx and yy are. But you'll have to change your file names. For example, this would be one image:file:///c://....../fir11sec22.jpgThis would be to get the first and second numbers:Thanks for the replyI have all the images named on a logical order (i.e. 0101.gif 0102.gif 0103.gif 0201.gif 0202.gif 0203.gif 0301.gif 0302.gif 0303.gif )Is there any way to actually change the URL of the image, or say the URL is file:\\c:/...../"xxyy".gif, and have some formula to work out xx and yy?
<script type="text/javascript">x="file:///c://....../fir11sec22.gif"y=x.split("fir")z=y[1].split("sec") //z[0] is now 11, the first number, so now refer to z[0]secZ=z[1].split(".") //secZ[0] is now 22, the second number, so refer to secZ[0]//make it easier:firNum = z[0];secNum = secZ[0];//Do the stuff</script>
And now you have seperated the numbers. :)Choco
-
This is the javascript section. The W3S forum currently does not have a JSP section, so unless someone happens to look at this topic, I suggest you go to another forum and ask.
-
If you really need the refferer's URL with a window.open, just detect the parent of the current window and record its location.
-
I can't figure out what exactly you're trying to do. But use this instead, you forgot a <.
<script type=text/javascript>var strStart, strWhere, strEnd, strAll, strSlash, intLast;//set first part of link elementstrStart='<link rel="stylesheet" type="text/css" href="';//set last part of link elementstrEnd=' ">';//set slash stringstrSlash ="\\";//determine location of last backslashintLast=location.pathname.lastIndexOf (strSlash) +1;//parse pathname and append help filenamestrWhere= location.pathname.substring (1, intLast) + "helpsys.css";//build complete link elementstrAll=strStart + strWhere + strEnd;//write link elementdocument.write(strAll)</script>
-
1. Try looking at this: http://www.w3schools.com/php/php_install.asp2. See #13. See #24. You'll always be able to put the php files on your computer, just not run them. But yes, if you install this, you will be able to execute PHP on your computer.5. See #46. Not sure about if it'll work on your OS, but it probably will.Good luck.ChocoSorry for spamming guys, but I have some questions that needs the be asked.First of all, I want to start learning PHP, I know HTML, XHTML and abit CSS, I tried ASP first, but its to hard for my understanding.So I sayed - "PHP it is!", but I have some problems.So, I think I want the PHP on my computer, so I will not have an upload frenzy, yet, some issues:- http://httpd.apache.org/download.cgi - What do I install here?! there so much links, and words like "Unix" that I can't understand, if any one here can just give me a link.
- Once I finish installing it there, where do I install PHP?
- Once I finish installing the Apache server and PHP, where do I install the MySQL server?
- When ill finish the 2 things above, will I be able to put .php files every where in my computer?
- If not, where will I put the .php files?
Ill love some answers,thanks in advance.Btw, im using windows 98 SE.Yuval.[Oh, another thing, English isn't my first language, so I'm sorry if I have grammar or spelling mistakes in the post].
-
Possibly set a hidden form input value to the variable with javascript, and then submit the form to the ASP, and the ASP can check the variable?
-
You could compare the current map to the directed input of the user using arrays and DOM. When clicking the 'expand map' thing, you could check the corner image location, and using specific filename patterns, figure out what row/column of images is to be added.This is quite an ambitious project. Post if you need more help.
-
Well, next time, to promote cross browser, make sure you have 'java script:' in front of the function.
<a onclick="javascript:function()">click here for something to happen</a>
-
Guess who? FireFox 2.OMG! I'M A POET! LOLZ!:)FireFox 2 Alpha Pre-Release is available on download.com. Haven't tried it, it says if you install it, your current version is screwed. Maybe when beta comes out...
-
He has: obj.onchange = function(){this.SelectedIndex = obj.selectedIndex}See?
-
Are you running this on a server or your own hard disk? If the latter, then most of it wont work.
-
Use document.obj.onchange? If I understand you correctly. :S
-
Yes, you should use a full script tag, including the type attribute.
-
Aspnet,Maybe I'm just inane--or is it that you can just do this on the line with the error?
this.Items[i].Remove = obj.options[i] = null; //ERROR
Why would you need the function()? :S
-
Can W3Schools be Downloaded?Very often we are asked by educational institutions and others, if their students can download our tutorials so that they don't have to be on-line when studying them.We are also often asked if it is possible to read our tutorials off-line by people who want to reduce their telephone bills.Some people even ask us if our tutorials are available in books, as a hardcopy, or on a CD.The answer to these questions is NO.We are truly sorry that we cannot help you with this, but if you read the previous paragraphs, we hope it can help you understand why.Also keep in mind that Web technology changes so fast that offline tutorials will quickly become outdated.
-
No problem, good luck with it.
CSS inside javascript
in JavaScript
Posted
Ok, ok. I was 50% right. Thanks for teaching my something :)And if anyone quotes me this time....i'm going to suspend them. The fact I was wrong should not be circulating around on this forum....or else...![:)](//content.invisioncic.com/r49260/emoticons/default_smile.png)