Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto size graph? 1

Status
Not open for further replies.

alsjka

Technical User
Jan 21, 2003
114
US
Hello,

Would anyone be able to tell me if it possible to have a graph in coldfusion auto resize based on screen size?

Thank You
 
screen size is different than browser size.

meaning... my browser is set to about 800x600 viewable, but my monitor is set for 1024x768.

if you set the graph size to 1024 i'd have to scroll to see it. If you mess with my browser size, I'd have to kick you in the knees.

but the only way to do that is to know the size of the screen. you'd have to set a variable somewhere before getting to the graph and you'd need the help of javascript. CF doesn't know or care about your screen size.

you'd have to do something like this.

page1.cfm
<a href = "javascript: loadGraph();">View Graph</a>

the loadgraph() function would have to get the screen width and pass it in a url variable to the page containing the graph.

ask the JS forum how you'd create a function like that.

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top