The Ajax request is sent as follows: (Controller is the servlet).
Code:
open ("POST", "controller", true);
req.setRequestHeader ('Content-Type', 'application / x-www-form-urlencoded; charset = utf-8');
req.setRequestHeader ('Content-Length', url.length);
req.setRequestHeader ('Cache-Control', 'no-cache, must-revalidate');
req.send (url);
bsp url could be: action = go & field1 = value1 & field2 = value2 etc.
These parameters are then included in the imported page is reloaded with the Ajax request. Say: forEach loop in the above dive, now field1 = value1, field2 = value2 and so on. I hope someone understands me.
Bookmarks