How to check posted data in client side

QuestionsHow to check posted data in client side
Bernard asked 10 years ago

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
Abu Ghufran answered 10 years ago

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

7 + 15 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?