Hi all,
Firstly not sure if this is the right section to ask this so don't shoot me.
I'm just having a problem getting a celendar to work on my product page using the code below
'
<DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>
<SCRIPT LANGUAGE="JavaScript" ID="js18">
var cal18 = new CalendarPopup("testdiv1");
cal18.setCssPrefix("TEST");
</SCRIPT>
<INPUT TYPE="text" onClick="cal18.select(document.forms[0].date18,'anchor18','MM/dd/yyyy'); return false;" NAME="date18" VALUE="" SIZE=25>
<A HREF="#" onClick="cal18.select(document.forms[0].date18,'anchor18','MM/dd/yyyy'); return false;" TITLE="cal18.select(document.forms[0].date18,'anchor1x','MM/dd/yyyy'); return false;" NAME="anchor18" ID="anchor18">select</A>'
Basically clicking it redirects to the homepage. The js needed is in the product_info folder. The code works fine when in a blank php file.
I've tried including this as an iframe which works but the popup anchor is only shown in the iframe which makes the popup cause you to scroll the iframe. Not sure of a way of moving the anchor which is uses to position the popup outside of the frame, i.e on the product page. (this is the js code I'm using - http://www.mattkruse.com/javascript/...ct_source.html)
Hope someone has some suggestions.
Thanks!



