@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


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



Comments:

<Joske> Hi, does a Form Object have a toString method? (i mean, that I gat something like name_of_el1=value&name_el2=value etc?) Or do I have to write it myself?
<furtive> you have to write it yourself
<Joske> to bad...
<furtive> or loop through the document.forms["formName"].elements array
<[Torgo]> or use DomAPI List object ;)
<Joske> jep, I am doing that... But does every element have a name (most likely), and (I'm not shure...) a Value?
<Joske> I mean elements like radio boxes etc, can I acces the selected element with .value?
<furtive> every form element has a value, and every form element should have aname.
<ht311> yes, unless you didn't put in one
<Joske> ah ok
<Joske> than it is not that hard :)
<furtive> it's not that hard to validate either
<furtive> but you'll also have to check to see if the object returned by elements is an array itself (e.g. multiple elements with the same name)
<furtive> so i'm going to be off work until at least the 13th of feb.
<furtive> doctor saw his shadow.
<[Torgo]> eh?
<furtive> had another checkup for my back
<ht311> hehe, a canadian thing
<[Torgo]> yee-och
<furtive> heh, i'm feeling a lot better, even sat down for a few hours yesterday, although i think that did more harm than good.
<[Torgo]> bringing back bad memories
<furtive> hehe, just think of how much better you are today
<furtive> did you write code back then, or were you a football star?
<[Torgo]> yeah, but i'm not
<furtive> :-(
<[Torgo]> yeah, back surgery ****s
<furtive> well, my spine is fine, so that's not too bad.
<[Torgo]> hell, just 10 years before I had mine done they were still requiring full spinal taps
<[Torgo]> i got easy ;)
<furtive> ouch
<[Torgo]> but these go to eleven :P
<furtive> i'll just get them to amputate the leg that's in pain. The robocop type thump as i walk with my new bionic leg is gonna be awesome.
<[Torgo]> yeah to get the xray, they'd strap you to a board, turn you vertical and upside down, and then drain all your spinal fluid
<furtive> wah?
<[Torgo]> yup
<furtive> did they drill holes in your skull too?
<[Torgo]> spinal tap ain't just the name of the worlds greatest rock band
<furtive> that's crazy. glad that's in the past.
<furtive> hehe, and no laptop to keep you happy back then either eh?
<[Torgo]> it is, unless you piss your doctor off
<[Torgo]> bring gifts
<furtive> heh
<ht311> geeze, sound like i am watching horror movie, i am lucky then, i just have my fat belly problem ...
<[Torgo]> yeah, i also put on a *lot* of weight during that whole thing
<furtive> i'm losing weight, 10lbs so far.
<furtive> fun: http://game1.ssr.be/
<furtive> it's worth it just to see level 4
<ht311> hmm, and i can cheat by using my tablet pen .. got to the lvl4 in no time
<[Torgo]> what's the link for js ref that is in vouge right now?
<furtive> heh, msdn?
<[Torgo]> i get nothing but 404s
<[Torgo]> they changed all the links in their search results
<ht311> furtive: http://www.moserbrothers.com/archives/000197.html
<[Torgo]> screw it, i'll just install msdn locally
<ht311> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/29f83a2c-48c5-49e2-9ae0-7371d2cda2ff.asp
<furtive> ht311 ;-)
<furtive> back in an hour
<[Torgo]> yeah, but i mostly use the msdn search
<[Torgo]> which is now useless
<ht311> usually, i use google and get to the direct page
<[Torgo]> man, htas rock hard
<[Torgo]> combined with domapi that is
<ht311> I used it for crossite to grab data from different pages ;)
<[Torgo]> i'm using to write complete client apps now
<ht311> it is like xul, may be you should make a hta example then.
<ht311> later, going home.
<PapaBear> ok, another stupidly simple question which i cannot seem to find the answer for on google, because i am an idiot and not searching for the proper string
<PapaBear> how can i change a <div>'s style with JS?
<[Torgo]> document.getElementById("id").style.whatever....
<archaeus> PapaBear document.getElementById().style....
<PapaBear> gah
<archaeus> you can even do document.getElementById().style.cl***Name = "anotheCl***";
<archaeus> :)
<PapaBear> i actualy want to set the style
<[Torgo]> wrong
<archaeus> oups!
<PapaBear> writing a template, with the styles sitting in a database
<NeoFu7ure> while(sickOfWaiting){document.getElementById("missues").forceLabour();}
<PapaBear> so i would have to do document.getElementById).style.blah for each attribute i want to change?
<[Torgo]> i'd just define cl***es -- much more efficient
<PapaBear> ah, but that would be alot of cl***es, be nice if could set the entire div's style in one call
<[Torgo]> yes, via a cl***
<PapaBear> can i set the background to an image using document.blahh.style ?
<Pilum> The background of an image?
<PapaBear> nah, background of a div
<PapaBear> to an image
<Pilum> A background image in other words.
<Pilum> document.getElementById("id").style.backgroundImage='url(path/to.img)';
<NeoFu7ure> and im mistaken (i aont slept for 52 hours)
<NeoFu7ure> onclick="spawnWindow('1','2',\"Test\");"
<NeoFu7ure> should work
<NeoFu7ure> or am i being a spaz
<NeoFu7ure> ht311 about ?
<ht311> ?
<NeoFu7ure> question for you
<NeoFu7ure> how can i check if an frame has a child frame
<NeoFu7ure> window.frames[i+'frame'].frames['dataFrame']
<NeoFu7ure> if(window.frames[i+'frame'].frames['dataFrame']){}
<NeoFu7ure> the check is giving me an object error
<ht311> try frames.length?
<ht311> hmm
<MixedLive> guys, can you help me?
<NeoFu7ure> ignore me i left a bad variable in
<ht311> :)
<ht311> MixedLive, just ask your question
<MixedLive> i'm getting this error message
<NeoFu7ure> dont ask to ask ask before we ask you to leave for asking to ask to ask is to ask not to ask to ask
<MixedLive> Exception in thread "main" java.util.zip.ZipException: The system cannot find the file specified
<NeoFu7ure> wrong channel
<NeoFu7ure> #java
<MixedLive> =(
<MixedLive> thanks
<NeoFu7ure> this is a completly differnt lanaguage
<MixedLive> i'm a rookie as you can see
<NeoFu7ure> tho HT will know the answer
<ht311> yes "The system cannot find the file specified"
<MixedLive> and that means...?
<MixedLive> i have already set the path
<ht311> don't know about your system. jsut complaint it can't find the file, simple
<MixedLive> well.... thanks anyways guys
<lainee^-^> hello.. anyone here?
<ht311> no
<lainee^-^> jeez sorry i thought there was someone :p
<lainee^-^> anyway if anybody comes along, cud u please ask him this? my friend was wondering which would be more efficient:
<lainee^-^> <a href="#" onClick="myFunction()"> or <a href="javascript:myFunction()">
<ht311> frist, should put return false; after myFunction();
<lainee^-^> huh?
<ht311> <a href="#" onClick="myFunction();return false">blah</a>
<ht311> use onclick instead, should start getting use to all xhtml attribute is lowercase
<lainee^-^> hrmm ok
<lainee^-^> why is that more efficient than <a href:"javascript:myfunction()">
<ht311> javascript: is deprecated
<lainee^-^> ohhh
<lainee^-^> thanx a lot
<ht311> np
<SufiBlade> erm
<SufiBlade> whats in place now? onclick?
<ht311> onclick have been there since ie4
<fatbrain> hm
<L`OcuS> salutations matinales / morning greetings
<animaniac> is it possible to capture the contents of another web page in a variable and then process it as i need ?
<animaniac> i would need to know this so i know which approach to use
<L`OcuS> see XmlHttpRequest
<animaniac> L`OcuS: it doesn't seem to work for external pages, outside my domain
<animaniac> should i use something else or keep digging on xmlhttprequest ?
<animaniac> i need $string = get_include_contents('http://www.google.com'); translated from php to js
<L`OcuS> you can still use it
<L`OcuS> be make a little hack$
<animaniac> :\ any tips ?
<L`OcuS> with XmlHttpRequest, call a page on your own server which calls the page on an other server
<animaniac> all i could find was how to retrieve from your own domain


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#linuxhelp
#linux
#java
capecodm49
gentoo touch function not implemented
#AllNiteCafe
#javascript
#teens
#linux
#linux



Home  |  disclaimer  |  contact  |  submit quotes