Re: Web Resource references in WOJavaScript [SOLVED]
Re: Web Resource references in WOJavaScript [SOLVED]
- Subject: Re: Web Resource references in WOJavaScript [SOLVED]
- From: David Holt <email@hidden>
- Date: Thu, 19 Aug 2004 17:34:50 -0700
I had to hard code the path to the URL of the WebServerResources
folder. The relative paths to the .gifs within calendar.html took care
of themselves. This is the relevant line in the JavaScript:
calendarWindow =
window.open('/WebObjects/adverseEvent.woa/Contents/WebserverResources/
calendar.html',
'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,men
ubar=no,scrollbars=no,resizable=0,dependent=no,width='+cal_width+',heigh
t='+cal_height);
Are there any issues with hardcoding the URL path in the JavaScript? It
seems the code won't be as reusable as I would like. Can I somehow use
a WO variable in the JavaScript? Anyway, it works for this app, and
that is my primary concern!
David
On 19 Aug 2004, at 3:58 PM, David Holt wrote:
>
>
> 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
_______________________________________________
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.