I am trying to refresh the page with ajax whenever a button to submit a form (and change the data on the page), it however; is not working.
I have looked through several tutorials and the api, checked my syntax, but I cannot get it to work.
Could you please have a look at it?
The updating itself is called upon success in 2 methods, which DO succeed.
The updating itself the method update(ajax).
Thanks in advance.
EDIT: NO browser errors or whatsoever. The page is simply not refreshing.
You declared xmlhttp and checked status of request object (which doesn’t exist).
replace request with xmlhttp in the above lines of code.