tobyjoiner

multiple charts duplicating

Recommended Posts

I have the following haml

 

= render_chart '/chart/MSCombi3D.swf', '', @total_xml, "myNextHTML1", 800, 400, 0, 1

= render_chart '/chart/MSCombi3D.swf', '', @cattle_xml, "myNextHTML2", 800, 400, 0, 1

= render_chart '/chart/MSCombi3D.swf', '', @hedging_xml, "myNextHTML3", 800, 400, 0, 1

 

 

 

This is causing them to output as follows:

 

 

 

myNextHTML1

 

myNextHTML2

 

myNextHTML3

 

myNextHTML1

 

myNextHTML1

 

myNextHTML2

 

myNextHTML1

 

myNextHTML2

 

myNextHTML3

 

 

 

I can't figure out what is going on, is there an issue with render_chart or am I just an idiot and did something wrong?

Share this post


Link to post
Share on other sites

I figured this out...

 

 

 

If anyone else runs across this problem, just take out the = to make:

 

 

 


= render_chart '/chart/MSCombi3D.swf', '', @total_xml, "myNextHTML1", 800, 400, 0, 1

 

become:

 


render_chart '/chart/MSCombi3D.swf', '', @total_xml, "myNextHTML1", 800, 400, 0, 1

Edited by Guest

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