473,230 Members | 4,187 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,230 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 4618
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bengt Richter | last post by:
Is this a well known bug that's been fixed? I couldn't find any discussion of it, but maybe my googling's off today ;-/ >>> def foo(): ... it = iter(range(10)) ... while True: ... ...
7
by: simonwittber | last post by:
>>> gen = iterator() >>> gen.next <method-wrapper object at 0x009D1B70> >>> gen.next <method-wrapper object at 0x009D1BB0> >>> gen.next <method-wrapper object at 0x009D1B70> >>> gen.next...
2
by: Deniz Bahar | last post by:
Hi, I'm working with a single linked list and want to delete elements by searching through the list (starting form the HEAD) then finding the element, then doing the following: NewElement =...
13
by: Joseph Garvin | last post by:
When I first came to Python I did a lot of C style loops like this: for i in range(len(myarray)): print myarray Obviously the more pythonic way is: for i in my array: print i
4
by: mabond | last post by:
Hi My application browses the contents of a network directory and displays any powerpoint file found in the directory. On completion it returns to the start and begins again. The following is...
3
by: bob.needler | last post by:
I know On Error Resume Next is generally considered lazy. But can someone tell me why the resume next in Exit_Handler does not seem to work? It generates the typical unhandled runtime error...
7
by: fniles | last post by:
In VB 6.0 in the error trapping, we can do "resume next" to continue on the next code. How can we do that in .NET with "Try", "Catch","End Try" ? Thanks
4
by: Neo | last post by:
I found on error resume next doesn't work in for each... e.g. on error resume next for each x in y 'do stuff next if you have an error in for each loop, it falls in infinite loop... it...
0
ADezii
by: ADezii | last post by:
If you want to visit each item in an Array, you have two alternatives: Use a For Each..Next loop, using a Variant to retrieve each value in turn. Use a For...Next loop, looping from the Lower...
2
ADezii
by: ADezii | last post by:
If you are executing a code segment for a fixed number of iterations, always use a For...Next Loop instead of a Do...Loop, since it is significantly faster. Each pass through a Do...Loop that...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.