Home » Community » Newbie corner » function javascript after ajax U++ / Skylark08 tutorial
function javascript after ajax U++ / Skylark08 tutorial [message #55923] |
Sun, 03 January 2021 22:15  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
is it possible to execute javascript function together or just after the U++ "ajax" event?
how to make a javascript function fired right after the event below?
SKYLARK(Add, "add:POST")
{
String r = AsString(Nvl(http.Int("number1")) + Nvl(http.Int("number2")));
http.Ux("result", "The result is: " + r)
.UxSet("number1", r);
}
it would be something like the routine below ...
//or in the html page...
<script>
function myFunction() {
'UxPost($Add, "numbers")';
alert("ok");
....
}
</script>
I tried to create an onchange event for any field but in this ajax, it is not triggered.
thanks
|
|
|
|
Goto Forum:
Current Time: Sat Apr 19 04:05:36 CEST 2025
Total time taken to generate the page: 0.02309 seconds
|