RE: Override default WOHyperlink methods (was Re: Universal change for link URLs?)
RE: Override default WOHyperlink methods (was Re: Universal change for link URLs?)
- Subject: RE: Override default WOHyperlink methods (was Re: Universal change for link URLs?)
- From: <email@hidden>
- Date: Thu, 13 May 2004 09:08:49 +0200
- Thread-topic: Override default WOHyperlink methods (was Re: Universal change for link URLs?)
Hi!
Dynamic elements are looked up by name. You might want to override the following WOApplication method to get your own WOHyperlink:
public WOElement dynamicElementWithName(String s, NSDictionary nsdictionary, WOElement woelement, NSArray nsarray)
That said, I don't really like the idea to rely on assumptions about the client's browser to protect an application. What if JavaScript is disabled? What if the browser found another method to manage history?
I'd rather detect harmful use of the back button and react appropriately: http://homepage.mac.com/I_love_my/webobjects.html
Pierre
-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Nathan Dumar
Sent: Wednesday, May 12, 2004 9:39 PM
To: email@hidden
Cc: David Elsner
Subject: Override default WOHyperlink methods (was Re: Universal change
for link URLs?)
Dave, this is a great idea. Best I've heard yet.
Does anyone know how to override the default behavior of a WOHyperlink
to also produce the window.location.replace() text for each link, as WO
parses the <WEBOBJECT> tag? This is the only thing I can think of to
truly disable the back button. If no history is made in the browser,
there is nothing to go back to.
Thanks,
Nathan
On May 11, 2004, at 7:18 PM, David Elsner wrote:
> Nathan,
>
> I use this on my pages body tag
> onload="javascript:window.history.forward(1); to disable the back
> button.
> Not the best solution but it works for my purposes.
>
> Dave
>
> On 12/05/2004, at 4:55 AM, Nathan Dumar wrote:
>
>> Does anyone know ...
>>
>> Is it possible to make a change at the application level so that
>> instead of a link's standard url it would be inserted into a
>> javascript line something like this:
>>
>> location.replace("http://<link>")
>>
>> This would be to disable the back button by not creating a history to
>> go through. Is there another way to do this ONCE at the application
>> level without rewriting ALL of my links?
>>
>> Thank you to anyone who can help,
>> Nathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.