@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info


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



Comments:

<hesten> i found the click / doubleclick solution if anyone wants it
<fatbrain> .onclick / .ondblclick ?
<hesten> yeah
<hesten> hang on a sec
<hesten> www.debug.dk/click.html
<fatbrain> hm, not that I understood what the difference was...
<fatbrain> <a href="#" onclick="alert('click'); return false;" ondblclick="alert('dblclick'); return false">Nothing Fancy</a>
<hesten> the ondblclick will never return
<hesten> becase the onclick will trigger first
<hesten> doubleclick = 2 x click
<fatbrain> hm, makes me think
<fatbrain> how did I solve my dblclick scripting...
<NeoFuture> <a href="#" onclick="t=setTimeout('doSomat()',250); return false;" ondblclick="clearTimeout(t);alert('dblclick'); return false">Nothing Fancy</a>
<hesten> NeoFuture what does that one do on click ?
<NeoFuture> doSomat()
<NeoFuture> http://www.neofuture.co.uk/click.php
<hesten> i get the alert("click") every time
<NeoFuture> http://www.neofuture.co.uk/click.php
<hesten> still get the alert("click") on double click and then the alert("doubleclick") after that
<NeoFuture> works for me
<NeoFuture> unless your doing <click>
<NeoFuture> <click>
<NeoFuture> then it wont you have to boughle click within 250 ms
<NeoFuture> personally i would just write my own dblclivk
<hesten> i needed a function that would trigger something on click and something else on doubleclick
<hesten> www.debug.dk/click.html <-- this one does :-)
<NeoFuture> did you look at
<NeoFuture> http://www.neofuture.co.uk/click.php
<hesten> yes
<hesten> but as i said, i allways get the click alert box..
<NeoFuture> that works
<hesten> i need one alert for click and another for doubleclick
<NeoFuture> yes im calling 2 functions with two differnt alerts
<hesten> i ALSO get the alertbox click on doubleclick
<NeoFuture> that what that does
<hesten> that was not what i needed
<hesten> i need one alert for click and another for doubleclick, not BOTH on doubleclick
<NeoFuture> thay aint
<NeoFuture> WTF
<NeoFuture> <a href="#" onclick="t=setTimeout('clickThis()',250); return false;" ondblclick="clearTimeout(t);dblClickThis(); return false">Nothing Fancy</a>
<NeoFuture> 2 seperate functions on 2 seperate click events one click and one dblclick
<hesten> try to replace with alerts and put it on the demo url :-)
<hesten> with "you clicked" and "you doubleclicked"
<NeoFuture> FF
<hesten> FF ?
<NeoFuture> ff dont clean the timeout
<hesten> ff = firefox ?
<hesten> works in IE
<NeoFuture> yeah
<NeoFuture> not FF
<hesten> damn
<hesten> sure looked pretty simple
<NeoFuture> yeah tiss
<hesten> still has to be something with delays between clicks and compare delta
<hesten> grah
<hesten> life is to short for different browser behaviour
<NeoFuture> album even
<NeoFuture> lol
<ht311> sure he is bouncing, the keyboard is bouncing his fingers too
<csharping> how can I change the html inside a <div> tag for firefox
<ht311> .innerHTML
<NeoFuture> document.getElementById('divTagById').innerHTML="blah";
<hesten> works nicely in arms with XMLhttprequest
<csharping> do I ahve to open the document for writing?
<csharping> and close it?
<NeoFuture> huh
<hesten> no need for opening any documents
<hesten> onclick="document.getElementById('id_of_****').innerHTML="new content";"
<hesten> replace " with '
<ht311> csharping, http://www.w3schools.com/htmldom/default.asp
<csharping> is it the same in IE?
<hesten> yup
<NeoFuture> whats the best way to play a sound
<hesten> embed
<hesten> <object blah blah>
<ht311> NeoFuture: what u need?
<ht311> event sound for your app?
<NeoFuture> start up sound
<NeoFuture> lol
<NeoFuture> customer requests one
<NeoFuture> sad i know
<ht311> 500$ feature
<ht311> :D
<hesten> what about the IE aproach <img src="path/to/sound.wav">
<ht311> huh?
<hesten> it works
<ht311> NeoFuture: if it is for event sound i say go with flash. alert , open issue coming etc. should be useful
<hesten> <a onClick="window.status=''; return false;" href="path_to_sound.file"><img src="image.file"></a>
<ht311> ...
<zephyr_> how can I open a new page with javascript, so it does not have an addressbar, menubar, etc. with a specified size?
<ht311> google window.open, read abit about the feature string in window.open
<zephyr_> ok
<zephyr_> thx.
<NeoFuture> lol got my sad sad intro sound in now
<zephyr_> ht311, how can I put that part of javascript in the <a href ...> part?
<NeoFuture> ht311 lol
<ht311> zephyr_ <a href="whatever" onclick="mywindowopenfunction(); return false;">blah</a>
<zephyr_> oh ..
<zephyr_> ok
<csharping> ok
<csharping> how can I ensure that after a numeric calculation I have two digits (even though 0) after the decimal point
<csharping> eg. 6 + 7 = 13.00
<NeoFuture> you need to write a formatNumber function
<NeoFuture> http://www.4guysfromrolla.com/webtech/code/FormatNumber.shtml
<ht311> toFixed(2)
<NeoFuture> that might help
<csharping> nope it dont work
<ht311> var a = 3+7;
<ht311> a.toFixed(2);
<ht311> check the problem between the monitor and chair
<csharping> you are a funny guy
<ht311> at least you find it still funny, it mean you still have the will to solve this problem :)
<ht311> heh
<simone_> if I have a string http://www.foo.com/bar/hello.html - is there an easy way to parse that to http://www.foo.com/bar/
<optocus> hi
<optocus> anybody here worked with HTA applications?
<optocus> is it possible to specify the position where the window is created and it's size?
<Foy> ..I'm trying to use http://www.netvue.com but the pictures aren't loading for me, can someone check for me?
<Thunder^> hmm.. he wanted someone to check if his eyes are working?
<hesten> the pictures loads fine
<RoBorg> he left the room 3 hours ago :p
<hesten> it would seem so
<hesten> some people are realy impatient :-P
<optocus> :))
<optocus> after all it's Sunday
<melfar> hello folks
<ht311> 'afternoon
<PolarityMan> Im trying to p*** an array back to the server using XMLHttpRequest, but Im not sure the best way to go about it, constructing a GET url I run in to the char limit so am planning to change to using POST but there must be some better way to encode the array foo string than foo1=val1&foo2=val2 etc
<hesten> PolarityMan is it php or asp ?
<PolarityMan> php backend
<hesten> PolarityMan try to look at xajax
<hesten> it can exactly that and more
<PolarityMan> is that a framework of somekind?
<hesten> yes
<hesten> works rather well
<hesten> i use it for www.jegergrim.dk <-- wath out for the nasty images..
<Pilum> I usually just send a string with some delimiter. :-)
<Pilum> And then use implode() in PHP.
<Pilum> Or was it explode? Hehe.
<melfar> I usually don't need xml to recieve data either ,)
<ht311> some time i send a full json string back
<PolarityMan> i'll take a look, Pilum so ***uming my data never contains * i could send foo=element1*element2*element3* etc?
<Pilum> implode() to create a delimited string and explode to re-create an array.
<Pilum> Exactly
<Pilum> Except the foo= part, ***uming that's your array name.
<PolarityMan> want to p*** some other bits and bobs too so need to include some kind of array identifier, but the string processing could then be done by implodingg $_POST["foo"]
<Pilum> Exploding, yeh.
<PolarityMan> sorry yeah
<melfar> you can send something like array('one' => 1, 'two' => 2) and then eval it in php


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#javascript
#MissKitten
#php
#c++
#php
#skype
cpl_mill downloaden
age did Karen Carpenter reach
medeea undernet
#london



Home  |  disclaimer  |  contact  |  submit quotes