Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:51 PM
Tim Evans
Guest
 
Posts: n/a
Default Redirect Magic Needed

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.
  #2  
Old July 20th, 2005, 06:54 PM
Klaus Johannes Rusch
Guest
 
Posts: n/a
Default Re: Redirect Magic Needed

Tim Evans wrote:
[color=blue]
>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.
>
>[/color]
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
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles