473,387 Members | 1,892 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,387 software developers and data experts.

stay on the submitting page

Hi
Maybee a little bit of topic, but is it possible to stay on the
submitting page once you've clicked submit.
This is to get processing done on page B when you submit on page A,
and the page should not change. Normally I use a response.redirect to
the submitting page, but that can't be done in one case.
Mats
PS I've found that one solution is to send Response.Status = "204 No
Response"
but according to some information that won't work on all browsers
Jul 19 '05 #1
4 2301
What is the reason that you cannot redirect to page A after processing on
page B?

You can post to page A right from page A and delete page B altogether, if
you like.

Ray at home

--
Will trade ASP help for SQL Server help
"Mats" <we*******@databyggarna.com> wrote in message
news:51**************************@posting.google.c om...
Hi
Maybee a little bit of topic, but is it possible to stay on the
submitting page once you've clicked submit.
This is to get processing done on page B when you submit on page A,
and the page should not change. Normally I use a response.redirect to
the submitting page, but that can't be done in one case.
Mats
PS I've found that one solution is to send Response.Status = "204 No
Response"
but according to some information that won't work on all browsers

Jul 19 '05 #2
Has to do with frames. The page you submit to puts the goods in the
cart.
A simple way to make a webshop is a two frame solution with the menu
to the left and the main content in the main frame to the right.
ASP is serverside and does not know anything about frames. If there is
a redirect to the "main shop page" (which is what happens in the shop)
this page will appear outside its frame.
Also it is not possible to have a path in a redirect, something like
.../some_folder/some_page (beleive me, I've tested)
Both factors are important.
This combined makes me want to stay on the submitting page
Mats
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message news:<Ox**************@TK2MSFTNGP10.phx.gbl>...
What is the reason that you cannot redirect to page A after processing on
page B?

You can post to page A right from page A and delete page B altogether, if
you like.

Ray at home

--
Will trade ASP help for SQL Server help
"Mats" <we*******@databyggarna.com> wrote in message
news:51**************************@posting.google.c om...
Hi
Maybee a little bit of topic, but is it possible to stay on the
submitting page once you've clicked submit.
This is to get processing done on page B when you submit on page A,
and the page should not change. Normally I use a response.redirect to
the submitting page, but that can't be done in one case.
Mats
PS I've found that one solution is to send Response.Status = "204 No
Response"
but according to some information that won't work on all browsers

Jul 19 '05 #3

"Mats" <we*******@databyggarna.com> wrote in message
news:51**************************@posting.google.c om...
ASP is serverside and does not know anything about frames. If there is
a redirect to the "main shop page" (which is what happens in the shop)
this page will appear outside its frame.
How would you redirect outside of the frame, unless you have a target
specified for your form, which you shouldn't?

Also it is not possible to have a path in a redirect, something like
../some_folder/some_page (beleive me, I've tested)


Please try testing again. You can redirect to "../some_folder/some_page"
just fine.

Ray at work
Jul 19 '05 #4
To Ray, this is posted through Google not Developersdex, so the order
of messages will probably be wrong.
1) Why not in frame - because it is submitted outside the frame.
2) path in redirect - I was wrong, it works. What does not work
however is to use a (vbscript) variable containing the path.
On submit a hidden form field submits the path. Neither
Request.form("path") nor a_variable = Request.form("path") works, and
that was what I tested.
Mats
PS any chans you know how to reload the frameset.asp page when
submitting an article to the cart? (one of these extras can be
acheived that way I beleive)
Jul 19 '05 #5

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

Similar topics

2
by: belzibob | last post by:
I have inherited a table where each row is a <form> Each of these rows has only four columns, those being: 1) Item number 4) Quantity (blank textbox to fill in) 3) Description 4) Add link (to...
1
by: Display Name | last post by:
the customer I'm developing a site for uses a canned form-parsing page that allows her to have an email subscription opt-in page add emails to a list she can manage using a link that you point your...
2
by: Greg T | last post by:
Hi, I have a rather long form that I don't want people submitting unless they are absolutely sure they are ready. I figured the easiest way to prevent an accidental form submission by way of...
5
by: Don | last post by:
I have a need to submit a form, but don't need the user to click on a button. How do I do this? Is there some way, using JavaScript, to setup a <form> tag to do this? Thanks, Don ----==...
0
by: Mike Kingscott | last post by:
Totally hacked off here. I've written a user control that contains a text box, a required field validator and a button (these being the cornerstone of a search facility), all as ASP.Net server...
2
by: Syam | last post by:
Hello everyone, I am just barely two months old into learning asp.net and vb.net. Currently I am working on a project to store customer database. I have a question about creating a preview page:...
1
by: Hello | last post by:
Scenario: A page creates a pop up and that pop up submits a form. Is there a way to detect whether the submitting was successful or not, so true/false could be passed to the parent window?
1
by: SachinBhargava | last post by:
Hi, I am faceing the problem while submitting the same page in ASP. When i am submitting the page, I am showing the java script alert message before closing the pop up window. My problem is, when...
3
by: Ken Shimizu | last post by:
I get an error when submitting an .ASPX page in Safari beta, MAC and PC document.getElementbyId(‘FolderBrowser’).submit(); After the server side code has executed without problems I get the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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
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...

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.