Position Property
2008/08/18 23:29
Viewed 2071 times
Replies: 0/0

How can I pass in the (x,y) values dynamicly for the property position? IE is not displaying the calendar popup properly. It displays on the top my of page. I am able to calculate the (x,y) locations of the input element and the values are in a hidden tag of <input type="hidden" id="location">.
So, I am do the following with no luck.

<script type="text/javascript">
Calendar.setup({
inputField : "futureCancelDate", // id of the input field
ifFormat : "<?= str_replace(array('Y', 'y', 'm', 'd'), array('%Y', '%y', '%m', '%d'), $locale->getDateFormat()) ?>",
button : "cancelTrigger", // trigger for the calendar (button ID)
singleClick : true,
position : document.getElementById('location').value
});
//-->
</script>

Is this possible? Thank you.
AM

Google