Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
125
rated 0 times [  128] [ 3]  / answers: 1 / hits: 147344  / 13 Years ago, fri, november 25, 2011, 12:00:00

Can anybody tell me how to refresh the current page with JavaScript, having a POST variable modified or added?



To be clear, I want to set some POST variables prior to reloading the page.


More From » ajax

 Answers
75

By using jquery ajax you can reload your page



$.ajax({
type: POST,
url: packtypeAdd.php,
data: infoPO,
success: function() {
location.reload();
}
});

[#88910] Wednesday, November 23, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
marisela

Total Points: 103
Total Questions: 105
Total Answers: 102

Location: Solomon Islands
Member since Fri, Oct 8, 2021
3 Years ago
;