Blame view

framework/thirdparty/jquery-metadata/README 652 Bytes
0084d336   Administrator   Importers CRUD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  jQuery Metadata Plugin
  
  By John Resig
  
  This plugin is capable of silently, and automatically, extracting metadata 
  from classes, random attributes, and child elements.
  
  For example, you can do:
  <li class="someclass {some: 'data'} anotherclass">...</li>
  OR
  <li data="{some:'random', json: 'data'}">...</li>
  OR
  <li><script type="data">{some:"json",data:true}</script> ...</li>
  
  The default is the first method, but you can always change it by twiddling 
  the options. This means that there is at least one option here that can 
  appease you.
  
  There's also a bunch of options (like loading data into a single property 
  and the ability to ignore braces {}).