demo007 / mashups4jsf

Automatically exported from code.google.com/p/mashups4jsf
1 stars 0 forks source link

google.load does not work with swfobject inside XHTML files on Safari and Chrome #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If one uses the following inside XHTML files:

<script src="http://www.google.com/jsapi"
type="text/javascript"></script><script type="text/javascript">
//<![CDATA[
google.load("swfobject", "2.1");
//]]>
</script>

Then the following error occurs in Safari:
"TypeError: Result of expression 'n.write' [undefined] is not a function."

My proposed solution is to manually include the swfobject file.

Original issue reported on code.google.com by Hazem.sa...@gmail.com on 28 Nov 2009 at 3:23

GoogleCodeExporter commented 9 years ago
Solved by the <mashup:resource /> component which includes the swfobject file 
content.

Original comment by Hazem.sa...@gmail.com on 28 Nov 2009 at 4:01

GoogleCodeExporter commented 9 years ago
Done thanks to Mohamed Maher.

Original comment by Hazem.sa...@gmail.com on 22 Dec 2009 at 5:18