Hi Ken,

could you share the source? I'm looking for something like (simplified)

<audio preload="none">
  <source src="foo">
</audio>

where foo is then a generated WO action url of an Ajax action which delivers 
the audio content. Is this something similar to what you did?

I've had little luck so far, lacking experience making custom WO elements. What 
worked in Safari is writing it out with an empty src attribute, generating a 
separate hidden action url and then use some javascript at dom ready to copy it 
over, but Firefox checks the audio tag for valid sources before that javascript 
is executed.

Thanks
Maik


Am 16.01.2014 um 02:17 schrieb Ken Anderson <[email protected]>:

> Nevermind.
> 
> Got this working - although it doesn’t work in Safari.
> 
> I subclassed WOHTMLURLValuedElement (which is what WOImage subclasses), and 
> only had to implement the constructor and override 
> appendAttributesToResponse, and it works! (In Firefox).
> 
> Ken
> 
> On Jan 15, 2014, at 7:30 PM, Ken Anderson <[email protected]> wrote:
> 
>> Gang,
>> 
>> I would like to duplicate WOImage with the data binding for audio.
>> 
>> Today, I can hook a database blob up to the data binding of WOImage and it 
>> “just works” - it generates, and obviously handles:
>> 
>>      <img 
>> src="/cgi-bin/WebObjects/MycationMaint.woa/-51114/wr?wodata=2266409265804109874"
>>  />
>> 
>> All I want is:
>> 
>>      <audio 
>> src="/cgi-bin/WebObjects/MycationMaint.woa/-51114/wr?wodata=2266409265804109874"
>>  />
>> 
>> Does anyone have an example of how to generate, and handle, such a URL?
>> 
>> I’ve looked around the Wonder source for examples, but I haven’t found 
>> anything terribly useful.  WOImage and it’s superclasses are in _private, 
>> and are convoluted at best.
>> 
>> Any thoughts are appreciated!
>> 
>> Ken
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
>> 
>> This email sent to [email protected]
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/maik%40selbstdenker.ag
> 
> This email sent to [email protected]

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to