Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hosted Ext js 4 - Where can i find it and make my pages fetch from there?

I have checked Google Hosted EXT Js and i cannot find EXT JS 4. I would want my web pages to reference the EXT JS 4 from there and not from my local Web server. Any one please get me the full path to the EXT JS 4 hosted some where on the web which is always available and can be used by another web page as in

<link rel="stylesheet" type="text/css" href="LINK_TO_EXTJS4/resources/css/ext-all.css">
<script type="text/javascript" src="LINK_TO_EXTJS4/ext-all.js"></script>
So i need those two lines above, replacing LINK_TO_EXTJS4 directing to some EXT JS4 some where on the web so as my users browsers fetch the JavaScript library from those ends and not from my local web server. Thanks
like image 794
Muzaaya Joshua Avatar asked Nov 15 '11 07:11

Muzaaya Joshua


2 Answers

It's right here.

You can use this script tag...

<script type="text/javascript" charset="utf-8" src="http://cdn.sencha.io/ext-4.0.7-gpl/ext-all.js"></script>

EDIT:

The css tag..

<link rel="stylesheet" type="text/css" href="http://cdn.sencha.io/ext-4.0.7-gpl/resources/css/ext-all.css">
like image 111
JamesHalsall Avatar answered Nov 07 '22 10:11

JamesHalsall


You can read here about CDN/Google Load library delivery and how to get the latest version, and here to see which libraries they currently support.

EXT js library 3(+) is supported, you can try using 4 and see if it delivers. If not then maybe Google hasn't been 'allowed' to host the library yet.

<script src="http://www.google.com/jsapi"></script>
<script>
// Load jQuery
google.load("ext-core", "4"); //this here!!!!

// on page load complete, fire off a jQuery json-p query
// against Google web search
google.setOnLoadCallback(function() {
$.getJSON("http://ajax.googleapis.com/ajax/services/search/web?q=google&;v=1.0&;callback=?",

// on search completion, process the results
function (data) {
if (data.responseDate.results &&
data.responseDate.results.length>0) {
renderResults(data.responseDate.results);
}
});
});
</script>
like image 39
Kyle Avatar answered Nov 07 '22 10:11

Kyle