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: yet another 'popup not showing' post
nghmrt
Junior Member

Posts: 3
Registered: 6/5/2007
Member Is Offline
posted on 6/5/2007 at 10:54 AM
yet another 'popup not showing' post


i'm trying to use calendar in a php file. js and calendar.html resides in the same dir as php file using them.

the code is quite simple but i'm attaching it for review. anyway - i'm getting the 'cal1 has no properties' error and no popup showing.

what else needs to be clear besides name of the form, name of the input field and correct path to js file? or i'm just a new member of 'what's wrong in such simple code because this ain't working' club?...
(there is a number of posts on the forum with the same problem, with same simple code, and replies in the form of pointing to js error debuging, which is no help)

<head>
<script language="JavaScript" src="calendar.js"></script>
</head>

<form action="file.php" name="form" method="post">
<input value="" name="blabla" type="text" />
<a href="javascript:cal1.popup();"><img src="img/cal.gif"></a>
</form>

<script language="JavaScript">
<!-- //
var cal1 = new calendar1(document.forms['form'].elements['blabla']);
cal1.year_scroll = false;
cal1.time_comp = false;
//-->
</script>
View User's Profile View All Posts By User U2U Member
nghmrt
Junior Member

Posts: 3
Registered: 6/5/2007
Member Is Offline
posted on 6/5/2007 at 11:29 AM

just to mention :) interesting, i tried this one (www.javascriptkit.com/script/script2/timestamp.shtml) and it worked immediately.
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 6/5/2007 at 04:26 PM

That's ancient version of Tigra Calendar. The reason we separated the files into .js and .html is problems with that approach in https pages.
View User's Profile View All Posts By User U2U Member
nghmrt
Junior Member

Posts: 3
Registered: 6/5/2007
Member Is Offline
posted on 6/6/2007 at 11:12 AM

Quote:
Originally posted by tigraThat's ancient version of Tigra Calendar.


well, i successfully ran the thing at the first tryout, even more, i did the customizing the date format to mysql's (yyyy-mm-dd) plus cutting of the timestamp because i need only the date - all with no problem. and it work like charm.
but what was wrong with recent version of Calendar i really don't know. i'm quite sure i didn't screw up anything, the code implementation is really simple but hell if i know what was wrong. js debug error was 'no properties' (?) bah whatever...
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