Date:  02/04/2008 05:46:26 PM Msg ID:  003677
From:  FoxWeb Support Thread:  003676
Subject:  Re: Javascript (DateClick.js) not playing ni
My guess is that your browser is unable to find choosedate.js.  You probably need to use an absolute URL to point to this file.  For details please refer to the "Including Links in FoxWeb Script Output" section of the Locating and Addressing Scripts page in the FoxWeb documentation.
FoxWeb Support Team
support@foxweb.com email
Sent by George Gambill on 02/04/2008 12:58:41 PM:
 A simple page below, when saved as an HTM and run as a fully qualified URL

(C:\.....\test.htm) works.

 

When saved as an FWX and run through LocalHost (http://localhost/test.fwx), the graphics (icon) which brings up a calender (from which we can select a day, month and year) is absence.

 

DateClick can be demoed at:

http://www.primorissoftware.com/demo.asp

FoxWeb 4.0 Licensed
Windows XP
VFP 8.0
FoxWeb as a service? No
VFP run-time DLL? No
IIS or whatever comes with XP.  Will be IIS in Production

<!-- Htm/fwx follows -->

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<title>Untitled</title>

<script language="javascript" src="choosedate.js"></script>

<link type="text/css" rel="stylesheet" href="calendar.css">

</head>

<body>

<form name="frm">

<input type="text" name="datBegin" size="10">

&nbsp;

<script language=javascript>

var basicCal = new calendar("FIELD:document.frm.datBegin");

basicCal.writeCalendar();

</script>

</form>

</body>

</html>

<!-- End Htm/fwx -->