Ways to handle encoding in AJAX: Using encodeActionURL() method to refresh the complete page Using encodeResourceURL() method to partially update a page.
Ways to handle encoding in AJAX: