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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to