stay on the submitting page

M

Mats

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
 
R

Ray at

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
 
M

Mats

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
 
R

Ray at

Mats said:
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
 
M

Mats

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top