@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<pib> hi
<pib> is there an event like onfill?
<pib> "on field has something"...
<pib> i want to detect file when choosing one file from an image field
<pHPaulo> anyone know why it doesn't works ? http://www.nomorepasting.com/paste.php?pasteID=62178
<pHPaulo> the function that checks if at least a CHECKBOX is selected doesn't works... just the one that select/unselect all checks
<ht311> you only have one checkbox there
<ht311> you need to do something like "SetAllCheckBoxes"
<pHPaulo> ht311 in this case I have just one
<pHPaulo> but that's interactive.. it may have 100
<ht311> yes, but you didn't handle the length like you did in "SetAllCheckBoxes", you wrote that?
<pHPaulo> that set all no
<pHPaulo> that's why it works
<pHPaulo> hehee
<QuietFrank> has anyone every got "document.getElementById is not a function" error in firefox or can anyone suggest why this might happen ?
<SufiBlade> you must be usign it in the wrong place
<QuietFrank> SufiBlade: wrong place ?
<QuietFrank> its in the onclick of a button
<SufiBlade> show
<QuietFrank> <button onclick="document.getElementById('ib_image_file').style.display='none'">click me</button
<SufiBlade> that seems alright
<SufiBlade> button is <input> isnt it?
<QuietFrank> another one is <button tabindex="15" cl***="popupbutton" onclick="(document.getElementById('ib_image_file').style.display=='block')?document.getElementById('ib_image_file').style.display='none':document.getElementById('ib_image_file').style.display='block';return false;">chooser</button>
<QuietFrank> you can use button as well
<SufiBlade> i dont think firefox likes buttons
<QuietFrank> will give it a go with input type="button"
<QuietFrank> nope same thing
<QuietFrank> <input tabindex="15" cl***="popupbutton" onclick="(document.getElementById('ib_image_file').style.display=='block')?document.getElementById('ib_image_file').style.display='none':document.getElementById('ib_image_file').style.display='block';return false;" value="chooser" type="button"> gives the same error
<SufiBlade> erm...that doesnt seem right, but im only a beginner
<SufiBlade> are u trying to use conditions without using the 'if' ?
<QuietFrank> yeah its been part of javascript for ever
<ht311> yack
<QuietFrank> thats weird I changed all the document.getElementById to $ (prototype.js) and it works find ... does prototype messs with document.getElementById ?
<Aquel> yop all
<SufiBlade> anyone know a good show/hide div(s) example?
<Emma23> dose anyone knows how do i get rid of UTF8's BOM in my page?
<fatbrain> hm, I don't know why asp.net displayd the utf-8 bom ...
<fatbrain> I had similar problems before with the stupid utf-8 bom. I manage to resolve it tho, but I don't recall how.
<fatbrain> and ofc, it only breaks in IE ^-^
<Pilum> That's irony at its best. :-P
<fatbrain> indeed.
<sagaris> hi, i am using javascript with firefox..Could anyone explain me why java script would stop functioning when i try to do a particular function by pressing a button and then working very fine when i tried the same thing but going step by step with a debugger????
<ht311> because you doing stuff while the page still loading?
<sagaris> yes i think so
<ht311> do it when onload happen then
<sagaris> no, that is what i do
<sagaris> i have a DOMContentLoaded eventhandler
<ht311> i still think is timming issue. not going guess more until i see it.
<sagaris> well i guess that's what must be it
<Ortue> hello, i want to put the height and the width of a div when the page load with a js variable,
<Ortue> i want to know how to put the size in the div
<Ortue> can i do something like that, <div style="height: heightvariable px; width: widthvariable px>
<ht311> mydivRef.style.height="10px";
<Ortue> that is what i do now, it work, but it draw the div and resize it after,
<ht311> put it hidden first and then size/display after
<ht311> really depends on what you want.
<ht311> may be you should write out the tag with proper height and width with serverside code
<Ortue> i wanted to see it right sized at load, but it work anyway
<ht311> so you should use serverside code instead of javascript
<Ortue> i could, but my variable is the window.innerWidth-275
<Ortue> i want the div to resize on the window size, -275 px, because the margin don work good on msie
<ht311> then use the hide and show way. i can't tell you to use some other really "bad" way to do it
<Ortue> it doesnt work because the div is overflow hidden, with scroll
<Ortue> this is only for msie, it doesnt work fine, and i dont even use it, :(
<ht311> set the "display:none" or "visibility:hidden" first, and show them after sized
<Ortue> i will try it righ now
<Ortue> visibility hidden, and to see it is show ?
<ht311> set it to "visible" after
<Ortue> wow
<Ortue> it is better looikng
<Ortue> ah show work too,
<Ortue> :P
<Ortue> i have another probleme, i dont have msie on ma mac :(
<Ortue> my
<[Torgo]> hardly anyone does... dead product
<pooBort> hey
<pooBort> anyone around?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #javascript
or
Go to some related logs:

#linux
atax bash.org
eAccelerator can not be loaded twich
#AllNiteCafe
#javascript
[nickmenza] sucker
#windows
#javascript
mirc sexnet channels
hughesnet vnc



Home  |  disclaimer  |  contact  |  submit quotes