Re: How Do I Pass a query through a submit button rather than onchange action?

27 views
Skip to first unread message

asgallant

unread,
Aug 8, 2012, 5:35:28 PM8/8/12
to google-visua...@googlegroups.com
Create a form with all of the choices you want available and add a "button" type input to handle the submission.  Set up an "onclick" event handler for the button that parses the form and puts the selected values into the query and submits the query.

On Wednesday, August 8, 2012 5:19:04 PM UTC-4, ERB wrote:
If you look at the Google code example here -  https://code.google.com/apis/ajax/playground/?type=visualization#more_query_options

I am trying to add a submit button to pass all the values selected in the drop-downs at once and then display the results - rather than use the onchange action which reloads the results every time a change is made one by one ;[

For example a spreadsheet with age, gender, etc... as the columns - I would want to select age = 25, gender = M, and hit submit for the results all at once!

Any help would be greatly appreciated.

ERB

unread,
Aug 8, 2012, 5:42:32 PM8/8/12
to google-visua...@googlegroups.com
As I am a newbie with this stuff could you provide me with the code that I would add to the google example.
Reply all
Reply to author
Forward
0 new messages