31

I am quite new to dojo world. Using dojo with google's CDN is well and Fine. But while using dijit just dojo.require() does not work. Where can I find the default CSS Themes from CDN ??

and another question out of quorisity: Would the the CSS configuration for dijit work for dojox too ??

Neel Basu
  • 12,638
  • 12
  • 82
  • 146
  • I've got aol's CDNs for CSS but. Can I get them from Google too ?? or Google doesn't provide services for CSS – Neel Basu May 24 '10 at 18:53
  • AOL and Google deploy the same "cross domain" build of Dojo, which includes all the CSS for Dijit and DojoX. They are referenced over http like any other file. – peller May 25 '10 at 16:54

4 Answers4

40

The CSS can be found on Google's CDN. I've used it in a page or two. Here's some CSS link tags.

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/resources/dojo.css"> 
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dijit/themes/tundra/tundra.css"> 

Much like the libraries, you can pick a more or less specific version in the URL, so this will grab the latest in the 1.4.x chain.

UPDATED [19/May/2016]:-

Update version - 1.10.4

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/resources/dojo.css"> 
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dijit/themes/tundra/tundra.css"> 
Vikash Pandey
  • 5,407
  • 6
  • 41
  • 42
Brian Arnold Sinclair
  • 3,833
  • 1
  • 21
  • 16