| |
| |
| |
|
Page: 1 2 3
Comments:
<0> Hi, let say I have an input type text field placed inside a div. Something the div is rendered (style.display=inline) sometime the div is hidden (style.display=none). Is there a way to know if the input type text field is shown or not without querying the div element to know it ? <1> check parentElement.style.display ? <1> or you want to know if the child element inherits something that can be validated? if so I don't now. <1> s/now/know <0> yeah I was looking for an absolute way to do it... Without looping trough parentelement... it's a pain since I want to use a control that will work everywhere <1> uhm...each element only has one parent element <1> it doesn't return an array <1> but i see what you mean <1> you're saying "what if it's not the parent element" <1> i suppose one solution would be that when you change the style.display to also change it for all elements in the div <0> exactly... like its the parent of the parent of the parent that is hidden <0> furtive, that's a good idea... is there a way to look easily inside ALL of the elements inside a div even if they are a couple level deep ? <1> call a recursive function <0> :) I was hoping for a collections ehehhe ok thanks a lot for the hint, Ill work on it :) <1> ht311 or Torgo might know of other solutions, but they are either silent or absent <2> Herrick: you can also check .offsetWidth or offsetHeight
<2> it will be 0 when it's not displayed <3> getElementsByTagName do return every chidrens that with a certain tag <1> yes <1> but is there a wildcard tag... or is input enough? <3> his problem won't help much, thinks sk8ing solution will work, also, you can check for runtimeStyle or computedStyle for actual result <3> not sure opera support that <3> hard to play 3 game at once <3> got startfox command, ff3 and lost in blue in progress :D <3> this look scary http://www.youtube.com/watch?v=y_EKHK1C2IE <0> sk8ing: tried that, and I can get values so it doesnt work... <2> Herrick: you get values for offsetWidth when the element is display: none? <0> I get the values cause the element is not set with "display=none" it's the div that contains the element that is hidden <1> ht311 : you got something against Jesus Christ the Saviour Our Lord? <1> lol <1> jesus built my ipod <2> it still should be 0 :/ I guess the guys implementing it thought it would be slow to update the childs too <3> i don't have problem about me <3> :D <0> sk8ing: I'm using IE... guess they didnt do it <3> furtive, what scary is it just like a terrroist camp there <2> Herrick: you can go up by .parentNode and check that value 'till the end, if you finde a 0 offsetWidth then it's hidden <2> *find <0> sk8ing: Ill try this. Thanks <2> np <1> ht311 : you're right <3> Herrick,what i suggest will work too, but not sure if opera support that <2> http://www.youtube.com/watch?v=f0_ocfaGjt0 <2> heh <3> Herrick: a nice hack http://www.thescripts.com/forum/thread91421.html <0> ht311: can't use this unfortunatelly, I need to detect first if the field can receive focus without actually setting focus <3> BAH <0> but thanks ;) <3> think what you are trying to do, you want to check if a certain input is visiable <0> exactly :) <3> so, you can use that code to do what you want, just THINK <0> can't... cause if I use a try catch and it works, the focus will get set to the element, which must not happen <0> cause if it does, a onblur will trigger somewhere, and it's not time yet ;l <0> ok, then explain me how to prevent a onblur event to trigger on an unknown element setting the focus on a second element ? <3> it is your code, you can do whatever you want, check your onblur if need, I don't need to think, how do you like me to explain something as simple as a "if" <3> s/check/change <0> for that, I would need to find which field has focus... how do you do that ? <0> unless I do a loop to check, looking for an easy way <4> hey <4> is there any included Hash-Function in javascript? like md5 or SHA? <4> like a command: <4> hash=MD5("javascript") <3> http://www.google.ca/search?hl=en&q=md5+javascript&meta= <4> yes, i saw some sources, but i would prefere a inbuild function, as it should be example in highschool <4> and i dont want to discuss about the hash-code in my talk : <4> :) <4> so there is no inbuild hash function in JS? <3> i hope you are not the teacher .... <4> i have to talk about basics of server-client stuff <3> yes, there is no built-in hash function in js <4> damn, i should do examples in PHP
<3> just a student presentation? <4> but i dont know PHP well <4> yep <3> and you don't know js well either <4> well, much better than PHP <1> no, you're rather patient <3> LOL <1> what's wrong with Paj's MD5? http://pajhome.org.uk/crypt/md5/md5src.html <4> well, i'm sure it works great, but the example code will contain ~10-20 lines, and then i have a >100 line md5 code in the presentation <0> you can include them as an external script... at least, you will see just a line in your source... <3> same issue, it is your presentation, you choose what to talk about what you can skip <1> yup <4> yes, true <4> ok, thanks for that link <3> it is funny to see Herrick can give that comment :D <0> ht311: you're so funny :) <4> thx again + bye too <3> nite furtive <4> hey again <4> can javascript (at least JScript) access .NET cl***es/methods? <5> err <5> JScript.NET can, but not in a browser <4> in a .js file? <4> ahh, i see - it requires the jsc.exe interpreter file <4> thx again, that has helped alot <3> hmm a noob advanture in js.net <3> ops he is back :D <4> hehe <4> exactly <4> ;) <4> can a .js file use .net methods/cl***es by itself (when .NET framework is installed on the computer), or is a ASPX file needed for that? <4> or better: is JS.NET a server language? <4> as VB.NET/C# <3> as you said you need jsc.exe to run it for standalone <3> and js.net is a valid server side language <3> as long as you mark the the scripts to be run at server <4> well - ok, JS.NET ****s - i'll take the example you showed me <4> :) <4> could you repost the link please? <3> no, it is not js.net ****s ..... <3> [22:20] <3> http://www.google.ca/search?hl=en&q=md5+javascript&meta= <3> [22:27] <1> what's wrong with Paj's MD5? http://pajhome.org.uk/crypt/md5/md5src.html <4> well - it is because i've knowlegde of it for ~20mins <4> thanks alot <3> so, just admit it, you ****s <3> np <4> i admit, i have not enough knowlegde about that language to solve my problems with it <4> bye <3> another inaccurate statement <6> who knows C++ language programming? <6> help me! <7> is there a way to check element by id, like this function? <script type=text/javascript>document.getElementById('sfavgame').value='104';</script> <2> you're talking about a checkbox? <2> if so, .checked = true; <8> Hi@all <9> anyone familiar with RSS ? <10> yer <9> is it possible for me to display some weather information through rss? I tried to find a free rss feed but not with lost of luck <10> of course its possible <10> u just need to find one <10> http://www.google.co.uk/search?hl=en&q=RSS+weather+feeds&btnG=Google+Search&meta= <10> omg <10> 1st result <9> I already tried it... <9> but not very much information is shown <11> hello! i need help with a javscript ... im eally new to it <11> i have a array with random websites, then i have a form-button that executes the function with the array, what is the javascript command to open a link, say www.bbc.co.uk, please? <12> window.Location.href = 'www.bbc.co.uk'; <12> or something like that <11> weeee! thx! <11> window.location='www.bbc.co.uk' ???
Return to
#javascript or Go to some related
logs:
#java mysql_effected_rows TMP21.tmp
petgirls movie gnome-schedule no crontab #linux #chatzone #squid #MissKitten sugi pula
|
|