fem
Newbie
Posts: 1
Registered: 11/7/2005
Member Is Offline
|
| posted on 11/7/2005 at 09:56 PM |
|
|
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!
|
|
|
bulldog8
Junior Member
Posts: 2
Registered: 11/11/2005
Member Is Offline
|
| posted on 11/11/2005 at 12:29 AM |
|
|
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!
|
|
|
bulldog8
Junior Member
Posts: 2
Registered: 11/11/2005
Member Is Offline
|
| posted on 11/17/2005 at 07:08 PM |
|
|
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 <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>";
|
|
|