| |
| |
| |
|
Page: 1 2
Comments:
<0> hi..! i want to execute a javascript function when my page load... so i put my script in my <head> like fucntion test() { alert("test"); } and call my function in my body like test(); it's alright? <1> hi when I have a <TD name= <1> hi when I have a <TD name="testname">test</td> and I do function with document.testname.style.color='red'; in a function, it doesn't work. <1> how come ? <2> hello <3> hello, how can i convert a numeric to string? <4> .toString ? <3> oh. i will try <3> pilum, .toString doesnt work <3> hmm i initialize the variable as: var myInt = 1; <3> will that be ok? <3> hello big\Al :) <5> morning <4> How do you use it? <3> its actually my counter. <3> it could be an index to my array
<4> Why do you need it to be a string then? :-) <3> now, if i concatinate the variable to my control IDs, it will be a problem <3> this.modRecipe.findContentId('textBox' + myInt); <- this one <4> Since when? <4> Should not be a problem. <3> this.modRecipe.findContentId('textBox' + myInt.toString); <-- still error <4> Concatinating with '' is a common way of converting to string in fact. <4> So your error must be something else. <5> .toString() <4> And toString is a method yes. <3> aw.. ok i will check <3> big\Al: thanks i will try <4> Irrelevant however as 'textBox' + myInt will work just fine. <4> Check your function. <3> Pilum: 'textBox' + myInt.toString() works <3> 'textBox' + myInt doesnt <3> oh by the way, i use FF2 <4> So? <4> You have some serious flaw if 'textBox' + myInt doens't work. <3> hmm i just added .toString() and it works fine <5> whats typeof(myInt) return? <3> ok i will try <3> its a "number" <5> odd <4> alert('textBox' + myInt) <3> ohh it works <3> textBox1 <3> this is bizarre <4> I've p***ed a 'string' + int as an argument plenty of times. <3> i believe this could be something in my code. the javascript console is not pointing the right error <3> Pilum: what tools you usually use for debugging javascript? <4> The console in Firefox mostly. <2> back <6> any good trick 4 making global.asa Session_OnEnd usable? i'm using xml and access to file is denied when ending session <6> i'm so tired of global.asa crap <7> Hello, I have 2 objects in two separated files: GeneralCombo(){} and ClientCombo(){}, both have a "create" method and only one object has an alert inside. when I do: gc.create(name); and later cc.create(name);, the alert shows up in the two calls... any hints? <5> you will need to paste some code somewhere <6> bet one instantiates the other <7> neur: no :) <7> var gc = new GeneralCombo(); var cc = new ClientCombo(); <6> ClientCombo is creating a GeneralCombo on the construction process <7> nop <6> so you get alert on both <6> the show clientCombo construction <7> no, noone relates to the other in any way <6> they got to <7> I was using document.write to output some data and work with it later. (didnt want to use document.createElement.... etc..) <7> so I think it was printing the previous one (maybe a threading problem), dunno. But I fixed using the slowest way (document.createElement.....) <6> bye then <8> hi, how can i dynamically change the alignment of the content of DIV? <5> document.getElementById("yourdiv").style.textAlign="right"; <8> big\Al: thanks... does document.getElementById("yourdiv").align="right"; valid? <9> looks valid to me <5> yes <9> although I'd use styles to align rather than that property <8> ahh ok thanks <9> as that property is deprecated <8> ok, i will use style instead <8> .style.textAlign="middle"; or .style.textAlign="center"; ? <8> doesnt give errors <5> center is valid, middle is not
<9> ErwinPOGI: http://www.w3schools.com/css/css_reference.asp <8> thanks <8> ok i will read that <9> better than average css reference <8> yeah this is a good css cheat codes <2> laters <10> can someone tell me how to get PST date in js ? <4> Check the UTC functions and calculate the difference? <11> hi for some reason when i am trying to get the value out of a <input type="text" id="txtName">.. when i do alert(document.getElementById("txtName")); it returns null <4> Just use the collections to get form elements. <10> Pilum i cant seem to get an example <10> would yoy have one ? <4> No. But I have the reference. <4> http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Date <11> document.forms[0]; returns null <4> Premature execution. <11> oh i see yeah you're right <12> Hello,Is there any js code we can disable showing ads? <13> yes i can eat salad when it rains purple under the cats chair <12> What? <14> XroX, adblock <12> Yea <14> Use adblock for firefox <12> No that <12> I uses a free hosting site and it shows adds so now i want not to show that to others. <14> heh <15> hello,can u tell me a site to learn js ? <15> except w3schools.com <15> please <15> ah <15> please <16> just try to do something and if you dont know how, find out how to do that specific task <15> what is switch <17> i don't understand why everybody is like "great tuts on w3schools" <17> w3schools ****s imo <4> They're not great, they're for starters. <17> i hate them <17> i can never find what i want there <4> They're just ment as a newbie resource, not a reference or advanced tutorial. <15> how can i learn js <15> please <15> i want to learn <4> You want something more advanced than w3schools? <15> w3schools.com is good for learning? <15> how did you learn js ? <15> w3schools.com is good for learning? <18> allo <15> hallo <18> jessait de rouler des rss sur ma page acceuil de mon site <15> lol <18> localement sa roule <15> what language is this ? <18> mais quand je lenvoie chez mon hebergeur <15> spanish ? <18> il affiche pas les feed rss <15> espaniol ? <15> a rss feed <19> spreak engrish <18> yes <15> yes , what are the rss feed <18> readRSS("http://www.cyberpresse.ca/apps/pbcs.dll/section?Category=CPRSS&profile=1002&mime=xml&cacheid=1002"); <18> reedrss is a fonction javascript <19> nope <18> 5 New web four you! Tv online , Ajazeera, Tva, Rds, Playboy, ***y, france24, BBC, TV5, 476 Radios, Sadam Hussun and more http://pages.globetrotter.net/g.gagne/tv.htm <18> oups <18> desoller <18> sorry <18> i stooped my timer <18> ma question <18> commend lire le feed rss <18> les serveur semble pas pouvoir faire des appels exterieur <19> how about reading the channel rules? <18> my ebglish is very bad <18> :)
Return to
#javascript or Go to some related
logs:
adu bhali #mtg undernet apt: command not found ubuntu #squid #apache spamassassin installions kumanovci #MissKitten #c #windows
|
|