@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3



Comments:

<0> and most likely parsing through the same data...
<0> Pilum how can you do it any other way if you need your innerHTML and js... both comming from the server separately?
<0> with one server call
<1> As [Torgo] first suggested: in a seperate js file.
<0> yeh... but that would still be a server call
<0> to generate the separate .js file
<1> Yeah?
<1> Why?



<0> well, ok... let me explain
<1> Are your functions generated specific for each and every element you have?
<0> yes
<1> Lol
<0> the js code is dynamically generated
<0> and mixed with innerHTML .... now i can see its bad design but i do want to improve it
<0> and im not lazy
<0> i just dont see how 2 separate calls will improve what i have now
<1> If your functions can be more generic you can have a static js file.
<0> Pilum obviously ... their not specific for each and every element
<0> but they do vary for various elements....
<1> Indeed. And having 10-20 functions in a js file isn't that terrible.
<0> Pilum fare enaff... ***uming i do what you said... the calls to these functions will contain different variable then (which will have to be dynamically generated)
<1> Especially since the file will most likely be cached.
<1> P*** them as arguments.
<0> but to call a function you need to do it from within js...
<0> as in... addEventlistener ... etc...
<0> those sort of functions...
<1> Those can be ***igned with an init function.
<0> i know but think about it... these calls will be made after a certain innerHTML has been set...
<0> with dynamic variables comming from the server
<1> Perhaps you should look into ajax then?
<0> i am using ajax
<1> Then I don't see the problem.
<2> hahahahahahahahahaha
<0> Pilum how so?
<0> the ajax result is been set using innerHTML
<1> Change your response data. And run the appropriate stuff onreadystatechange.
<1> There is other stuff than innerHTML.
<0> like... ?
<0> sorry man im not sure what you mean
<2> because you're not using ajax ;)



<0> [Torgo] what do you base that ***umption on?
<0> ok... Pilum let me see if understand you right... , i still get data with js returned... but with that js there is loader function, then once the innerHTML has set the data... , i.e. onreadystatechange, i call that function (the loader function) which then executes all the relevant javascript...
<0> Pilum does that sort of make sense?
<1> If you understood me right you wouldn't even be thinking about using innerHTML
<0> well, i guess i didnt understand you... sorry i tried
<0> thanks for the help anyway
<0> Pilum ... or do you mean the data from the server to come in some sort of structure that i can then use dom to create the content out of it?
<1> Yes.
<2> *yawn*
<3> i have a function, and within her i want to set a style of an element like this: navig_content.style.display='none'; and i want to use a variable in that line: who + "_content.style.display='none'"; why doesn`t work?
<4> heard of getElementById ?
<1> Look up document.getElementById or document.getElementsByName depending on what who_content is
<2> document.getElementById(varnm + "_content).style......
<2> opps, missing a quote
<3> thank you
<3> but why it works when i use navig_content.style.display='none';
<3> and when i use witha variable doesn`t work
<1> Because that's an object reference not a string.
<3> ok :)
<1> (And a sloppy one at that if you ask me)
<0> Pilum i know not what you suggested... but what about something like this... ***ume that the spans content is comming from the server... http://pastebin.com/711154
<5> Is there any way to add an option to a select box if you alread y have the html code (like <option value="foo">bar</option>) or do I have to use the new Option() method? /me has a function p***ing him preformed <options> and doesn't really want to pick them apart just so he can put them back together again
<2> p***ing as what
<5> a string "<option ...</option>"
<2> oops
<2> gotta pick em apart then
<5> not my function
<2> should have p***ed them as nodes or as an array
<5> not my function dude.
<2> not my problem, dude
<5> yeah, of course it would be nice to have the input be formatted the way I want. But I have to work with what I've got. What's the point of telling me what the other person should have done?
<4> surprise, he is not from ro
<4> hmmm, seem someone try to prevent me to kick the spammer
<6> ht311, what spammer?
<4> Neo :) got a lot of funny thing on the screen before, I got -o , could be a glitch of undernet again,


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

#MissKitten
suphp glibc detected *** double free or corruption (fasttop)
#php
#MissKitten
#AllNiteCafe
#linuxhelp
#apache
#asm
WHAT BODY OF WATER IS THE OLD PORT OF MARSEILLES ON ?
#chatzone



Home  |  disclaimer  |  contact  |  submit quotes