Re: Quoting hell, anybody a solution?
Re: Quoting hell, anybody a solution?
- Subject: Re: Quoting hell, anybody a solution?
- From: Anjo Krank <email@hidden>
- Date: Thu, 18 Feb 2010 20:30:25 +0100
The nicest would the to move the JS to a behaviour, based on an attribute:
>>> YourLink : WOHyperlink {
>>> imageID = sess.selectedPerformance.primaryKey;
>>> }
{
"LI.images A": function(e) {
e.onmouseup = function()...
}
}
Cheers, Anjo
Am 18.02.2010 um 20:18 schrieb Mike Schrag:
>>> YourLink : WOHyperlink {
>>> href = ~'javascript:ShowContent(' + sess.selectedPerformance.primaryKey + ')';
>>> }
>> And handle the "Image" + pk in the JS method? Also, you could:
> Whoops -- typo, though that's an option, too.
>
>>> YourLink : WOHyperlink {
>>> href = ~'javascript:ShowContent(this)';
>> imageID = sess.selectedPerformance.primaryKey;
>>>
>>> }
>> And handle that in the JS by "Image" + e.getAttribute("imageID")
> this might be the nicest suggestion so far ...
>
> ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden