owc chart setExpression()

N

nickless

Hello Alvin,

I am migrating an asp app to asp.net 2.0.

I am trying to set the height of the chart and make it dynamic (the
chart should re-size when i re-size the browser window). This was
easily done in asp using setexpression() method in javascript.
chart.setExpression('height', 'document.body.clientHeight -
headerTable.clientHeight - paramForm.clientHeight')

I try doing the same in an aspx page (using javascript) but the page
freezes when i put the second parameter
(document.body.clientHeight - headerTable.clientHeight -
paramForm.clientHeight) in quotes, It works if i remove the quotes..
but that does not make the chart height dynamic.

Am i missing something here ? could you please let me know how to work-
around or show another way to do this.

Thanks in advance
 
A

Alvin Bruney [ASP.NET MVP]

Microsoft Internet Explorer 5.01 through 7 allows remote attackers to
execute arbitrary code by calling the setExpression method and then
modifying the outerHTML property of an HTML element, one variant of
"Uninitialized Memory Corruption Vulnerability. There was a patch/security
fix that removed that vulnerability which is why it doesn't work. It
shouldn't crash though.

You may have to look at manipulating the chartspace object along with the
appropriate click event mapping to get this to work.

--
Regards,
Alvin Bruney

Want a free copy of VS 2008 w/ MSDN premium subscription?
Details at http://msmvps.com/blogs/alvin/Default.aspx

Auther Plug
OWC Blackbook now on download at www.lulu.com/owc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top