Re: Web Resource references in WOJavaScript [SOLVED]
Re: Web Resource references in WOJavaScript [SOLVED]
- Subject: Re: Web Resource references in WOJavaScript [SOLVED]
- From: "Lonie, Chris" <email@hidden>
- Date: Fri, 20 Aug 2004 09:31:59 -0400
David,
Using a WOString (or WOConditionals or ??) inside javascript is possible. It
is mostly just like using them anywhere else in the HTML. Just edit the HTML
and wod file directly to add a new WOString with the required bindings and
set the value in the code.
String99: WOString {
value = somePath;
}
calendarWindow =
window.open('<WEBOBJECT
Name=String99></WEBOBJECT>/Contents/WebserverResources/
calendar.html','dateSelectorPopup','toolbar=no,location=no,directories=no,st
atus=no,men
ubar=no,scrollbars=no,resizable=0,dependent=no,width='+cal_width+',heigh
t='+cal_height);
HTH,
Chris
>From: David Holt <email@hidden>
>Subject: Re: Web Resource references in WOJavaScript [SOLVED]
>Date: Thu, 19 Aug 2004 17:34:50 -0700
>To: WebObjectsDev (Group) <email@hidden>
>
>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.