sorry for the delay.... I ran your script with a small flash named "animationPoints.swf" and a swfobject.js file taken from " http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" on every browser that I have (IE, FF, Chrome and Safari) and it ran perfectly. The only thing I can think of that your flash calls JavaScript on the page and that messes everything.
Try placing another flash, even an empty one and see if your script fails. On Fri, Dec 2, 2011 at 8:37 AM, krishna savith <[email protected]>wrote: > Sorry for the late response. I am also using 2.2 version. html of the demo > page is > > <html> > <head> > <!--Load the AJAX API--> > <script type="text/javascript" src="https://www.google.com/jsapi > "></script> > <script type="text/javascript" src="swfobject.js"></script> > <script type="text/javascript"> > > // Load the Visualization API and the piechart package. > google.load('visualization', '1.0', {'packages':['corechart']}); > > // Set a callback to run when the Google Visualization API is loaded. > google.setOnLoadCallback(drawChart); > > // Callback that creates and populates a data table, > // instantiates the pie chart, passes in the data and > // draws it. > function drawChart() { > > // Create the data table. > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Topping'); > data.addColumn('number', 'Slices'); > data.addRows([ > ['Mushrooms', 3], > ['Onions', 1], > ['Olives', 1], > ['Zucchini', 1], > ['Pepperoni', 2] > ]); > > // Set chart options > var options = {'title':'How Much Pizza I Ate Last Night', > 'width':400, > 'height':300}; > > // Instantiate and draw our chart, passing in some options. > var chart = new > google.visualization.PieChart(document.getElementById('chart_div')); > chart.draw(data, options); > } > </script> > </head> > > <body> > <!--Div that will hold the pie chart--> > <script type="text/javascript"> > var flashvars = {}; > var params = {quality:"high", wmode:"transparent"}; > var attributes = {styleclass:"swfObject"}; > swfobject.embedSWF("animationPoints.swf", "img1hotspot2", "35", "35", > "6.0.65.0","expressInstall.swf", flashvars, params, attributes); > </script> > <div id="img1hotspot2"> </div> > <div id="chart_div"></div> > </body> > </html> > > > Can you please look into the issue ? > > > > On Thu, Dec 1, 2011 at 7:16 PM, Roni Biran <[email protected]> wrote: > >> What version of swfobject.js are you running? >> I placed the latest version 2.2 with the google JAPI in the same page >> without any problems. >> >> can you send a demo page? >> >> >> On Thu, Dec 1, 2011 at 12:36 PM, krishna savith < >> [email protected]> wrote: >> >>> Can you please provide me a solution to avoid the conflict? >>> >>> >>> On Thu, Dec 1, 2011 at 4:02 PM, Roni Biran <[email protected]> wrote: >>> >>>> That's because FF isn't so gentle on JavaScript conflicts, unlike the >>>> rest. The thin is that the corechart loads flash using the exact code, so >>>> that the reason for the conflicts. >>>> >>>> >>>> >>>> On 1 בדצמ 2011, at 12:19, krishna savith <[email protected]> >>>> wrote: >>>> >>>> I found the root cause of the error. I am using swfobject.js which is >>>> conflicting with the google chart.js. that is why it is throwing the >>>> error. when i remove swfobject.js then its working fine. But i am >>>> wondering why this conflict is not there in IE. Can any one help me? >>>> >>>> On Dec 1, 3:01 pm, Roni Biran <[email protected]> wrote: >>>> >>>> I'm using the same package over 15 charts in a same page without any >>>> >>>> problems on all browsers (IE, FF, Chrome, Safari) >>>> >>>> >>>> Maybe your implementation of the charts is wrong? >>>> >>>> >>>> On Thu, Dec 1, 2011 at 11:26 AM, krishna savith >>>> >>>> <[email protected]>wrote: >>>> >>>> >>>> Hi, >>>> >>>> >>>> I am using google charts in my website. when I load the package using >>>> >>>> google.load("visualization", "1", {packages:["corechart"]}); firexfox >>>> >>>> is throwing error like "Error: Error enumerating properties on >>>> >>>> scriptable plugin object >>>> >>>> Source File: >>>> >>>> http://www.google.com/uds/api/visualization/1.0/92cbb0f92b037d8f5681d >>>> ... >>>> >>>> Line: 183". Please help me with this >>>> >>>> . >>>> >>>> >>>> -- >>>> >>>> You received this message because you are subscribed to the Google >>>> Groups >>>> >>>> "Google Visualization API" group. >>>> >>>> To post to this group, send email to >>>> >>>> [email protected]. >>>> >>>> To unsubscribe from this group, send email to >>>> >>>> [email protected]. >>>> >>>> For more options, visit this group at >>>> >>>> http://groups.google.com/group/google-visualization-api?hl=en. >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Google Visualization API" group. >>>> To post to this group, send email to >>>> [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/google-visualization-api?hl=en. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Google Visualization API" group. >>>> To post to this group, send email to >>>> [email protected]. >>>> To unsubscribe from this group, send email to >>>> [email protected]. >>>> For more options, visit this group at >>>> http://groups.google.com/group/google-visualization-api?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Google Visualization API" group. >>> To post to this group, send email to >>> [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/google-visualization-api?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Visualization API" group. >> To post to this group, send email to >> [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-visualization-api?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
