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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -