jquery - Avoid ajax redirection -
Thank you for taking the time to help me.
Though I'm sure
we say that I have two ASP (classic pages).
Target 1.asp which redirects to Target 2.asp with response.redirect (url) Now, I have to use target 1 async methods and you probably already know that I'm using AJAX to do this The problem occurs When I $ Ajax ('method': 'get', [...]) or just $ Fill a bid with the response content to use ('target1.asp') and 'full' callback, it redirects the entire page instead of filling the target 2.asp to the div. The reason is quite simple: the div is literally full of content of target1.asp. The browser still has to redirect and since an avim is not exactly like any iframe, the whole page is redirected. I'm sure you can not redirect directly from Javascript (?). Is there a way to solve this problem without using iframes? This is exactly what I am trying to do: Request target1.asp with the target method using AJAX, or something similar) so that Ajax requests target 2. .asp and then the final result Fill the div with Thank you. Edit already: If you want a coded example, I Yes, Copy with feedback. . HTH, Eric
It will take control of navigation on the server and do not let the browser redirect.
(In .NET, but this is the same IIS object, so is the same as for classic ASP)
Comments
Post a Comment