| |
| |
| |
|
Page: 1 2 3 4
Comments:
<0> </head> <0> <0> <body> <0> <1> my code button from link ... <2> heh <1> type="button" <3> webmasters: So what is your code for the function? <3> And use a pastebin if it's more than 2 lines. <2> why does IE complain about "checked"? var e = document.forms['myForm'].elements['myCheckbox']; if(e.checked){} <2> works in FF. <3> Just do == true <2> if( true == e.checked ){} gives the error "checked is null or not an object" <0> just (e.checked) works in IE. <2> maybe an error elsewhere then. <0> But are you sure IE find the element?
<3> if(e.checked == true) <0> alert(e) <0> pilum: what should be the difference of (e.checked == true) and (true == e.checked)? <0> sukotto: URL to a simple example? <2> building a pastebin <2> http://sukotto.pastebin.com/765118 <2> the error is on line 69 <3> No difference really. Just feels more logical to me ot use a syntax closer to my spoken language. :-) <2> called from line 126 <3> name... another property. You have bad naming policies heh. <2> Pilum: I did if( $myVar = $const) once too often <3> Looks like a conflict right there. <2> now I do if( $const == $myVar ) so if I screw it up I get an error right away <3> document.getElementById(name).innerHTML += e.name <3> And even if it isn't, it's still a bad idea to call your parameter "name". <2> changing it now <2> :-) <3> For there are such things which _will_ conflict. :-) <0> line 64 <0> for(var i in document.forms['subscribeForm'].elements) <0> you iterate through all properties of the elements object <0> You probably mean <0> for(var i=0; i<document.forms['subscribeForm'].elements.length; i++) <3> kirschkern: for(i in array) is quite valid <0> Of yourse <2> I want to visit each checkbox <0> But the elements object is no array in IE but a collection <3> And collections act just like arrays. <0> No <3> For the purpose of accessing them they do. <0> Yes, but not when iterating through the whole object <0> Try iterating a HTMLCollection returned from getElementsByTagName <3> As long as you make sure that the typeof() is object before you do anything with it, it's no problem. <2> so something like if( typeOf(e) != 'checkbox' ){ continue; } ? <3> No... <2> with whatever attribute of e gives the name <3> typeof(checkboxRef) == 'object' <3> e.nodeName != 'CHECKBOX' if you want to check if it's a checkbox. <2> IE complains that e.nodeName is null or not an object. kirschkern's different for loop (using element.length) makes my original code work though. <3> Indeed. <3> And I prefer doing it that way myself. <2> so, although I like the look of the other way. I'll go with what works :-) <3> I bet hehe <2> thanks for the help guys <4> hi. <4> how can I access 2 function with body onload? <5> ="function1(); function2()" <4> great. thanks. <4> body onload="func1();func2()" is that correct? <5> yep <5> should be <6> ; seperate <6> d <6> like all code ;) <4> ok. <7> Good morning ht311. <8> morning <8> got a lot of pm spam this morning... <7> One of the things I Like about the Unternets, the pm spamming.
<7> I've been nagging in #cservice a couple of times, but it seems they don't care, or don't know how to resolve that problem. <8> this "<Tytanyum>" have send me over 3 msg this morning ... <8> and we got more virus bot here too <7> It's really bad, I don't like it a bit, that's one of the reasons I went to freenode. <8> the virus bot is find, is easy to kick and ban. usually i only got 1 spam per login, just today is getting worse <7> I got this from #cservice, but it didn't help, on-connect I do a /quote silence +*!*@*,+~*!*@*.undernet.org,+~*!*@undernet.org which should only allow privmsgs from registered users. <8> nice to know <9> hm, making undernet work like freenode :P <7> mm <0> Anyone with some XPCOM knowledge here? <7> <- Not me. <0> That's at least some usable information ;-) <10> <- No here, too. Hopefully all this usable information will add up to something. <2> Anyone know why changing an element.innerHTML makes extra whitespace appear in IE? <2> see http://sukotto.pastebin.com/765384 line 92 & 97 make the change to the elements on 121-123. Works fine in FF, but in IE an extra line is inserted above the text links. <2> I thought MS *invented* innerHTML... <2> highlighted the problem lines here: http://sukotto.pastebin.com/765404 <0> Nice bug <0> No idea. But using <0> obj.firstChild.nodeValue = "subscribe me"; <0> instead works. <2> thank you! <2> yes, that seems to work just fine. <11> Hello, I'm a little new to DOM and what I have so far is to add/remove a text field dynamically. What I want is to be able to submit all the values in the fields but I am having a little trouble going around it. I'm using an html form for this. Anyone have any idea? <8> you set the name to the new field? <11> in setAttribute? <8> use mynewfld.name = "blah"; <11> hmm <2> or if the field has an id you can do something like document.getElementById('myTextField').display = "none"; <11> right now I have var inp1 = document.createElement('INPUT'); and inp1.setAttribute("Name", "Name" +inputs); <8> will fail in IE <11> =/ <11> How come <8> ask IE <3> sukotto: .style.display <2> whoops <12> hi. i want to setup a web page where a person will click on the link that will open up a browser. when the second browser opens up it will autofill parts of the form on that page automatically. what is this called <11> I'm confused in how to retrieve the info entered in my textfields via submit form <12> specifically, my name and email won't have to be typed because it will already be there automatically <3> Several browsers do that automatically. <11> http://rafb.net/paste/results/07DLjY27.html this is what the function looks like, I am using id.. I call the addContact function in one of my rows in my registration form <11> When a user hits "add" a new textfield is created, I can't figure out how to p*** all the info he enters in those fields <11> <-new2javascript <8> .value <11> I can use that directly in html ? <8> inp1.value = "blah"; <12> Pilum, i want the code in the webpage <11> because I want to store the data in php variables to insert <11> ok <8> chadtech: there is nothing come free. you cna save your own stuff to cookie, don't expect you get people's email before they submit it to your first <8> Agouri: your code didn't make any sense <12> i dont want their email <12> i just want them to click "click here" and when the new browser with forms open up like "Name:" and "email" i want my name automatically put in those forms without having the clicker type them <11> ht311: what do you mean <8> input++ without a loop? <11> thats for the delete <11> everytime you hit add, it increments it.. <11> in a sense, might not even need it to increment <11> bool with suffice, you're right <11> will* <8> chadtech: why don't you put your name and email on the 2nd html page then? <12> the 2nd page isnt' mine <12> that's the problem <12> it's a click-redirect <8> nothing can help you there <12> how about a popup while leaving the page then <11> ht311, so what are you implying! Does my function need to return something to get it to work <8> chadtech: read on window.open <12> ok <8> Agouri: nothing. <7> Hello [Torgo] <13> lo` <14> has anyone seen an error like INVALID PROCEDURE CALL OR AUGMENT ERROR=5 in javascripts? <13> be more specific
Return to
#javascript or Go to some related
logs:
#linux #chatzone kalungat #c #linux #AllNiteCafe #chatzone jen carston
boot mirc #MissKitten
|
|