| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10
Comments:
<0> hi! <0> how can I set cl*** name to element ftom js function? <0> var elem = document.getElementById(myElem); <0> elem.cl*** = "cl***name"? <0> is it right? <0> hello? <1> easiest way to find out is try it <1> certainly faster than the 5 minutes it took to ask :) <0> I've tried <0> I didn't find any documentation... <1> oh wait I just remember something, that ISN'T right, you have to ***ign to something else :) <1> zarathushtra: elem.cl***Name = "cl***name" <0> thx ! <2> can I use the dom and js to generate an id with an onclick attached to it? <3> sudoer: Of course not. You can generate an element with an id and an onclick attribute though. <2> like can I generate "<a href="blah" onclick="blahblah">
<2> oh, how do I learn how to do that? <4> hey guys! i've just found something weird: parseInt("08") and parseInt("09") return 0, while it returns 0..7 for "00".."07") respectively. i'm talking about firefox. anyone experienced something like this? <5> Khisanth! <3> mlaci: Confirmed <1> that is actually not very suprising :) <6> mlaci numbers starting with a 0 are read as octals <3> Aah <3> Heh. <6> specify the base as 10 for the 2nd param of parseInt <4> oh man! <4> indeed! <3> Duh. :-P <3> Should've thought of that. <2> is there a way to generate a unique element if for a page built in js? <4> is there any alternative of parseInt() where i can give the base number as 10 in case of decimal? <3> sudoer: There are several. But a page shouldn't be built in JS. <1> mlaci: Raevel already told you! <4> Khisanth: sorry, thanks! <2> element id i meant to writwe <3> sudoer: Answer's the same. <1> it sound horrifically slow <2> Twey_: could you help me to learn about those methods? <7> are u interested Toni ? <7> the prise is 10$ <7> or apply for my project here <7> http://www.freewebs.com/betbrain/hidden/IT/money/allprojects <3> sudoer: Not much to learn... document.createElement(strTagName) returns a new element... HTMLElement.(ap|pre)pendChild(elChild) adds a child to the element <2> what aboutthe id it creates? <3> sudoer: It doesn't create an ID, you have to ***ign one. <8> var tr = document.getElementById("yourRowId"); tr.parentNode.removeChild(tr); <2> what are good general practices for managing lists of items, I want to add/delete an item on the fly, so I also need to create an id for each element so I can reference it <3> sudoer: Why an ID? Store a pointer <2> Twey_: store a pointer? <2> I am unaware of how to do that <3> sudoer: var mydiv = document.createElement("div"); <5> hey Twey :) <9> I want to find out if one string starts with a seccond. can I use a variable in a regex somehowe? <3> Daveman: Hi :-) <3> timthelion: No need. if(string1.indexOf(string2) === 0) doStuff(); <9> ahh <9> thankyou <9> are you the same twey as the one at dinamicdrive? <9> did you mean to put 3 equal signs there? <3> timthelion: Yes <3> timthelion: And yes <9> I am getting an error in a txt file. how is that even posible? <9> http://mysite.verizon.net/res8szeo/reader <9> !v http://mysite.verizon.net/res8szeo/reader <10> HTML: Not valid - Errors: 5, http://validator.w3.org/check?uri=http://mysite.verizon.net/res8szeo/reader/ <10> CSS: Valid - http://jigsaw.w3.org/css-validator/validator?uri=http://mysite.verizon.net/res8szeo/reader/ <2> parentNode has no properties ? <2> var tr = document.findElementById('some_tr_in_table'); alert tr.parentNode ,how cnat that tr not have a parentNode? <11> hi <3> sudoer: It's getElementById not findElementById <2> Twey_: sorry, I typed it wrong in irc, I have it correct in code, I still can't remove the element <3> sudoer: Can occur if you got the ID wrong. <2> the id is correct <2> var tr = document. getElementById ('123'); alert tr <2> that prints 123 <2> tr.parentNode prints undefined
<3> sudoer: That's not a valid ID, for a start :-) <2> 123 isn't a valid id? <12> 'lo, could someone please take a peek if the popup on shoutcast.com is a silly js or some form of script insertion? <3> sudoer: Can't start with a number <9> can someone look at the errors that come up on http://mysite.verizon.net/res8szeo/reader and shed some light onto why they exsist? <13> hi <13> is it possible to create a global variable inside a function? <13> because I need to declare a variable with a dynamic name (I'm gonna use eval for this) and thus can't declare it before I enter the function <3> chye-fhut: Looks like someone cracked it to me. <3> chye-fhut: Harmless, though. <12> k, thank you. <12> i thought i was daydreaming <12> heh <3> chye-fhut: Lol <1> there is no popup ... <3> Khisanth: There is if you don't have a popup blocker <1> I don't <3> Khisanth: <script>alert('Lea is ***y <3\nSploited by Warlord\n ~ elitecoders.org')</script><script>window.open('http://myspace.com/warlordmix')</script> <12> i bet he has already have a few hundred thousan hits to his Myspace <12> heh <3> relix-: Don't do that. <3> chye-fhut: Lol, probably <3> chye-fhut: (shrug) Fair game, no-one gets hurt <1> nope, that is no where to be found in the source <3> Khisanth: They've fixed it already then :-) <1> hmm no, had to reload the page <3> Khisanth: Nope, they haven't. Sure you're not looking at a cached version? <3> Ah, there <1> probably some server side caching <13> Twey_: it's kinda the only way I figure this to work <3> relix-: There's never a need to use dynamic variable names. <3> relix-: Since JS allows you to specify a property as a string. <13> oh <13> how so? <13> would be excellent <3> relix-: object['property'] is equivalent to object.property <3> relix-: Aside from JSON and a couple of AJAX-based exceptions, there's never a need to use eval(). If you find yourself using eval(), you've done something *wrong*. :-) <9> !v http://mysite.verizon.net/res8szeo/reader <10> HTML: Not valid - Errors: 25, http://validator.w3.org/check?uri=http://mysite.verizon.net/res8szeo/reader/ <10> CSS: Valid - http://jigsaw.w3.org/css-validator/validator?uri=http://mysite.verizon.net/res8szeo/reader/ <3> !v http://www.twey.co.uk/includes/rubber/demo.html <10> HTML: Not valid - Error: 1, http://validator.w3.org/check?uri=http://www.twey.co.uk/includes/rubber/demo.html/ <10> CSS: Valid - http://jigsaw.w3.org/css-validator/validator?uri=http://www.twey.co.uk/includes/rubber/demo.html/ <3> Er? <13> Twey_: ok, thanks <13> now to learn how to work with objects... <3> Why did it add a slash onto the end of my URL? <6> relix- www.edea.se/articles/objects <3> No wonder it didn't validate, it's looking at a 404. <6> if you meant hash-style <1> timthelion: it seems to be getting worse :) <13> yes, thanks raevel, excellent :D <9> !v http://mysite.verizon.net/res8szeo/reader <10> HTML: Not valid - Error: 1, http://validator.w3.org/check?uri=http://mysite.verizon.net/res8szeo/reader/ <10> CSS: Valid - http://jigsaw.w3.org/css-validator/validator?uri=http://mysite.verizon.net/res8szeo/reader/ <9> kh:well the errors I am having are in the javascript console. go ahead and look at the site. <3> Who owns this bot? b0at <3> ? <3> !v http://www.twey.co.uk/includes/rubber/demo.html <10> HTML: Not valid - Error: 1, http://validator.w3.org/check?uri=http://www.twey.co.uk/includes/rubber/demo.html/ <10> CSS: Valid - http://jigsaw.w3.org/css-validator/validator?uri=http://www.twey.co.uk/includes/rubber/demo.html/ <3> No! <3> You daft bot, no slash! <6> Twey_ it does have his username and host, so probably :) <14> how can I unequivocally stop an onSubmit event? <3> russt: return false? <14> Twey_, actually, what I'd like to do is to "hijack" the onSubmit, cancel that, and execute a different handler instead. Is that possible? <3> russt: onsubmit="myHandler();return false;" <14> Twey_ I think I've tried that, except that at least with firefox, it ignores the fact that the return false is there. <15> Is there any way to move the caret within a textarea using Javascript in Firefox? <6> russt it doesnt really <6> Spanko yes, there's a post on the subject on parentode.org <14> Raevel, well, the onSubmit executes, even when the return false is there. <15> Raevel: Thanks. Ah, node, not ode. ;)
Return to
#javascript or Go to some related
logs:
#linux cross-table indices #css what is meant by item_type_name
Gtk-WARNING **: cannot open
gkrellm skins close mplayer Fatal error: Call to undefined function: escape_data() #physics scalix on slackware libgaim cyrillic
|
|