Hi,
I have a small problem and have been trying to figure out a solution for this without any success days. I did search the forum but didn't find any solution.
This is my situation. I am generating a chart (using an opens source chart called amCharts) that allows me to zoom-in and and zoom-out of its X-axis by specifying the values by an onclick javascript function. To be more clear, my X-axis has values from Jan-01, Jan-02, .....till...., Dec-31. I have a 'From' and 'To' input fields and a submit button. The user can specify any values and can zoom the chart to the specified dates. I have implemented this functionality using a javascript function.
Each day mentioned may have a few records associated with it that is stored in a MySQL database. My situation is that when the user submits, apart from zooming the chart, I also need to search the database and fetch records found between those two dates and display them in a separate frame in the same page. I think I can accomplish this with a PHP script.
Now how do I execute both a javascript function and a PHP function simultaneously when the user performs and an onclick event? Is it possible to execute javascript and php script together by an onclick event. Please let me know how. Is it possible to combine a server-side and client-side script function together in a function? Or should I use AJAX or something? If so how. I am totally lost. Please help.
It will be great if you can point me to any examples available if any.Thank you all in advance for your help and reply.
-SK