Problems with Zoomtool and <body onload="">

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Problems with Zoomtool and <body onload="">

Post by Centrii » Wed Oct 28, 2009 10:00 am

Hello Steema Team,

I am using TChart for .Net Version 3.5.3470.15474
Now I have problems with the ZoomTool. As soon I´m using the Zoomtool in a WebChart
the <body onload=alert('test')> doesn´t work anymore. If I delete the Zoomtool again everthing is fine.
Did you have Problems like this before and can you please tell me how to solve this problem?

regards Centrii

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Problems with Zoomtool and <body onload="">

Post by Yeray » Wed Oct 28, 2009 3:13 pm

Hi Centrii,

Have you seen the topics suggested here in the WebChart ZoomTool related threads?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Re: Problems with Zoomtool and <body onload="">

Post by Centrii » Thu Oct 29, 2009 7:44 am

Hi Yeray,

Yes I have seen the topics, but without any solution for me.
My problem is that the ZoomTool overrides my javascript window.body.onload ="DoSomething()"
with the compiled TChart javascript window.onload = function()
This causes that my DoSomething() Function doesn´t work anymore.

Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Re: Problems with Zoomtool and <body onload="">

Post by Centrii » Mon Nov 02, 2009 7:16 am

Hello Steema Team,

Can you give me a solution or a workaround for my Problem?

regards Centrii

Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Re: Problems with Zoomtool and <body onload="">

Post by Centrii » Thu Nov 05, 2009 8:05 am

Am I the only Person with this Problem?
I would be thankful for every kind of help...

Centrii

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Problems with Zoomtool and <body onload="">

Post by Narcís » Thu Nov 05, 2009 10:10 am

Hello Centrii,

Sorry for the delayed reply. We could reproduce the issue here and we are investigating if there's any solution or workaround to it. We will get back to you when we have further news.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Re: Problems with Zoomtool and <body onload="">

Post by Centrii » Thu Nov 05, 2009 10:26 am

Hi Narcís,

thanks for this reply.

Centrii

Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Re: Problems with Zoomtool and <body onload="">

Post by Centrii » Fri Nov 13, 2009 12:44 pm

Hi Narcis,

Did you find a solution or a workaround?
If there is a Bugfix-Number for this problem, is it possible that I can have this Number?

regards Centrii

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Problems with Zoomtool and <body onload="">

Post by Marc » Mon Nov 16, 2009 4:16 pm

Hello Centrii,

This problem is due to WebChart's need of the onload event to initialise the layers for the zoom Chart. Looking at the problem you have reported we were unable to see a workaround so have made a modification to the TeeChart code permitting the addition of a custom 'onload' function that will be called if present in your on-page code.

The fix will be included with the next TeeChart for .NET maintenance release for v3 and v4. We will add a section to Tutorial 9, 'ASP.NET Applications' to describe the functionality.

Regards,
Marc Meumann
Steema Support

Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Re: Problems with Zoomtool and <body onload="">

Post by Centrii » Wed Feb 10, 2010 4:56 pm

Hi Steema Team,

I checked the new Versions and there is a Bugfix available for this problem, but only in V4.
Can you please help me out with this Problem togehter with the latest V3.5 Version?
If not, is there a new Version of v3.5 planed, with a solution like in the new v4?

thanks
Centrii

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Problems with Zoomtool and <body onload="">

Post by Narcís » Wed Feb 10, 2010 7:10 pm

Hi Centrii,

As Marc told you, this was fixed in v3 too as you can see in the release notes corresponding to the latest update:

http://www.steema.com/files/public/teec ... elease.txt

Bug fix number 7, without internal tracker id, is the bug discussed here. Can you please check if latest release available solves the problem at your end?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Re: Problems with Zoomtool and <body onload="">

Post by Centrii » Thu Feb 11, 2010 9:46 am

Hi Narcís,

Thanks for the quick reply.
I installed the new update and tried it with my Source Code, but it is not working.
Marc told me that you will add a Section in Tutorial 9, 'ASP.NET Applications', but the
TeeChart for .NET v3 Update Build doesn´t include the new Tutorial.
Where can I find this one?

Thanks in Advance

Centrii

Marc
Site Admin
Site Admin
Posts: 1266
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Problems with Zoomtool and <body onload="">

Post by Marc » Fri Feb 12, 2010 1:11 pm

Hello Centrii,

The tutorial section is a brief explanation of use, quickest for me to add it here:
Window onload event

When a Zoom or Scroll Tool is added to your WebChart it requires to use the Window.onload event to initialse characteristics of the Tool. If you require to further use the onload event for your own needs then please add a new function to the page called windowOnload and place your code there.

eg. optionally in <HEAD> section of page

Code: Select all

<script language=javascript> 

function windowOnload()  {
    window.status = new Date().getTime();
 } 
</script>
Please let us know if that doesn't work correctly for you.

Regards,
Marc
Steema Support

Centrii
Newbie
Newbie
Posts: 23
Joined: Mon Jun 23, 2008 12:00 am

Re: Problems with Zoomtool and <body onload="">

Post by Centrii » Wed Feb 17, 2010 4:02 pm

Hi Marc,

Now it is working fine, thanks a lot.

greets Centrii

Post Reply