• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Web Resource references in WOJavaScript [SOLVED]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Web Resource references in WOJavaScript (From: David Holt <email@hidden>)

  • Prev by Date: Re: Practical WebObjects by Chuck Hill
  • Next by Date: Re: Web Resource references in WOJavaScript [SOLVED]
  • Previous by thread: Web Resource references in WOJavaScript
  • Next by thread: Re: Web Resource references in WOJavaScript [SOLVED]
  • Index(es):
    • Date
    • Thread