Re: Override default WOHyperlink methods
Re: Override default WOHyperlink methods
- Subject: Re: Override default WOHyperlink methods
- From: Nathan Dumar <email@hidden>
- Date: Thu, 13 May 2004 09:19:33 -0400
Thank you, Pierre, and thanks for the other information, also. There's
a lot of other useful stuff on your site as well.
My site already relies on JavaScript for many other things (like data
verification and form submission). I require JS just to log in,
thereby guaranteeing that it is enabled, at least in the beginning.
I haven't tested the whole location.replace() idea yet. I stumbled on
it recently and thought I'd try it out, if I could do it globally. Now
I'm wondering if I can accomplish the same effect in forms.
Thanks again,
Nathan
On May 13, 2004, at 3:08 AM, email@hidden wrote:
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
**********************************************************************
============= Signature File =============
Privacy is your right -- use PGP encryption.
Get your privacy for FREE at
http://www.pgp.com/products/freeware.html
My public key:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 8.0.3 - not licensed for commercial use: www.pgp.com
mQGiBECT2FURBADXMP4OYe1GUkK8lhRrQzQ6Hbja53sxs+AKmsrFcDBz/ee8Qxwk
We4ewef3V6RhDh33Vu2nAlqvny15d7od0+2Z1BINpVGCxfhMbVzwWhHYvEnVwiaB
bBsm7TIfplJiGiwA/AjQpw3qgd4TX1gg0erkDV4K+nDJYppP7oNBr8sHuwCg/xKq
U+Ep3alhvCMFMCT3eWizNUMD/3Qek9sZiZvRTQjZGaY5fgONoVv5iCvj0Lv8IE4N
2vdSJpZlewFRACc/FXOZ3P+TX3VEi58tpX0o2Zi6cfJIl/2AaZYTAo7SNbrxKqLx
ZRe6o+FFP1ZkbyzQeNG7hSoxJ1kD+gJN3sOM6oGCucvdKEo173Of+vvnx8LckGrx
E/0KA/4k5Usq3I9PhSzfYIblJ+IUrdBrDcQDDlG8lQA9/dt6CfUEhwbPm/KDJVzo
/2DSQ/Kimk+B9Yt+KLEr0W5XfyIZALzlfWW6CsAnnzQw3onfX77AXfDC9SZviFzH
QcHLsfNL1RQ3Oohfwitr7b2H0dVKgbUIevw2ERulNcbiAQx8H7QCbjKJAF0EEBEC
AB0FAkCT2FUFCQIxnwAHCwkIBwMCCgIZAQUbAwAAAAAKCRAf/cF+zZseG+csAJ9m
GNRcp6HwytaQ7gQ6VWcqR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itAd
cg7hwfoEnVrYIVo8fSy81Tw4T1yI2v4A46T85G8yjlJz/BODWll2ZUOg6J7eYgo6
gYgN6vt2hjR41XfpSGwOdm2qyEvPGPnuy7Y5mmryfwnvp0aRE7BClgjX/mpGBKsV
lmuNME3JLSeCV8R4GC54B/MDj0OOgC06XW+V04zU+F5aPpHr+sfG4iSj6KEZsrNr
X6nnK0TUS3yoTjVB1lIm6P7nTycYCjhVH+mk9kkTnndy7a2LdcIX+Th/bJ1ag5/w
i7ZOBolQSDlMGhPxxvay+nJpxBtNt2QSOxYXH9b9hirpRgXkH1mqjlge7HO+Y0RI
0Q6JQu8nMa7Ya/Mdgbai24a5dJ2AnTZoOokAUgQYEQIAEgUCQJPYVQUJAjGfAAUb
DAAAAAAKCRAf/cF+zZseG0IiAJ93gYD6MupLGYXuddvgnZIWPpp/UgCg4vKH1Ozv
jXvQOGG/WV69liwceww=
=2bju
-----END PGP PUBLIC KEY BLOCK-----
This key expires on July 1, 2004. Request a new key on or after this
date.
_______________________________________________
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.