Hi All, I solved this issue.
here is the solution :
I returned false on click of anchor and then in dojo.XhrPost i did something like this
load(function(r esponse, ioArgs){
window.location .href = navUrl;
}),
where navUrl is the url of the anchor where we need to navigate.
User Profile
Collapse
Profile Sidebar
Collapse
rakesh2k78
Last Activity: Jan 13 '12, 01:24 AM
Joined: Jan 7 '12
Location:
-
Hi Dormilich, thanks for the reply.
Actually, I am submitting a form, but there is situation where user either click on submit button or navigate from navigation bar(anchor tags in terms of menus) and there is no validation on form but we still need to submit default selections. We are using Java Page flow(Apache beehive) controller for form submission and one action is called for normal form submission on click of submit button but...Leave a comment:
-
Thanks Dormilich, but I need to navigate as well, basically I want that AJAX call finished first and then only browser navigate to some x page.Can you pls help with this scenario?Leave a comment:
-
Ajax call and Browser redirect issue
Hi All,
I have a requirement where I need to fire an ajax call(dojo xhrPost)on click of an anchor, but as soon as I click the anchor link browser starts to redirect but ajax call is not finished yet, so I always got bad http return code 0 from the server. I can see in the firebug/developer tool.
Is there any way to stop browser redirect until the ajax call finished or returned a proper response like 200.
here is the...
No activity results to display
Show More
Leave a comment: