Hello everyone,
I'm new to the ajax framework and I have a quick question/problem This could be a simple issue, but i can't quite seem to figure this one out..
I'm using ajax to update a shopping cart located in <div id=cart>
So far so good :) no problems!!!
Without ajax the logic is setup like, if you have entered a incorrect item number or partial #, then you are redirected to the search page
But how can I get the whole page to redirect to the search page instead of just the <div> tag when someone enters an incorrect item number after the <div> has been ajax'd.
BTW i'm having to do some touch up work in ASP classic :(
any direction is greatly appreciated!!! :D
Thx in adv
how are you trying to do this now. As far as i know doing Response.Redirect("entereurlhere"); will send the whole page to a new location.
Let's if i can accurately explain..without having to strip and prep code(4000 lines...lol) and confusing everyone including myself...
we have...
------------------
main page
List Item 1
List Item 2
List Item 3 -------
^--onclick updates --> | shopping cart |
-------
------------------
The shopping cart logic also have an option to manually enter a item#
if an invalid# is entered, then it'll response.redirect to the search page
the problem is it only refreshes the <div> and not the whole page
so we have...
------------------
main page
List Item 1
List Item 2
List Item 3
-----------
| search page |
------------
------------------
instead of :
------------------
search page
------------------
I'm slightly confused.
If you have your basket in an update panel and your "add to basket button" is wired to a Subroutine which is then redirecting to a differnent page using response.redirect then I'm not sure how the search page would load inside your basket, unless your basket is inside an IFRAME or something like that. I think we would need to see your code, or a simplified version of it.
No comments:
Post a Comment