I'm using a coldfusion AJAX call to bind a div containing query results populated based on options in another div. In the DIV being called with AJAX, I have a CFLAYOUT tag creating several tabs.
In one tab, I have a Coldfusion CFCHART element that creates a nice graph. I want the graph to re-size based on the dimensions of the tab DIV it is inside of.
It seems the CFCHART tag accepts pixel dimensions for height and width, and that I need to be able to dynamically resize the chart based on the dimensions of the browser window. I'd prefer the object to remain in flash but I can change it to a JPEG or PNG if needed.
How would I easily get these dimensions and change them with Javascript? is there another easy method? What would I do on a window resize?