Re: embedded objects
Re: embedded objects
- Subject: Re: embedded objects
- From: Chuck Hill <email@hidden>
- Date: Sat, 03 May 2003 17:19:27 -0700
The problem is the path to the midi file: u2_beautifulday.mid
When this was a static page, this file was in the same directory as the
html file so the relative path was fine. Now that this is in a WO page,
the path is relative to the dynamic WO URL. It is going to be resolved to
something like this:
http//domain.com/cgi-bin/WebObjects/AppName.woa/1/wo/68F3uq7ZwjIJNKWjPMKrwM/
u2_beautifulday.mid
The easiest solution is to change the path to be relative to the webserver
doc root, something like this:
src="/multimedia/midi/u2_beautifulday.mid"
You could also make it a resource in your project and use WOEmbeddedObject
and the resource manager to get to it. But that seems like a lot of work
for little benefit in this case.
Chuck
At 07:21 PM 02/05/2003 -0400, Richard L. Peskin wrote:
>In the code snippet below I am inserting a couple of WOComponents into
>a static html page. (Other static page items not listed.) The whole
>page works correctly except that the midi file never plays although the
>QT control is shown on the page. Should I expect the midi file to play
>or do I need to use WOEmbeddedObject components?
>(This exercise arises out of the attempt to integrate WOComponents into
>an existing page.)
>---------------
><embed src="u2_beautifulday.mid" width="144" height="60"
>autostart="true" loop="true" volume=200>
> </embed>
><WEBOBJECT NAME=String1></WEBOBJECT></FONT></I></B><P>This page has
>been viewed <B><I><WEBOBJECT NAME=String2></WEBOBJECT></I></B>
>times.</P><WEBOBJECT NAME=Hyperlink1>Refresh Time</WEBOBJECT>
>--------------------
>--dick peskin
>
>
>Richard L. Peskin, RLP Consulting, Londonderry, VT
>http://www.rlpcon.com
>http://www.caip.rutgers.edu/~peskin
>_______________________________________________
>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.
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
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.