• 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: Quoting hell, anybody a solution?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Quoting hell, anybody a solution?
      • From: Johan Henselmans <email@hidden>
References: 
 >Quoting hell, anybody a solution? (From: Johan Henselmans <email@hidden>)
 >Re: Quoting hell, anybody a solution? (From: Henrique Gomes <email@hidden>)
 >Re: Quoting hell, anybody a solution? (From: Johan Henselmans <email@hidden>)
 >Re: Quoting hell, anybody a solution? (From: Anjo Krank <email@hidden>)
 >Re: Quoting hell, anybody a solution? (From: Johan Henselmans <email@hidden>)
 >Re: Quoting hell, anybody a solution? (From: Mike Schrag <email@hidden>)
 >Re: Quoting hell, anybody a solution? (From: Mike Schrag <email@hidden>)
 >Re: Quoting hell, anybody a solution? (From: Anjo Krank <email@hidden>)
 >Re: Quoting hell, anybody a solution? (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: De Framing an Application
  • Next by Date: WSDL is not complaint to WS-I
  • Previous by thread: Re: Quoting hell, anybody a solution?
  • Next by thread: Re: Quoting hell, anybody a solution?
  • Index(es):
    • Date
    • Thread