| |
| |
| |
|
Page: 1 2
Comments:
<0> Huh? <1> huh? <0> You don't know what a function call is? <2> it would realy be best if you read a basic introduction ... :) <0> I concur. <2> don't be stuborn :P <1> lol <1> me too <3> how would you tell the function call the name of the file where is the function
<2> jumikan: http://www.w3schools.com/js/default.asp <1> you don't need to specify the file <0> jumikan: You don't. <2> read that, you'll know the answer to your questions within this day :P <1> if the file is included, well, your function will be defined and you may call it <3> oh ok, what if there are two functions with the same name? <1> you can't <0> Then you have a conflict <1> and... errr <1> not in JS only <1> that's a basic script stuff <2> jumikan: the function that comes last in the file is used <2> jumikan: but... don't do stuff like that! :P <3> I got it <2> can i ask why you would need that? or was it just general intrest? :) <3> for interest I was curious about going trough all the file if the file is too big, but then again txt files are never that big <2> depends on what you put in them... <4> "i'm looking for people who knows about website design: html, xhtml, css, javascript, photoshop, flash, dreamweaver." <5> variaable i_max has the value 9 when I do alert 9 +1 it displays 91 instead of 10. How can I force javascript to treat it as a number <0> parseInt <5> thanks <6> <div id="container"> <div>content of the first div</div><div></div><div></div> </div> How to retreive the content of the first div ? <6> firstChild ??? <7> depends on what you call first <6> ??? I would like to do something like this : var content = document.getElementById('container').firstChild.innerHTML; <6> But it undefined... <7> which part of it is undefined? <6> Where can I paste my code? <7> try the url in the topic <8> you got the whitespace node. you need to loop the childNode until you find the first div <6> doh ! but... how can I do that ? (I think my code is on http://pastebin.com/760348 but the site seems to be down) <8> read on childNode, nodeType, tagName <6> Ok <9> How do I encode text in a form to get rid of & signs alltogeather, then put the & signs back in when the PHP gets the query string <9> Im sending the form text to a PHP script using ajax
<9> the extra amperstands are messing it up <10> &=& <11> encodeURI() iirc <9> encodeURI doesn't help <11> ah encodeURIComponent maybe <9> but not escape? <11> no, escape has been replaced by those two <9> is there a unencodeURIComponent equivilant for PHP? <9> or decode, whatever <12> tybalt: you don't have to decode <9> why, is it one of those situations where PHP takes care of it for me? <12> yup <9> great <12> in fact, the browser should take care of it <12> tho, you will have to encode it when you're outputting from php to html <12> as for the & you don't need it when you're setting location <12> from js <12> entities are used only to escape html <12> which gets unescaped by the browser <9> encode what output? <12> links and stuff <12> you should encode everything which is not html <9> I still don't understand what you're saying, but my app works now so thanks anyway. <12> well all kind of craps are working around the web, I was just pointing out stuff that would get your app out of that category <8> especially for the crap need to be handle within php <12> htmlspecialchars('mypage.php?test='. urlencode($value) .'&test2='. urlencode($value2)) <12> that's how a link should look in a href <12> sorry <12> no & <12> just & <8> not really , w3 validator don't like just & <12> it will <12> cuz it gets encoded by htmlspecialchars <12> you should also use htmlspecialchars for anything that you're outputting out of db or other sources that was initialy user-input <9> What the hell is HTTP error 414? <8> http://www.google.com/search?q=error+414 <11> request uri too long, apparently <8> stop being lazy, use POST <9> That is a huge problem. (In more ways than one). <8> you can't get with more that 4096 bytes queryString, that means 2048 charaters <9> Fixed. thanks y'all
Return to
#javascript or Go to some related
logs:
adaptec 2610SA ubuntu #AllNiteCafe serial telebubbies ubuntu+bash : [-d: command not found #chatzone fsoap #gentoo vitamini nara #apache #AllNiteCafe
|
|