Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Modal Dialog Killer


DrDoc - 6:36 pm on Dec 7, 2012 (gmt 0)


The problem is that the JavaScript code completes much faster than the browser takes to redirect.

A very simple fix is to make your code a complete
if...else statement:

if (data.redirect) { 
window.location.href = data.redirect;
} else {
if (data.content) {
$("#tableData").html(data.content);
$("#dashboardData").html(data.dashboard);
}
simpleDialog(part)
}


Thread source:: http://www.webmasterworld.com/javascript/4525855.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com