471,627 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

next-url and target problems

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
Sep 20 '07 #1
2 4564
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 <formtag.
>
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" />
Sep 20 '07 #2
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?

--
You can contact me at <ta*****************@yahoDELETETHATo.fr>
Sep 22 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by simonwittber | last post: by
13 posts views Thread by Joseph Garvin | last post: by
4 posts views Thread by mabond | last post: by
3 posts views Thread by bob.needler | last post: by
7 posts views Thread by fniles | last post: by
4 posts views Thread by Neo | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

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.