In this article we will show how the Ajax events onChange works, first Ajax will run doing a processing in the browser side to avoid to execute a SQL query or a server request, this way the result will come way faster then the usual.

The event onChange will occurs when the object loses the focus and the value of the field is changed.
Below we will show an example explaining how to use this event. We will create a control type application with a single field (test), and then we will create the Ajax Event.

1 – We will need to create a control application and then create a new field called “test” on it.

2 – Into the “Ajax Events” menu we will create a new event, we will set it to run in the field test and then choose onChange.

3 – Now we need to write this code: “sc_alert(‘Ajax Event OnChange Triggered’);”

4 – And to finish all we have to do is run the application, write anything on the “test” field and then remove the focus from it

Learn more about this and other features that Scripcase offers. Do you already know Scriptcase? Download the free version of our tool and discover a world of new possibilities.

To know a little bit more about Scriptcase Events don’t miss our Q&A Webinar on next Friday (May 30th), click on this link to register.

Check out more content on our blog!
Learn all about Scriptcase.

By ,

May 29, 2014


You might also like…

“We have developed the Connected Citizen Card, which assists public administrators in decision-making and policy creation.”(Assist Soluções em TI)

Check below how Assist Soluções em TI used Scriptcase to modernize and streamline the development...

AI-Driven Software Development: The Role of ChatGPT

In the rapidly evolving world of technology, artificial intelligence (AI) is playing an increasingl...

Low-Code: The Key to Accessible Digital Transformation

Digital transformation is imperative for companies wishing to remain competitive in the current era...

You might also like…

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at Learn more about our Privacy Police.