473,811 Members | 2,324 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="_t op" 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_program s/gmp/module11/final_evaluatio n/mod
ule11-ev.htm" target="_top" />

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

Thanks
Sep 20 '07 #1
2 4650
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="_t op" 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_program s/gmp/module11/final_evaluatio n/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="_t op" 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_program s/gmp/module11/final_evaluatio n/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************ *****@yahoDELET ETHATo.fr>
Sep 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1513
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: ... i = it.next() ... print i ... if i&3==0: ... print 'skipping next'
7
2503
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 <method-wrapper object at 0x009D1BB0> >>> gen.next is gen.next
2
1757
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 = CurrentElement->next; CurrentElement->next = NewElement->next->next; free(NewElement);
13
14735
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
1326
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 a snippet of the code that is used to get the name of the file before it is displayed. Dim fs, f, fc, f1
3
27441
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 message from Access. If I comment out the 1st On Error Resume Next and the x = 1 / 0 on the next line there is no difference, i.e. ther same unhandled error on the same line. I included these 2 lines of code to demonstrate that On Error Resume Next...
7
21971
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
3788
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 doesn't move to next element... this sad thing but, it's indication that we must move to try catch instead of on error.
0
24182
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 Bound to the Upper Bound of the Array. For Each...Next seems simpler because you need not worry about retrieving the Lower and Upper Bounds- the loop takes care of that for you. For Each varValue In alngValues j = varValue Next varValue...
2
19318
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 iterates a specified number of times, requires you to also implement or decrement some sort of Loop Counter, while a For...Next Loop does that work for you. Both Loops will provide the same results, but the For...Next Loop is substantially faster. One...
0
9728
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10648
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.