473,394 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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.
Jul 20 '05 #1
1 1404
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Steve Lutz | last post by:
Hello, I have a page that creates a class, and then on certain conditions, redirects user to another page. The class has a Class_Terminate() function that saves itself to a database. The class...
4
by: Jim Heavey | last post by:
I know that to pass one variable in a response redirect, you format your command line "response.redirect("somepage.aspx?Fred=Male"), but what character to you use to seperate the variables when...
3
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here...
6
by: Peter Row | last post by:
Hi, I am writing a DLL in VB.NET that implements IHttpHandler.ProcessRequest. This code calls a sub and I need to know if that sub did a response redirect or not. Specifically I need to know...
1
by: MikeM | last post by:
We are getting a behavior on a Response.Redirect("SomeUrl", True) that I'm hoping someone can explain. This all refers to the code snip at the end. By the way, this is all VB ASP.NET v1.0 code. ...
10
by: Jon | last post by:
All, Yes, it's more of the famous 'what do I do about magic_quotes' questions. Anyways, here we go: I've been a PHP developer for about a year now, and have grown to detest magic_quotes for...
0
by: bunkle | last post by:
Okay, Here's what I want to do. I want to write a cgi-script that does something that takes a while to run. While it does that something, it displays content to a page. When it's done doing that...
9
by: Larry Hale | last post by:
I've heard tell of a Python binding for libmagic (file(1) *nixy command; see http://darwinsys.com/file/). Generally, has anybody built this and worked with it under Windows? The only thing I've...
3
by: =?Utf-8?B?UGF0UA==?= | last post by:
We have a site that gets many requests for nonexistent pages, files and folders. We want those requests redirected to the index page. However, for static files (i.e. images and some other...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.