| |
| |
| |
|
Page: 1 2 3
Comments:
<0> test <1> Doesn't work. <1> Unless you were DoS'ing wktdesign or something. :-P <2> Hi <3> Tamahome: this is not much different, mostly on the event side and a few special spot. it is not enough for you to tear hair out <3> s/there <4> ht311: document.createElement(); <3> it work the same if you use the standard way <4> in cases where you need an element with a name= attribute, for IE it must be in the createElement call <3> no <4> which seems to bust up FF something good <3> that is non standard way, so you shouldn't use it <3> create it, set the type. and set the name after <3> or just use innerHTML anyway
<4> blargh. <4> hey ht311, any idea why Firefox is OK with this but IE poops out on it? http://pastebin.com/761561 <5> object is the preferred standard <5> also, you should set the attributes and then add it to the doc -- better performance <4> Torgo: that snippet is prefixed by an object that works fine <4> well, it doesn't throw any errors anyhow <4> 'myObject' is an object tag <3> I still rather use innerHTML for this kind of stuff <4> I could do that, but I'm curious at to why this doesn't work <3> if you already have a object outside, there is no reason why it will work <4> isn't this supposed to be for fallback? <3> I think your object is already working and taking over <4> if I take out the embed stuff, both browsers hate me <4> blah... yeah it looks OK <3> some reading on this http://www.alistapart.com/articles/flashsatay/ <3> not related, but should give you some more info <4> wow... embed doesn't validate <4> ht311: this helps alot... thanks! <4> still not working entirely, but getting somewhere <3> http://www.google.com/googlespreadsheets/tour1.html <6> howdy. i'm having a hell of a time getting dynamic tables to work in IE (firefox works fine) <6> i'm trying to add and remove elements on the fly (without page reload) from a table when the user clicks a button <7> wats that? <7> oh ok <7> code please <7> www.pastebin.org <8> Hi, is there a function to find out the index of an element in an array using its value? <9> e? <8> I mean given arr[5] = 'hello'; knowing that its value is "hello" is it possible to find out dat its index is 5? <9> i'd do a loop and check <8> i see <9> bur what when you got arr[5]= 'h' and arr[40]= 'h' ? <8> no it wont have duplicate :) <9> you dont know that... <8> well yeh <10> BOOMBOOM, you need a function to check whether the value already exists before adding a new one <10> and you'll be sure there won't be any duplicate <8> alryt thanks <10> and then loop on the array to find the value and you'll get the key :) <8> yeah <11> wtf... he didn't asked about duplicates <10> i know <10> but 060606 was right <10> he has to be careful with that <12> Hi, doing some XML parsing in IE/FF/Opera, FF and Opera parses the XML (pretty large xml doc), but IE is 3-4 times as slow as FF/Opera. <12> Is XML parsing in IE known to be slow with large XML docs ? <13> hmmmm good question smiles <13> XML parsing is known to be slow with WebServices <12> Huh? You mean SOAP parsing is slower than parsing other XML docs using the same parser? <12> Webservices is slow because they use xml, but the xml parsing speed is constantly improved. <11> xml parsing is slow anyhow <1> XML is overrated imo. <11> I second to that <13> I try to avoid it <12> XML is filthy, but there are tools so you dont get your hands dirty in it :) <14> hi there <14> can u help me please ..? <1> Not before you tell us what your problem is <15> hehe
<14> <select cl***="combobox" name="bestlinks" onchange="window.open(this.options[this.selectedIndex].value)"> <14> how can i open the link in a top page ? <1> What's a top page? <14> i mean the same <14> the target <14> excuse my poor english <14> target="_blank" or top <14> would like top <1> onchange="top.location.href=this.options[this.selectedIndex].value;" <14> really ? <16> hello there <16> Do somebody know how I can trigger a JS function when Safari autofills a form at load time ? <14> ty Pilum :) <14> Pilum ? if i want in target blank ? <1> Then use the code you had <14> and i just change top into blank ? <14> with _ ? <1> You're not making sense. <14> excuse my poor english <17> how can i check if an object is a textarea or an input type=text ? <1> .nodeName=="TEXTAREA" || .type == "text" <16> Pilum: any idea for the autofill ? :-) <16> I'm not sure if the problem is the same with FF <17> thanks Pilum <1> Bart``: I don't see that there is a problem... <1> But there's no onfill event afaik hehe. <16> mmm... ok. I'm still implementing the "placeholder" behavior on texfield. Basically, I just set a cl***="placeholder" on a text field, and it will be filled with its alt= in gray if the field is empty... when you type something, it is black again <16> but when autofilled, I get gray content :-/ <14> onchange="blank.location.href=this.options[this.selectedIndex].value;"> <14> is that correct ? :-) <1> No. <14> ho <14> onchange="window.open(this.options[this.selectedIndex].value)"> <14> ? <14> lol <14> what is wrong ? <16> blank is nothing <16> it is not an object <1> _blank is a new window <14> how can i open in a blank target then ? <1> You're still not making any sense. <16> If somebody wants to test my placeholder sample http://pache.tynsoe.org:8000/login/login.html <15> make a function would prolly be the best way then have onchange call it <14> how ? <18> anyone know a way to unset elmement.style.display="none" on an element without explicitely setting it to [block|inline|list]? So it's easy to show/hide elements without tracking what sort of display they had. <12> sukotto, create a toggle method <18> I'm trying to. I can set display="none" no problem.. it's reversing it that I'm having trouble with <12> Well, you would have to store the old displaytype somewhere.. <12> no prebuilt stuff for it. <18> ah, the word "toggle" is giving some good goole results <18> that's odd. element.style.display = ""; seems to work. I could have sworn that was throwing an error yesterday when I tried it before. <19> Hi, how do you loop in an array in such a way that it returns you the indexes? (kinda like foreach loop) <18> indexOf() returns the array index <18> perhaps use forEach() and indexOf() together? <19> is there actually forEach? <1> Heh no. <18> whoops, that's a 1.5 method http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:forEach <18> prob not supported enough to be useful <18> Is there any way to see what styles are applied to an element before changing them? Something like this.style.fontWeight is blank unless I either use an inline style, or change it with js. See http://sukotto.pastebin.com/762490 for brief example <10> firefox > extensions > webdeveloper kit > Ctrl+Y <10> :) <10> oups sorry in JS <3> you are trying to get the style set by css not js. it is normal that it is blank, since it is not set by js. you need to read on the runtimeStyle and computedStyle <18> thanks. will go look <20> hi guys problem with arrays using div <20> i have this: somedivs = createElement('div') <20> then, somedivs.name = "a[]" <20> now, i want to change content: document.getElementsByName("a[]").innerHTML = 'hello' <-- this won't work <20> why? <3> i haven't see anything to do with array yet <3> cause you haven't append ? <3> not sure if div got a name property <20> it does. <20> im trying to create a form where user adds multiple items in a table
Return to
#javascript or Go to some related
logs:
#chatzone #MissKitten #php quotacheck Gentoo #linuxhelp #apache voice reconition for sql coding mysql change fieldtype lost data #squid #MissKitten
|
|