@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> http://pastebin.ca/100697
<1> genius
<1> thank you..
<1> not sure why my other code dont work, it works on an existing site..
<1> weird
<2> Hi again! Is it possible to readout the username which the user is logged on his operating system?
<0> no!
<2> ah okay :) i thought I've seen such a site somewhere on the net, but I cannot really remember
<1> man 10mbit is slow when your transfering files over ya lan
<0> haha of course
<0> Ugly_Duck i forgot to tell u something



<0> u can put var divsToHide = document.getElementById("mainHolder").getElementsByTagName("div");
<0> that way it will onyl hide the divs inside mainHolder
<3> is there a best practice for hiding an element and temporarily replacing it with something else?
<4> that's CSS / Javascript
<3> yes.
<4> document.getElementById("blah").style.display="none"; to hide it
<3> so something like elm.style.display="none";
<4> document.getElementById("blah").style.display="block"; to show it
<4> yup
<3> then elm.insertAfter = "temp text";
<3> but not that... since it's IE only
<4> yeah, this is the first time I came across that attribute
<3> looks like I need to use document.createElement and document.appendChild.
<3> strange that devguru doesn't list those methods :-(
<5> is there such a thing as global scoping in javascript? I want to make a value visible to several functions. Is that possible?
<4> yeah
<4> declare it outside the function
<4> s
<4> <script>
<4> var myvar;
<4> function blah() { myvar = "blah"; }
<4> function test() { myvar = "test"; }
<4> </script>
<5> and then those will be intialized from the time that the page is run?
<5> I have a couple arrays of data that I want to populate from a database table. I have done that and it works. Now I am trying to populate those arrays when the page is run so that other functions and do lookups on those arrays as a result of user activity
<5> so I have put my arrays at the top of the js block outside of a function and I have declared them with as a var. At the bottom of the script I have called my 2 functions to populate those arrays
<5> does that seem like the right thing to do?
<6> AVAX
<7> what is the V there?
<4> Another Variation of AjaX
<8> hi! i have the following code <body>
<8> <div align="center"><script language="javascript" src="/clickvoting/view_Poll.php?type=java&id=6"></script></div></body>
<8> in firefox it works perfectly
<8> in IE after 11-12 refreshes it goes crazy
<8> what could be the cause?
<8> sorry for the many lines
<8> what i meant to say is that in IE, after 11-12 refreshes, if I view the source, it simply shows me the "<script>" thing
<8> but it does not load it
<7> no once can anwser you question base on the given info. and I doubt that is a javascript question
<8> ok, im sorry, thanks



<7> put those script inline to test. most likey .. blah
<9> hi
<7> hi
<9> any of you guys played with jquery and prototype?
<10> Hello, I use DomApi and I have a question
<11> shoot
<10> I'm trying to set the color of a cell
<10> in alistrgid
<10> at creation time
<11> it currently is not officially supported
<10> of course I have the setBgcolor(), but I'dd like to do it at creation time
<11> as long as you are not using virtual mode, you can access the element through the dom though
<10> well changing colors after object is created is not a problem
<7> either local the cl*** name for the cell and set it in the style, or do it with script to change the style as [Torgo] said
<10> what I would have like is too set data with a bgcolor attribute
<10> ok so I'll have to loop though all items
<7> if it is a specific cell. locate the cl*** name for the cell and set it in the <style>
<11> getRow(i) will return you all the divs for that row
<11> in an array
<11> set the style.backgroundColor of the one you want to affect
<7> the long term solution will be having an onbeforerender event
<11> actually, that reminds me
<11> you can also just use the ondrawcell event
<7> ah
<11> not sure if that is documented
<7> this.ondrawcell(C.childNodes[y], i, j, ii, y)
<11> that's the cell, row, col and physical row and col
<11> all he needs is the cell
<11> well, no i guess he'd need the others too
<7> there still something I don't know in listgird :D
<11> to know if it's one he wants to colot
<11> yes, that is documented
<11> http://www.domapi.com/index.cfm?action=docobj&id=86#1523
<11> hmm, wonder why i surfaced col then row, seems backwards
<11> *shrug*
<7> and I think is better to hide all the virtual i and j from the user in the future
<11> that only fires in virtual mode, btw
<7> does seem so form the code
<3> given a group of radio buttons (say, "gender" with choices F and M, is there an easy way to determine which one is selected without iterating over all the choices?
<3> I think there isn't... but thought I'd ask anyway
<11> write yourself a function
<11> form.selectedRadio = function(f){
<11> for(var a=0;a<f.length;a++)
<11> if(f[a].checked)return a;
<11> return -1;
<11> };
<3> thank you
<9> anybody familiar with CreativeCommons licence? Can i use a photo licenced like this in the design of a site? Under what conditions?


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#linux
tikkoppa
#AllNiteCafe
#linux
#AllNiteCafe
#MissKitten
#teens
#linux
#c++
#gentoo



Home  |  disclaimer  |  contact  |  submit quotes