I want to write a code.
in which
I select the AC Temperature By Radio Buttons.
then I observe the Saving energy by Bar Graph with out submitting the Form.
As I change the Input, automatically, Output should change
what should be code in HTML or Javascript so that I may observe effect of the change of Temperature on saving energy. thanks.
as we change input , automatically output should change
Moderator: General Moderators
-
jamhussain
- Forum Newbie
- Posts: 17
- Joined: Sat Apr 07, 2012 2:04 am
Re: as we change input , automatically output should change
There are 2 possibilities: if the amount of data is small enough that you can load all the necessary data in the web page when it is first sent to the browser, perhaps stored in one or more Javascript arrays, you can write a Javascript function that is called when the user selects the AC temperature. If the amount of data that would be needed is so large that it must be handled on the web server, you would have to use "AJAX", which is a Javascript technique that can send an asynchronous request to the server to send specific data back to the same web page and display it using Javascript.
My guess is that the savings calculations based on the temperature selection could be done directly in a Javascript function.
My guess is that the savings calculations based on the temperature selection could be done directly in a Javascript function.