Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created August 21, 2009 08:28
Show Gist options
  • Save alvin2ye/171726 to your computer and use it in GitHub Desktop.
Save alvin2ye/171726 to your computer and use it in GitHub Desktop.
ext croe use google cdn
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" language="javascript">
google.load("ext-core", "3.0.0");
</script>
<script type="text/javascript" language="javascript">
Ext.onReady(function() {
Ext.DomHelper.append(document.body, {tag: 'p', cls: 'some-class'});
Ext.select('p.some-class').update('Ext Core successfully injected');
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment