If you don’t specify, it will result in the same way as (false) There is also another way to reload the page using the timeRefresh command. 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. The JavaScript reload () method loads the page from the cache, by default.
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. 1 We will need to create a control application and then create a new field called test on it. How To Handle OnChange / SelectedIndexChanged Type Event In JavaScript For The AJAX ComboBox If you have ever used the AJAX ComboBox control and needed to interact with it client side in JavaScript, you will notice it's a bit of a different animal than it's ASP.NET server control counterpart: the DropDownList.
Do you already know Scriptcase? Download the free version of our tool and discover a world of new possibilities. Learn more about this and other features that Scripcase offers. We will create a control type application with a single field (test), and then we will create the Ajax Event.ġ – We will need to create a control application and then create a new field called “test” on it.Ģ – 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.ģ – Now we need to write this code: “sc_alert(‘Ajax Event OnChange Triggered’) ”Ĥ – 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
Down below is an example of using this event. It is triggered when the object, which makes use of it, has its value changed. The onload event can also be used to deal with cookies (see 'More Examples' below). In this article we will see how the onChange event works, available in Scriptcase.
The event onChange will occurs when the object loses the focus and the value of the field is changed.īelow we will show an example explaining how to use this event. The onload event can be used to check the visitor's browser type and browser version, and load the proper version of the web page based on the information. 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.