Recommended Posts

Hi,

 

I need urgent help.

I am trying to show prettyphoto with jquery change event. In the first time change of html dropdown data, prettyphoto working fine but when I am changing again the html dropdown data the the prettyphoto does not work.

 

again%20change%20and%20pretty%20photo.pn

 

again%20change%20and%20pretty%20photo.pn

Can any1 help me?

 

Here is the attachment of  the full job.

Thanks

Julhas Sujan

 

 

 
 
 
 
 
 

FusionCharts_Drill_down.zip

Share this post


Link to post
Share on other sites

Hi,

 

Your sample is creating chart with same id. You need to change it every time it renders in the container.

 

Try rendering the chart using the id. 

 

Ref. Code:  FusionCharts("myChartId").render("chartContainer");

 

Hope this helps.




 


Share this post


Link to post
Share on other sites

Hi,

 

Thank you very much for your response. I have added and tried, I got the prettyphoto after changing dropdown, but same data rendering.

 

Here is my code. Please check:

var myChart = new FusionCharts( "Pie3D.swf", "myChartId", "400", "300", "0", "1" );
        
        myChart.setXMLUrl("sd_customer.xml");
        FusionCharts("myChartId").render("chartContainer"); // I have added this but always contain the same data not change after changing dropdown.
        
        FusionCharts("myChartId").configureLink ({
            width : '500',
            height: '320',
            id: 'linked-chart',
            renderAt : "linkedchart-container",
            overlayButton: { show : false }
        }, 0);
        
        FusionCharts("myChartId").addEventListener('BeforeLinkedItemOpen',
        function() {
            $.prettyPhoto.open("#prettyphoto-container",'LinkedCharts in PrettyPhoto','FusionCharts XT');
        });  

 

 

Julhas

Edited by Julhas Sujan

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