| |
| |
| |
|
Page: 1 2
Comments:
<fatbrain> *meep* *meep* <NeoFu7ure> *meep* <NeoFu7ure> i need an alanlog clock BUT a tiny one grrr <ht311> I say use flash in the case, <NeoFu7ure> vml \o/ <ht311> heh <ht311> charge client 500$ for the analog click <ht311> s/clock <NeoFu7ure> http://www.neofuture.co.uk/clock.php <Ylja> could anyone explain why the var totalprice doesnt show up? http://pastebin.com/518158 <Ylja> what am I doing wrong <NeoFu7ure> FormatNumber ? <NeoFu7ure> is that a js function <Pilum> Only if you define it yourself. :-) <NeoFu7ure> http://www.4guysfromrolla.com/webtech/code/FormatNumber.shtml <NeoFu7ure> gona say <Ylja> if I throw out formatnumber it still doesnt work <core`> oi <core`> :) <NeoFu7ure> http://www.neofuture.co.uk/clock.php <NeoFu7ure> WMahahaha <NeoFu7ure> ht311 <NeoFu7ure> what was tht site with the VML graph stuff on <mylobean> is there a way to force a newline in an alert box? <ht311> NeoFu7ure: http://webfx.eae.net/ <ht311> mylobean: \n <mylobean> thank you ht311 <ht311> np <NeoFu7ure> thanks ht311 thats very cool aintit <ht311> yes. that clock look nice, you need to make a svg one for ff1.5 ;) <NeoFu7ure> hehe <NeoFu7ure> its only for my app <NeoFu7ure> lol <NeoFu7ure> fits quiet nice too <Katerina`> can you mix PHP mysql commands in a javascript function definition? <SufiBlade> nopes <Katerina`> I am trying to input the onClose end time for when a user closes the browser <Katerina`> i want to save that time into a mySQL db <Katerina`> right now I am using <body onClose="endTime()" <SufiBlade> ahhh <SufiBlade> you can use AJAX to make the call <Katerina`> how would I do that? <SufiBlade> do you know httprequest/AJAX is? <SufiBlade> http://rajshekhar.net/blog/archives/85-Rasmus-30-second-AJAX-Tutorial.html <Katerina`> no but I am willing to learn <Katerina`> I dont get it <Katerina`> how would I record the endTime into mySQL using AJAX? <SufiBlade> have u used gmail? <Katerina`> yeah for a bit <SufiBlade> did you notice that the page works without apparent 'reloading' <Katerina`> yes I did <Katerina`> I have seen AJAX in action a lot <Katerina`> but what I need is to record the close time <SufiBlade> with ajax, you basically send the request to your php page, which processes the request and sends back results to teh script if needed <SufiBlade> oh ok <SufiBlade> well, you can look at the quick tutorial....just learn how to connect to your php file <Katerina`> I am trying to time the start time and close time of someone reading a specific page <Katerina`> I want to time someone reading a specific page <Katerina`> is that doable? <SufiBlade> it is, but i haven't done it myself... <SufiBlade> i can think its possible using an AJAX call <Katerina`> hmm.. <SufiBlade> onclose, a js function makes a call to a php page like saveTime.php?time=yourTime <Katerina`> Sufi,, how would it make a call to that php page? would it be using an AJAX httpRequest? <SufiBlade> yes of course <Katerina`> ok i am trying it now <Katerina`> is this legal? <Katerina`> http.open('GET', 'inc/savetime.php?closeTime=getTime()', true); <SufiBlade> i have no open...im setting up my first experiment as we speak :) <SufiBlade> *no idea <Katerina`> lol <Katerina`> any luck Sufi? <SufiBlade> not yet, im in no hurry :) <Katerina`> Sufi, i dont think you can *** variables like that in Javascript <Katerina`> http.open('GET', 'inc/savetime.php?closeTime=getTime()', true); <-- that is illegal I think <SufiBlade> illegal <SufiBlade> http.open('GET', 'inc/savetime.php?closeTime=' + getTime(), true); <SufiBlade> something like that <SufiBlade> http.open('GET', 'inc/savetime.php?closeTime=' + myVar, true); <Katerina`> ok will try that <Katerina`> damn <Katerina`> doesnt work <Katerina`> Sufi, are you trying to do it too? <SufiBlade> not this way <SufiBlade> whats going wrong? <Katerina`> it won't UPDATE the mysql closeTime field <Katerina`> when I close the browser <SufiBlade> try and use a button with onclick first instead of onclose <SufiBlade> get your AJAX code to work first...use some alerts to see whats going on <Katerina`> well there you go <Katerina`> the alert isnt working <Katerina`> damn <SufiBlade> :D <L`OcuS> salutations matinales / morning greetings <loply> hi folks <loply> I'm trying to figure out how to call a function in javascript, when I have the name of that function stored as a string... anybody help me? <loply> just calling the string as a function doesnt seem to work, i.e. theFunctionsName(); <L`OcuS> var foo = 'bar'; function bar() { alert('foo bar'); } window[foo](); <L`OcuS> . <Ylja> I want to make something like this: http://www.tones.be/shop_configs3.php?code=PCPAK1 , starting scripting but apparently I did something wrong, cant seem to figure out why it isnt displaying the 'totalprice'... => http://pastebin.com/518158 <anakin_> hi. how do i execute thisfunction() 10 seconds from now? <drkwolf> hi i need help <Pilum> With? <drkwolf> i create an xmldocument & loaded a xml string ... code :var xmlDoc=document.implementation.createDocument("","",null);xmlDoc.load(senderxmldata); <drkwolf> & now i want to check if the xml string is loaded ? <drkwolf> xmlDoc.childNodes.length gives me 0 :/ <drkwolf> Pilum: i want to check if the xml string is loaded ? <StaZ[work]> u aldready said that <drkwolf> StaZ[work] sorry, but how to check it ? <StaZ[work]> i don't know <Pilum> Not sure. Haven't really used that much. <StaZ[work]> http://www.codetoad.com/xml_javascripti_tutorial.asp <Pilum> Can't you just do stuff when xmlDoc.onload triggers? <drkwolf> wait ill check <fatbrain> ho-ho-ho <fatbrain> StaZ[work]: What code are you using? <StaZ[work]> fatbrain huh !?!?!? that was a link for drkwolf <fatbrain> eh, I meant drkwolf <Ylja> I want to make something like this: http://www.tones.be/shop_configs3.php?code=PCPAK1 , starting scripting but apparently I did something wrong, cant seem to figure out why it isnt displaying the 'totalprice'... => http://pastebin.com/518158 <Pilum> Firstly there's a scripting error, secondly, you're using document.write <Pilum> The script errors are that you haven't got the FormatNumber function referenced and that you lack a } to end the function. <Sanguinarius> how do you make a table unvisible with javasript? (if it is possible) <Pilum> Sanguinarius: set display to hidden. <Sanguinarius> how is it done? <Sanguinarius> look this is the whole situationi <Pilum> tableRef.style.display='hidden'; <Sanguinarius> a ok <Sanguinarius> tableRef is the table's name? <Pilum> No. <Pilum> That's a reference to the table. <Sanguinarius> and how do you make a reference? <Pilum> For example document.getElementById('table_id') <Sanguinarius> can you explain better , not really into the language <StaZ[work]> Pilum just a wonder.. why use simple quotes? <Sanguinarius> i want to have an html menu and when the flash menu loads it runs a javascript which makes the html disapear <StaZ[work]> Sanguinarius a flash menu shouldn't take long enough to load to organize all this <Pilum> StaZ[work]: Why not? <StaZ[work]> well string delimiters in most languages are doublequotes <Pilum> Personally it's become a habit for me to avoid conflict with quotes in html. <StaZ[work]> yeah that's a point... for inline javascript <Sanguinarius> ok , i did , thanks <Pilum> And in PHP you'd want single quotes as long as you're not parsing variables in the string too. :-) <StaZ[work]> oh? like that? $mystr = "this is my $value"; <Pilum> Yeh. <StaZ[work]> heh... i don't like php... <plaYer_17> **** javascript <plaYer_17> :P
Return to
#javascript or Go to some related
logs:
what is: normal body temperature for an adult #linux who is genious on earth? foxylove naked public_html apache Permission denied: What sport was standardised under the Queensberry rules ? separov #php #linux #linuxhelp
|
|