I'm using this JS and applying it to my app. This example work in both IE and FireFox when I do a "test" app. *** When I apply it to my actual code, it works in IE and doesnt in Firefox.
--I think this is because: I have a Admin/Order/default.aspx page. It has a content page. I put the link to JS in it. I have the textbox there as well. **In IE it's all fine.
In Firefox, i click on the calendar and nothing happens.
-- So, I want to move the 2 lines below from Admin/Orders/Default.aspx to my Admin/Default.aspx. This page has the form, the head tags. BUT call this function from my Orders/Default.aspx.
******* When I do that, I get an error that "cal" is null or undefined.
-- I have JS enabled in FireFox. I also turned off pop-up blockers.
var cal = new CalendarPopup();
-- I call it like this:
<td><input id="txtStartDate" size="7" runat="server" readonly="readOnly" type="text" />
<a href="#" onclick="cal.select(ctl00_Navigation_txtStartDate,'anchor1','MM/dd/yyyy'); return false;"