form data to create a flot graph

yangke - November 2, 2009 - 12:41

I have a module that shows the user a form, when submitted the user gets the form again, with below a graph (based on the form input)

I'm using the flot module to produce a flot graph. The flot graph is defined i javascript.

I can't seem to get the form data to my javascript file.

I tried to send it as a javascript setting (using drupal_add_js) in my theme function, but i can't pass the form data to it. It looks like it's not defined there.

How can i use form data in other functions of my module?

 
 

Drupal is a registered trademark of Dries Buytaert.