Sign in to follow this  
Rahul Kumar

Valid XHTML 1.0 Strict Flash Object Code

Recommended Posts

Hi there, :D

 

 

 

I've been using your excelent product, FusionCharts ,the free version.

 

 

 

Working with it, I'd found out it doesn't render a W3C Standard XHTML Code, wich for me was a problem.

 

 

 

I worked out a solution and I want to share it with you. If you find it does present any problem please let me know :D.

 

 

 

The solution, for me, was to replace the getSWFHTML function in FusionCharts.js with this:

 

 

 

getSWFHTML: function() {

 

var swfNode = "";

 

swfNode = '';

 

swfNode += '';

 

swfNode += '';

 

swfNode += '';

 

var params = this.getParams();

 

for(var key in params){ swfNode += ''; }

 

 

 

var pairs = this.getVariablePairs().join("&");

 

if (pairs.length > 0){ swfNode += ''; }

 

swfNode += '';

 

 

 

return swfNode;

 

}

 

 

 

It does render valid XHTML and It works in Firefox, Safari and IE6

 

 

 

Well, I thank you for the excelent work and present you with this tiny piece of code.

 

 

 

Be Well and Good Bye.

 

 

 

Iv

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