Is there any way to rewrite my posted data in client side (javascript) before it posted to server side? I have tried to use:
$opt["edit_options"]["onclickSubmit"] = "function(params, postdata) { alert('triggered'); }";
$opt["add_options"]["onclickSubmit"] = "function(params, postdata) { alert('triggered'); }";
$g->set_options($opt);
but this function never triggered when I click on Save icon below. Is there any way to customize post data in client side?
1 Answers
Code was primary used for form validation (at once) but you can modify postdata in it too.
http://hastebin.com/gizunumepa.php
(This works with dialog only)
Your Answer