By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,631 Members | 1,345 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,631 IT Pros & Developers. It's quick & easy.

Redirect Magic Needed

P: n/a
I have link embedded in a Java application that cannot be easily or
quickly changed, but need to dynamically redirect it. Web server is
SunOne 6.1.

The link needs to be modified dynamically so that it opens a new
browser window, instead of jumping to the link in the same window.
That is, instead of:

<a href="foo.bar.com">text</a>

It needs to be

<a href="foo.bar.com target="foo">text</a>

The problem is the application is a fill-in form. If the user clicks
on the link in the form before completing the form, the data that's
been entered into the form is lost, and the browser back button won't
work to return the user to the partially completed form.

Of course, changing the form to use the proper link is the permanent
solution, but that can't be done quickly.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Tim Evans wrote:
I have link embedded in a Java application that cannot be easily or
quickly changed, but need to dynamically redirect it. Web server is
SunOne 6.1.

The link needs to be modified dynamically so that it opens a new
browser window, instead of jumping to the link in the same window.
That is, instead of:

<a href="foo.bar.com">text</a>

It needs to be

<a href="foo.bar.com target="foo">text</a>

The problem is the application is a fill-in form. If the user clicks
on the link in the form before completing the form, the data that's
been entered into the form is lost, and the browser back button won't
work to return the user to the partially completed form.

If you can modify the rest of the page, you could add a <base
target="foo" /> tag or a script that modifies the link targets accordingly.

--
Klaus Johannes Rusch
Kl********@atmedia.net
http://www.atmedia.net/KlausRusch/

Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.