By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,425 Members | 2,549 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,425 IT Pros & Developers. It's quick & easy.

stay on the submitting page

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a

"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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.