Why <iframe>?

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
Jim Green
Newbie
Newbie
Posts: 43
Joined: Thu Aug 03, 2006 12:00 am

Why <iframe>?

Post by Jim Green » Fri Jun 27, 2014 6:27 pm

All of your examples I've seen place the canvas in an iframe. Is there something special about that? I would guess it's because a) you get a resize event to redraw the Chart, and b) it handles output from TeeSaveToJavascriptFile.

Thanks.

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

Re: Why <iframe>?

Post by Yeray » Mon Jun 30, 2014 2:42 pm

Hi Jim,

What examples are you looking at?
I see an iframe in the examples here, but not in the example here.
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

Jim Green
Newbie
Newbie
Posts: 43
Joined: Thu Aug 03, 2006 12:00 am

Re: Why <iframe>?

Post by Jim Green » Mon Jun 30, 2014 3:46 pm

The second example (http://www.steema.com/files/public/teec ... 1.4/demos/) is also using an iframe. See the attached screen shot of a Chrome session.
Attachments
TeeChartIframe.jpg
TeeChartIframe.jpg (337.99 KiB) Viewed 11301 times

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

Re: Why <iframe>?

Post by Yeray » Tue Jul 01, 2014 10:46 am

Hi Jim,

Yes, but this is to separate the tree on the left and the example on the right.
If you open the example in a new tab, or following this link to see the example without the tree, you won't see any iframe in the example.
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

Post Reply