IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Quick javascript question Options · View
ukchucktown
Posted: Wednesday, September 20, 2006 8:17:03 PM
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
bigotilda
Posted: Thursday, October 19, 2006 6:02:09 PM
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.