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: calendar doesn't pop up
fem
Newbie

Posts: 1
Registered: 11/7/2005
Member Is Offline
posted on 11/7/2005 at 09:56 PM Reply With Quote
calendar doesn't pop up


Hi, I've just tried to implement the tigra-calendar into my php-script with form.
I think I did everything right.
All the files are on the server/same directory.
The names of the form and input box are right.
Tried a lot with " " or ' ' ...
The a href is all right.....But the calendar will NOT pop up.

Within a normal html-page the script works oke!

Anyone who knows what the problem might be?
Earlier I experienced also problems with pop-ups and php!
View User's Profile View All Posts By User U2U Member
bulldog8
Junior Member

Posts: 2
Registered: 11/11/2005
Member Is Offline
posted on 11/11/2005 at 12:29 AM Reply With Quote

Same thing here, trying ti use the free version though.

... page built by php script - 'Error on page'

view & save 'source' and reload using that, and calendars pop up.

Any direction would be helpful!
View User's Profile View All Posts By User U2U Member
bulldog8
Junior Member

Posts: 2
Registered: 11/11/2005
Member Is Offline
posted on 11/17/2005 at 07:08 PM Reply With Quote
Found a solution...


I changed all of my echo statements to be consistent and the pop-up started working:


echo "<html><head>
<script language=\"JavaScript\" src=\"calendar2.js\"></script>
<title>Vacation Request</title>
</head>
<FORM name=vacreq METHOD=POST action=\"vacreq.php\">";

.....

echo "<table border=\"3\" cellpadding=\"5\" cellspacing=\"4\" width=\"72%\" height=\"16\">
<tr>
<td width=\"100%\" colspan=\"2\" height=\"43\"><u><b>Vacation Request</b></u></td>
</tr>
<tr>
<td width=\"40%\" height=\"81\">
<p align=\"left\" style=\"margin-left: 30; margin-top: 1; margin-bottom: 1\">
Start Date <input type=\"text\" name=\"txtStartDate\" size=\"20\" tabindex=\"1\" value=\"" . $txtStartDate ."\">
<a href=\"javascript:cal1.popup();\">
<img src=\"../img/cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick Start date\"></a><br></p>
<p align=\"left\" style=\"margin-left: 30; margin-top: 1; margin-bottom: 1\">
End Date&nbsp; <input type=\"text\" name=\"txtEndDate\" size=\"20\" tabindex=\"2\" value=\"" . $txtEndDate ."\">
<a href=\"javascript:cal2.popup();\">
<img src=\"../img/cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick End date\"></a><br></p>
</td>";

....

echo "<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['vacreq'].elements['txtStartDate']);
cal1.year_scroll = true;
cal1.time_comp = false;
var cal2 = new calendar2(document.forms['vacreq'].elements['txtEndDate']);
cal2.year_scroll = true;
cal2.time_comp = false;
//--></script>";
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