Q
qtrimble
I don't know, rather, my lack of experience is keeping me from
achieving this end result:
On the same page, I would like to have (1) a form with 2 text fields
to capture the start and end date as defined by a user and (2) a
Timeplot graph (http://www.simile-widgets.org/timeplot/) which
displays data that meets the date range criteria defined in the form.
I currently send the date inputs to a separate php script which are
then used in an SQL statement. The query result is then formatted to
meet the Timeplot requirements and written to a text file.
The problem is, Timeplot doesn't know the text file exists b/c the
page isn't refreshed once the form is submitted.
So the problem I am looking to solve is:
Call the php file without redirecting to the php script and refresh
the Timeplot javascript and related div containers so the display
reflects what the user input. The user should be able to change the
dates and see a new graph on the fly.
Any help would be very much appreciated. I am not necessarily
interested in using PHP if there is a better solution.
achieving this end result:
On the same page, I would like to have (1) a form with 2 text fields
to capture the start and end date as defined by a user and (2) a
Timeplot graph (http://www.simile-widgets.org/timeplot/) which
displays data that meets the date range criteria defined in the form.
I currently send the date inputs to a separate php script which are
then used in an SQL statement. The query result is then formatted to
meet the Timeplot requirements and written to a text file.
The problem is, Timeplot doesn't know the text file exists b/c the
page isn't refreshed once the form is submitted.
So the problem I am looking to solve is:
Call the php file without redirecting to the php script and refresh
the Timeplot javascript and related div containers so the display
reflects what the user input. The user should be able to change the
dates and see a new graph on the fly.
Any help would be very much appreciated. I am not necessarily
interested in using PHP if there is a better solution.