Click here to get back home

next-url and target problems

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
next-url and target problems Steve K 09-20-2007
Posted by Steve K on September 20, 2007, 12:42 pm
Please log in for more thread options
I have a form that, when the submit button is clicked, the user is
redirected to another webpage using the "next-url" input.

But, the page that the form is in is in frames and the page it's being
redirected to is also in frames. So after they hit submit, the new page
is loaded within only one frame, we don't want this. I want it to go
over top of that whole web page.

I am very familiar with "target="_top" but not when the "next-url"
option is used.

I tried using this code but it didn't work:

<input type="hidden" name="next-url"
value="http://aem.cornell.edu/special_programs/gmp/module11/final_evaluation/mod
ule11-ev.htm" target="_top" />

Any suggestions (aside from me stupidly choosing to use frames, long
story)?

Thanks

Posted by Harlan Messinger on September 20, 2007, 1:20 pm
Please log in for more thread options
Steve K wrote:
> I have a form that, when the submit button is clicked, the user is
> redirected to another webpage using the "next-url" input.
>
> But, the page that the form is in is in frames and the page it's being
> redirected to is also in frames. So after they hit submit, the new page
> is loaded within only one frame, we don't want this. I want it to go
> over top of that whole web page.
>
> I am very familiar with "target="_top" but not when the "next-url"
> option is used.

There isn't anything in HTML called "the next-url option". What you have
below is an ordinary hidden input control with the name "next-url" and
an associated initial value. If you are using some special web server
application that makes use of a value by this name, it will only be
known to people who use that application.

As for the target attribute, it belongs to the form's <form> tag.

>
> I tried using this code but it didn't work:
>
> <input type="hidden" name="next-url"
>
value="http://aem.cornell.edu/special_programs/gmp/module11/final_evaluation/mod
> ule11-ev.htm" target="_top" />

Posted by André Gillibert on September 22, 2007, 5:53 pm
Please log in for more thread options
Steve K wrote:

> I have a form that, when the submit button is clicked, the user is
> redirected to another webpage using the "next-url" input.
>

What is this "next-url option" supposed to be?
Theorically, most user agents will pass the next-url value encoded in the
submission URI or in HTTP post data. Here, I assume that the HTTP method
is POST as you want to redirect to a fixed URI.
It shouldn't redirect the user, unless the server returns a 3XX response.

> I am very familiar with "target="_top" but not when the "next-url"
> option is used.
>

Try:

<form target="_top" action=URI method=POST>
<!-- ... -->
</form>

Then, use a proper HTTP 303 response.

> I tried using this code but it didn't work:
>
> <input type="hidden" name="next-url"
>
value="http://aem.cornell.edu/special_programs/gmp/module11/final_evaluation/mod
> ule11-ev.htm" target="_top" />
>

The target attribute doesn't apply to INPUT elements, but to FORM elements.
What would you have expected if two INPUT elements had conflicting target
attributes?

--

Similar ThreadsPosted
How To Target DIV's? July 15, 2004, 12:52 pm
How do I name a window so I can TARGET back to it? November 15, 2005, 12:41 am
frame target mcmain November 13, 2006, 8:22 pm
target in strict doctype December 16, 2007, 12:40 pm
Link TARGET Attribute Enhancement May 13, 2005, 4:20 pm
opening new window: target vs jscript? January 29, 2005, 4:55 pm
Showing target of a link inline November 15, 2005, 6:00 pm
DOCTYPE Strict and target="_blank" August 18, 2006, 11:07 am
Why are windows opening as if base target is being used? June 20, 2007, 3:03 pm
Anchor target="_parent" in an iframe. I need it! November 12, 2007, 12:16 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap