AT-XE
May 7th 2009, 7:02 am
Hey there DPers,
I was struggling with this for days (I'm new to JavaScript) so, I was thinking if I could ask your help on this topic. I basically want to create a function in javascript that will return the contents of a document on the web with the "url" parameter so that I can then call it with the document.write function like on the example below:
var currentTime = new Date()
var sec = currentTime.getTime()/1000
var cont = ajaxinclude('http://www.domain.com/timezone.php?time='+sec)
document.write(cont)
Thank you,
-AT-XE
I was struggling with this for days (I'm new to JavaScript) so, I was thinking if I could ask your help on this topic. I basically want to create a function in javascript that will return the contents of a document on the web with the "url" parameter so that I can then call it with the document.write function like on the example below:
var currentTime = new Date()
var sec = currentTime.getTime()/1000
var cont = ajaxinclude('http://www.domain.com/timezone.php?time='+sec)
document.write(cont)
Thank you,
-AT-XE