Rank: Newbie
Joined: 9/20/2006 Posts: 1
|
Can you invoke a javascript function from a page event like onLoad? What I need to do is create a bar chart in the report based on values in the xml instance document. Our current thinking is to use a div as the bar, a stylesheet that sets the background of the div to a one pixel image, then a javascript function that sets the width and height of the div forcing the image to tile and fill the div area with a background color. If the approach I've outlined doesn't sound feasible, I'm open to suggestions from experienced StyleVision users.
Grant
|
Rank: Member
Joined: 6/13/2006 Posts: 29 Location: Gainesville, FL
|
I'm not sure if you're asking about something specific to StyleVision or just in general. But in general, you definitely can invoke a javascript function on something like an onLoad event.
As far as the bars, you might also be able to simply set the background color of the div, rather than using a backround image and hoping it tiles correctly.
|