Sign in to follow this  
theronrr

Rendercharthtml Change From 3 To 3.2 Fix

Recommended Posts

I have been working on demostrating FusionCharts and Widgets to my company as a Proof of Concept. With the iPad feature I wanted to update my demo. This was greatly received, but one feature did not work. I was using Ajax timer and of course using RenderChartHTML on the reposting, but the Widget disappeared. After two days of tracking I found out what the brokens were. So I wanted to share

 

In 3.0 RenderChartHTML returned the tag <object id=="Test" name="Test" ...> surrounded by a <Div id="TestDiv"> tag

in 3.2 RenderChartHTML returns the tag <object id="Test" ...> the <Div> tag is not there, nor is the name for the object

 

I was am to surround the string with a <div> tag and do a ans.Replace("<object id=\""+IDName+"\" ", "<object name=\""+IDName+"\" ");

(NOTE there are two spaces between the words "object" and "id")

 

Now I can demo my POC and try to get the purchase to move forward. Thought I share this

Edited by theronrr

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for sharing this.

 

We actually cleaned up the RenderChartHTML method for 3.2.

 

<DIV> is optional as <OBJECT>/<EMBED> will take care of all things.

 

In majority of the cases, standard method of accessing an HTML element via JavaScript DOM is using an Id and rarely using name in the element.

 

Please share with the community your ideas on using id vs using 'name'.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this