Web Resource references in WOJavaScript
Web Resource references in WOJavaScript
- Subject: Web Resource references in WOJavaScript
- From: David Holt <email@hidden>
- Date: Thu, 19 Aug 2004 15:58:39 -0700
Hello all,
I am using a JavaScript date picker for a field in a WOForm. I have
named the form and the field so that I can use the following code:
HTML
<WEBOBJECT NAME=CalendarPopupJavaScript></WEBOBJECT> this is in the
<HEAD> section
<WEBOBJECT NAME=datePicker1>DatePicker1</WEBOBJECT>
WOD
CalendarPopupJavaScript: WOJavaScript {
scriptSource = "calendar.js";
hideInComment = true;
}
Form1: WOForm {
multipleSubmit = true;
name = "EditForm";
}
TextField1: WOTextField {
value = entity.entityReceivedDate;
dateformat = "%d/%m/%Y";
name = "dateReceived";
}
datePicker1: WOHyperlink {
href = "javascript: void(0);";
onclick = "return getCalendar(document.EditForm.dateReceived);";
}
The popup comes up just as expected, but the JavaScript makes a
reference to "calendar.html" and from within the html there are
references to several .gifs. I don't know how to reference them when
they are in a WOJavaScript pointing to the file "calandar.js". The
script is being called because the popup comes up with the my reference
to the html file in the address bar, but the calendar and its graphics
are not displayed. If I leave the file pointing to "calendar.html" it
opens up a new session in the popup window.
I have tried it in both the development and deployment modes and
neither are working.
How should I be referring to the html and graphics files within the
WOJavaScript to populate my popup window? Thanks for any light you can
shed on this,
David
--
I don't like coming home. It keeps me from being nostalgic.
Stewart O'Nan
from Sunbeams: http://www.thesunmagazine.org
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.