Hi,
I'm using the famous date-picker.js for one of my pages, where I have 2 form fields with dates to be picked-up.
My goal is to assign to a third form field the day difference between the two dates. I've tried to trigger the function from an 'onchange' event, but the date-picker assigns the date.value from a different window, so it doesn't work.
So i opened the js, and immediately before the window.close command, i called a function to serve the purpose.
Problem is I get an 'objet expected' error, even with the most simple of the function... here a snippett :
I'm breaking my head on this... pls help !
Thanks
I'm using the famous date-picker.js for one of my pages, where I have 2 form fields with dates to be picked-up.
My goal is to assign to a third form field the day difference between the two dates. I've tried to trigger the function from an 'onchange' event, but the date-picker assigns the date.value from a different window, so it doesn't work.
So i opened the js, and immediately before the window.close command, i called a function to serve the purpose.
Problem is I get an 'objet expected' error, even with the most simple of the function... here a snippett :
Code:
function testme(){
alert('Test');
}
--snip--
for (j=0; j<7; j++) {
vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j) + "><FONT SIZE='2' FACE='" + fontface + "'>" +
"<A HREF='#' " +
"onClick=\"self.opener.document." + this.gReturnItem + ".value='" +
this.format_data(vDay) +
"';testme();window.close();\">" +
this.format_day(vDay) +
"</A>" +
"</FONT></TD>";
vDay=vDay + 1;
--snip--
Thanks