• 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: prevent the user to click again the same wo:hyperlink whilst page reloads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prevent the user to click again the same wo:hyperlink whilst page reloads?


  • Subject: Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 06 Feb 2015 18:40:55 +0000
  • Thread-topic: prevent the user to click again the same wo:hyperlink whilst page reloads?

Yes, you can.  Override installPatches() in Application, call super to get the Wonder defaults, then
ERXPatcher.setClassForName(YourLink.class, “WOHyperlink”);

Chuck


On 2015-02-06, 1:06 AM, "OC" wrote:

On 6. 2. 2015, at 8:47, OC <email@hidden> wrote:

Hmmm, it looks like
<wo:hyperlink ... _onclick_="var hr=this.href;this.href='';window.location.href="">
might work all right.

Whilst I could go through all the wo:hyperlinks in my templates, it would be sort of more convenient to do this at one place.

I've found that ERXHyperlink “is patched automatically into the runtime system on application startup”. Can't I do that myself, defining my own subclass of ERXHyperlink, and patch _it_ into the runtime system? If so, how?

Thanks!
OC


 _______________________________________________
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

References: 
 >prevent the user to click again the same wo:hyperlink whilst page reloads? (From: OC <email@hidden>)
 >Re: prevent the user to click again the same wo:hyperlink whilst page reloads? (From: Chuck Hill <email@hidden>)
 >Re: prevent the user to click again the same wo:hyperlink whilst page reloads? (From: OC <email@hidden>)
 >Re: prevent the user to click again the same wo:hyperlink whilst page reloads? (From: OC <email@hidden>)

  • Prev by Date: Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist
  • Next by Date: Re: JBoss 6.2 and EOModelGroup issues
  • Previous by thread: Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
  • Next by thread: Re: prevent the user to click again the same wo:hyperlink whilst page reloads?
  • Index(es):
    • Date
    • Thread