How to force the proper order with my javascript submit
Ok so I have this javascript/jquery
$('.next').click(function(e){
e.preventDefault();
var table = $('table.active');
var form = table.find('form');
form.submit();
window.location.href = '/some/location';
});
The problem is that in some browsers safari being one of them the
form.submit() never gets called. My guess is this is an async request and
never gets a chance to do that call. Any ideas on how to do this. I tried
the following
form.submit(function(){
window.location.href = '/some/location';
});
but that didnt work
No comments:
Post a Comment