Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
BetoValle is currently offline  BetoValle
Messages: 203
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



Re: function javascript after ajax U++ / Skylark08 tutorial [message #55924 is a reply to message #55923] Sun, 03 January 2021 22:47 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi, sorry

i found javascript function (U++) UxRun that work fine!

	http.Ux("result", "The result is: " + r)
	    .UxSet("number1", r)
	    .UxRun("myFunction()");


topic closed!
thanks!
Previous Topic: VectorMap Find function crash [SOLVED]
Next Topic: SqlSchema sch(MY_SQL) compound and or unique indexes
Goto Forum:
  


Current Time: Fri Apr 19 10:00:32 CEST 2024

Total time taken to generate the page: 0.03808 seconds