@# Quotes DB     useful, funny, interesting





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



Comments:

<0>, highlight some text, and have javascript fetch the starting point and ending point of the highlighted selection
<1> i'm bored is there anything interesting to do ? :(
<2> http://www.liquid.se/pong/
<3> selectionStart and selectionEnd in gecko at least.
<2> thank you
<4> hola, hi ?
<5> have this: function stateChanged() {if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){document.getElementById('deba-user').innerHTML=xmlHttp.responseText}}
<5> functions used as: xmlHttp=GetXmlHttpObject(stateChanged)
<5> when adding a variable to function -> stateChanged(variable), and using as xmlHttp=GetXmlHttpObject(stateChanged('newvalue')) then I get a 'xmlHttp has no properties'-error on 'xmlHttp.readyState==4 .'
<5> what i'm doing wrong?
<5> anyone active here?
<6> i am
<5> have this: function stateChanged() {if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){document.getElementById('deba-user').innerHTML=xmlHttp.responseText}}
<5> functions used as: xmlHttp=GetXmlHttpObject(stateChanged)
<5> when adding a variable to function -> stateChanged(variable), and using as xmlHttp=GetXmlHttpObject(stateChanged('newvalue')) then I get a 'xmlHttp has no properties'-error on 'xmlHttp.readyState==4 .'
<5> what i'm doing wrong?



<6> im not the helper sorry SiLKo, im also looking for help. =/ i guess no helpers are active for this time.
<5> ok, no prob :
<5> :)
<5> i need really a helper too, want event to pay :)
<6> =)
<7> how do i make i blank text file in jscript
<7> javascript
<7> i mean
<8> a1drich: you can't
<7> any tips?
<8> what are you trying to do?
<7> shopping cart
<8> you should do that server side... try PHP
<7> thanks
<9> I'd like to understand the basics of the function OnMouseOver ... (I'm kind of newbie... but i have to understand it :)=);
<9> the question :
<3> No such function heh.
<9> can I execute 2 functions in the event ?
<3> If you're thinking about the event handler, then that's onmouseover
<8> sure, just separate with ; same as normal
<3> (Lowercase)
<9> kk
<9> thx.. it has to be a syntax error in my menu script
<9> then
<9> the script is badly written and i dont want to use another one
<3> Heh.
<3> Rewrite it then.
<9> sure
<9> there's a event on onmouseover that redraws the table cell... i want to add a function to show the submenu without clicking on the cell
<9> and add a validation to do nothing, if the submenu is already in a show state...
<9> i will rewrite that
<10> hello
<10> trying to write a cookie
<10> however it does not seem to appear on my screen
<10> :(
<10> I mean i implemented the code but it does not write the cookie to my hdd
<10> function createCookie(name,value,days)
<10> {
<10> if (days)
<10> {
<10> var date = new Date();
<10> date.setTime(date.getTime()+(days*24*60*60*1000));
<10> var expires = "; expires="+date.toGMTString();
<10> }
<10> else var expires = "";
<10> document.cookie = name+"="+value+expires+"; path=/";
<10> }
<3> Jeez...
<3> Haven't you heard about pastebins?
<11> hi
<11> how can I put some arguments to the function called in addEvent(); (like this : http://www.scottandrew.com/weblog/articles/cbs-events) please ?
<8> create an intermediary function
<11> ?
<8> what do you want to p*** in
<11> an element (its id)
<11> addEvent( document.getElementById('test'), "click", show() ) : in function show(), we have a "this." in Firefox, but not in MSIE
<12> hello. how can i print php variables using javascript?
<8> hmm that doesn't look right
<8> try changing show() to show
<3> Mixer_4pligm: Echo it into a js variable.
<11> it's show not show() yup



<8> Mixer_4pligm: var thing = '<?php print addslashes($whatever); ?>';
<9> ie loves the scripts errors
<11> in show(), "this" exists in Firefox, but is undefined in MSIE
<11> (-:
<8> JeeEn: try replacing show with function() {show(this);}
<11> ok
<12> Pilum: document.write(buildings[0]); does not work
<12> $buildings[0] is my php variables
<3> ....
<12> $buildings*
<3> buildings[0] = "<? echo $buildings[0]; ?>";
<12> ohhh
<12> thanks
<3> RoBorg already told you....
<11> if i have : <div><h3 onclick="r(this);">bla</h3></div> function r() { var theDiv = this.???; } how can i access the parent "???" please ?
<8> parentNode
<11> TY!
<11> and with : <div id="root"> <div>1 A <div>2A</div><div>2B</div> </div> <div>1 B</div> </div> how can i access just the 1st level of div in #root please ? not recursive inside of inside ..
<11> with getElementsByTagName() it gets all recursive
<8> loop through .childNodes
<11> and .childNotes.getElementsByTagName('div') doesnt work ? how ?
<11> great thanx for the help
<11> if u just want the div tags in the nodes ?
<11> yes
<8> ...childNodes[x].getElementsByTagName('div')
<11> so i have got to loop the nodelist to use array [x]
<11> but getelementsbytagname then is used on the nodes itself ..
<11> can i know the tag of a node ? nodeType is a int ..
<8> .tagName
<8> nodeType tells you if it's an element or a text node or whatever
<11> ok
<11> with tagName i have a lot of "undefined" in my nodeList, how is it possible ???
<8> they will probably be text nodes
<8> check the nodeType
<8> if it's 3 (i think) then it's an element
<11> ty
<3> nodeName will tell you which
<11> argh
<11> childNodes is recursive too ! it takes the childs of the childs etc ..
<11> (ye was nodeName for the tag)
<8> hmmmm I'm fairly sure it doesn't
<11> :-(
<3> Eh...
<3> childNodes is a collection of a node's children, not its decendants.
<11> var reps = unRep.parentNode.parentNode.childNodes;
<11> for (var i =0; i <reps.length; i++) {
<11> this takes descendants too
<12> what is the javascript version of the php command "header("Location: somepage.php");"?
<8> location.href = "...";
<12> thanks
<1> anyone have some experience with google's ajaxslt
<3> Mixer_4pligm: Continue with that and you will be banned.
<12> well... you could just say "Mixer_4pligm: mp3 player comment is not allowed in here"
<12> and not "you will be banned" like i am a criminal
<3> I give clear warnings. If they insult you then that is your problem.
<12> and the badness in you is your problem :)
<3> Not really.
<13> Unlimited Space with PHP/MySQL Support for free -> www.saveitfree.com
<7> how do i make a text file server side?
<7> using javascript or html?
<3> You don't.
<7> how do i do it then?
<3> HTML doesn't do anything and you won't find many servers running serverside javascript.
<3> With a serverside language.
<7> hmmm
<7> so..
<7> can you point me in the right direction
<7> what should i study?
<3> Depends.
<7> im almost finished with my shopping cart :(
<7> the only thing missing was the function that makes a text file based on the customers details and orders
<3> PHP, ASP.NET...


Name:

Comments:

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






Return to #javascript
or
Go to some related logs:

#windows
horde unable to connect to localhost:106 passwd/lib/Driver/poppassd.php
kornea
#AllNiteCafe
#linuxhelp
petuxlar
#linux
#java
#linux
hidebehind dewez



Home  |  disclaimer  |  contact  |  submit quotes