@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<AScotsGuy> hi all
<AScotsGuy> hello?
<AScotsGuy> phew thoguht i was the only one here!
<AScotsGuy> can ANYONE help?
<sk8ing> how do I get the default option of a select box?
<ht311> read the ref of <option>
<sk8ing> tx
<sk8ing> so I'll have to p*** trough all the options
<ht311> oh get deafult, usuallt , .value is ok
<ht311> can use .selectedIndex
<sk8ing> wouldn't selectedIndex return the current selected option?
<ht311> return the index of the options
<sk8ing> ah, I need to know wich <option> is <option selected>
<ht311> you just looking for trouble
<ht311> check the value on page load and save it there
<sk8ing> well... it's a lil more complicated :P
<sk8ing> the thing is that I don't have any selected option by default
<sk8ing> but
<sk8ing> in some cases I do
<sk8ing> now, when I refresh the page
<ht311> THEN HOW THE HELL YOU EXPECT TO FIND THE DEFAULT
<sk8ing> let me finish
<ht311> the default is still empty if there is no default
<sk8ing> when I refresh the page, if no default is set in the definition of some option, but an option has been selected by the user
<ht311> put it in another hidden if you really want to find it quick
<sk8ing> that option will get selected after the refresh
<sk8ing> I wonder why I'm trying to find a way to do it like this... it's my fault I haven't managed that before, I'll do it from php
<ht311> you can keep talking to yourself for now ;)
<sk8ing> :P
<sk8ing> ah... maybe you know
<sk8ing> I have a weird problem in FF
<sk8ing> it shows me the "loading state" - that green bar - when I swap pictures on mouse over
<sk8ing> not all the time
<sk8ing> just... some times
<ht311> ask FF
<sk8ing> I don't think it's FF's fault
<sk8ing> in fact I do
<sk8ing> but I think it can be fixed, it's my fault too somewhere
<sk8ing> I belive it has something to do with iframes
<sk8ing> the ones that I dynamicly add
<sk8ing> any idea?
<sk8ing> useless... well my problem is that when I hit refresh the option that the user selected is still there
<sk8ing> I'm the user :D
<WkHead> hey everyone
<donavan> <=noob so bare with .... I need to find a way to use one or two lines of code to get a series of images dispayed in a series of <img>'s I need something like document.images.image[x].src=whatever; though Im pretty sure thats not going to do it
<donavan> anyone have any input here
<sk8ing> document.images['imgName'].src=whatever;
<sk8ing> that's going to do it :)
<donavan> I have this ... and it seems right but when it runs it just goes right past it like nothing ever happened ... document.images['image'+x].src=img_info[y].name;
<donavan> is this even close to right ... x and y are counters
<sk8ing> it is
<sk8ing> try with document['image' + x].src
<sk8ing> I was wrong at first I think
<donavan> you mean document.image['image' + x].src or are you saying take out the .image
<donavan> tried both and still nothing
<sk8ing> document['image' + x].src
<sk8ing> like this
<donavan> here is what I have got http://pastebot.nd.edu/299
<donavan> I tried both already BTW
<sk8ing> try it as I've said
<donavan> I did
<sk8ing> what about using more explicit links?
<sk8ing> with out ..
<donavan> kinda confused on how to do that ... aside from giving it a full URL which I cant do cause it will change once I upload it and I dont know the full path to the system it will reside on ... intranet (school project)
<MBzle> hey all
<MBzle> is there a way to save the checkboxes checked? in other words, let's say there's a huge list of checkboxes, and u want to save the ones checked so just in case something happens
<Demonen> How can I load a page into a variable? I want to load "http://www.example.com/cgi-bin/somefile.cgi?check=updated"; that returns either 1 or 0. The javascript will, ofcourse, be executed from the same domain and even the same script.
<Demonen> The idea is to know if there has been an update or not, and refresh the brower window based on that information.
<HisXLnC> Hi all
<HisXLnC> question is
<HisXLnC> <div align="center" onMouseOver="dtext()" onMouseOut="dtextout()"> i wan tto use mousover and out function in div tag.. is it possible if yes then is this the correct way of calling the funtion?
<archaeus> HisXLnC, yes
<HisXLnC> but it wont work archaeus http://pastebin.com/632396
<HisXLnC> have a look plz
<archaeus> of course it won't work since the functions are not ok :)
<Pilum> s/text.style.display=""/text.style.display="block"/
<Pilum> What is 'text' anyway?
<HisXLnC> text is the div id
<Pilum> Ah.
<Pilum> s/text/document.getElementById('text')/ as well then
<Pilum> Dubious name too.
<Pilum> http://pastebin.com/632406
<VaranG|aN> ImageButton img = (ImageButton)this.Page.FindControl("ImageButton1");
<VaranG|aN> sorry wrong window
<HisXLnC> Hey Pilum thanks.. it works :)
<HisXLnC> hey Pilum.. i made a few changes and it stoped working again.. http://pastebin.com/632452 can u have a look plz
<Pilum> == to compare
<Pilum> And javascript does have an else if() structure
<HisXLnC> okies
<Pilum> Although it's not neccesary in your case.
<Demonen> Anyone have any ideas for my problem? Anything I can google? Anything at all?
<Demonen> Since I don't know what it's called, google seemingly only returns irrelevant hits.
<Pilum> Demonen: Ajax.
<Demonen> oh.
<Demonen> I thought javascript might have some var something = fetch.url('http://....');
<Pilum> No.
<Pilum> But ajax will get the value just nicely.
<VaranG|aN> Ajax?
<Demonen> Pilum: googling the lines warm...
<VaranG|aN> is there a way to check if an image is over another image ?
<Demonen> Pilum: Works like a charm now. Thanks :)
<poste9> how to get year in firefox? i'v tried getYear() but not works
<archaeus> poste9, how do you get it in IE ? :)
<poste9> data = new Date();
<poste9> ano = data.getYear();
<archaeus> poste9: that's correct
<archaeus> http://www.w3schools.com/jsref/jsref_getYear.asp
<archaeus> what exactly isn't working in FireFox ?
<poste9> http://alltec.edu.ms:1234/alltec/alltec.php
<poste9> i dont know if u'll understand
<poste9> but my getYear shows 106
<poste9> o0
<archaeus> poste9, since you're using php, why don't you do a <?php echo date("Y);?> instead ? :-P
<poste9> yeah =]
<poste9> xP
<archaeus> date("Y");
<poste9> ty
<poste9> x]
<poste9> aspohiuas
<archaeus> poste9, I found the solution (in javascript)
<archaeus> use getFullYear() ;)
<archaeus> it works ok in FireFox
<poste9> hmnmnmn
<archaeus> and also in IE ;)
<poste9> yeah
<poste9> ty again
<archaeus> u welcome
<Tarantino> I use a simple "checkbox" program to validate certain user inputs. Multiple choise questions. It works fine- (example here: http://www.knudekunst.dk/dansk/verbal/ ) its sort of a quiz. But now I need to make one with a lot of pulldown menus, but I cant get the code to work the same way
<Tarantino> my non-working example is here: http://www.knudekunst.dk/dansk/komma/
<Tarantino> I think its something with how I use .selectIndex - but I have tried a lot with no succes
<Demonen> I have a <div style="overflow: auto;">, when it overflows, and becomes scrollable, how can I have JavaScript scroll it down all the way?
<archaeus> Demonen: http://www.google.com/search?hl=en&q=javascript+div+scroll&btnG=Google+Search
<Demonen> I should have done that before asking, ofcourse. Thank you.
<archaeus> ;)
<Tarantino> I lost connection- so im gonna ask again- im a bit lost:-(
<Tarantino> I use a simple "checkbox" program to validate certain user inputs. Multiple choise questions. It works fine- (example here: http://www.knudekunst.dk/dansk/verbal/ ) its sort of a quiz. But now I need to make one with a lot of pulldown menus, but I cant get the code to work the same way
<Tarantino> my non-working example is here: http://www.knudekunst.dk/dansk/komma/
<Tarantino> I got the error "Selectindex is null or not an object"
<Demonen> haha, theese examples are insanely complicated, and all I needed was Div.scrollTop = Div.scrollHeight;
<Demonen> Now, what I have googled, but could not find, is how to tell what time it is in JavaScript ... In UNIX Time.
<Demonen> The Date function converts from UNIX time, so logically it should also convert back, or even cough up UNIX time on demand, yet I can't find anything on the subject.
<Demonen> It seems a little silly to make a perl script and query the server for the current UNIX time
<VaranG|aN> is there a way to check if an image is over another image ?
<Pilum> http://devedge-temp.mozilla.org/library/manuals/2000/javascript/1.5/reference/date.html#1195078
<Demonen> This ajax stuf rocks. also, a blank Date object holds the current time, getTime gives UNIX time in milliseconds... *figured it out*
<Demonen> Odd that it dosn't say so
<Demonen> anyway, thanks for your help.
<Demonen> *detatched for a while*
<VaranG|aN> yes it does


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

aoyama kun
boasoft merlin
tinqeridx
#java
#java
volleyball tips/instructions
#AllNiteCafe
patit B
the nautical term for a distance of three miles
python for windows mobile



Home  |  disclaimer  |  contact  |  submit quotes