Ajax function with location.reload acting weird -
i have function sends values db, function works great until include success
function location.reload()
. sends empty values.. though... works fine, should able rely on it.
any suggestions?
$.ajax({ url: 'core/manage_articles.php', type: 'post', data: { blog:title, title:title, text:text, lat:lat, lng:lng, success: function() { location.reload(); } } });
well... didn't lib using i'll go on semiwild guess (might not right):
$.ajax({ url: 'core/manage_articles.php', type: 'post', data: { blog:title, title:title, text:text, lat:lat, lng:lng }, success: function() { location.reload(); } } });
try this.
Comments
Post a Comment