Using Fusion Charts Free in editor

  •  08-13-2008, 2:55 AM

    Using Fusion Charts Free in editor

    I am playing with a Fusion Chart (http://www.fusioncharts.com/free/) object in the editor.  I have added a new toolbar button, show the dialogue box using editor.ShowDialog()  (I would like a list of all parameters for this function).
    The dialog opens, I do my thing on the page and the chart is added to the editor on the save.  
    My problem now is editing the chart (ie: re-opening it).  It is a html object, I can click on it and select it and then using the code below can get a handle to it.  But it says it is a Control. 
       var editor = CuteEditor_GetEditor(button);
       var editdoc = editor.GetDocument();
       alert(editdoc.selection.type);
     
    I am aware that this is for IE and there is code around to get the html, but it does not work for controls.       
    I would love to get the html for it as there are attributes I would like to access.  Speaking of which below is the HTML of the chart:
     
    <object codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="300" width="600" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="7">
    <param name="allowScriptAccess" value="always"   />
    <param name="movie" value="FusionCharts/FCF_Column3D.swf"   />
    <param name="FlashVars" value="&amp;chartWidth=600&amp;chartHeight=300&amp;debugMode=0&amp;dataURL=uploads/GraphXML/47/7.xml"   />
    <param name="quality" value="high"   /> <embed src="FusionCharts/FCF_Column3D.swf" flashvars="&amp;chartWidth=600&amp;chartHeight=300&amp;debugMode=0&amp;dataURL=uploads/GraphXML/47/7.xml" quality="high" name="7" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="600" height="300"> </object>
     
    I want to get the dataURL=uploads/GraphXML/47/7.xml info out so I know which xml file to read back in so the data can be changed and resaved.


    And on another note, the chart does not appear in the editor in Firefox 3.  I haven't looked into it yet, thinking it is a security issue. But any ideas why the <object does not show?

     
     
View Complete Thread