Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: no popup
idrake
Member

Posts: 12
Registered: 3/10/2008
Location: usa
Member Is Offline
posted on 3/12/2008 at 07:39 PM Reply With Quote
no popup


so here's the code for my first attempt to implement the calendar:

<form name="schedule">
<input type="Text" name="input1" value="">
<a href="javascript:cal1.popup();"><img src="../tigra_calendar/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a>
</form><script language="JavaScript">
<!-- // create calendar object(s) just after form tag closed
// specify form element as the only parameter (document.forms['formname'].elements['inputname']);
// note: you can have as many calendar objects as you need for your application
var cal1 = new calendar1(document.forms['schedule'].elements['input1']);
cal1.year_scroll = true;
cal1.time_comp = false;
//-->
</script>

but what I get on the testing server is the form field followed by the alt text "click here to pick up the date" and no popup when that is clicked.
Firefox tells me I have 1 error: calendar 1 is not defined.
Any clues will be welcome...
View User's Profile View All Posts By User U2U Member
tigra
Administrator

Posts: 2049
Registered: 6/17/2002
Location: US, CO
Member Is Offline
posted on 3/12/2008 at 08:52 PM Reply With Quote

make sure to link calendar1.js to your HTML document. Make sure calendar1.js is at the location you're referring.
View User's Profile View All Posts By User U2U Member
idrake
Member

Posts: 12
Registered: 3/10/2008
Location: usa
Member Is Offline
posted on 3/13/2008 at 02:42 PM Reply With Quote

Actually, I want just calendar2. I've gotten the path right, now, for the calendar thumbnail, but don't really know how to link to calendar2. Here's how my code looks now:

<form name="schedule">
<input type="Text" name="input1" value="">
<a href="javascript:call.popup();"><img src="tigra_calendar/img/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a>
</form><script language="JavaScript">
<!-- // create calendar object(s) just after form tag closed
// specify form element as the only parameter (document.forms['formname'].elements['inputname']);
// note: you can have as many calendar objects as you need for your application
var cal1 = new calendar2(document.forms['schedule'].elements['input1']);
cal1.year_scroll = true;
cal1.time_comp = false;
//-->
</script>

when I test in Firefox I get 2 errors: calendar2 is not defined; call is not defined.
How do I define these?
Again, thanks for the help!
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004