klenwell information services : DevJquery

Wiki source for DevJquery


Show raw source

=====jQuery Development=====
CategoryDevelopment

===Topics===
Google Libraries
AJAX Requests
Selectors

====Load via Google Libraries API====
ref: https://developers.google.com/speed/libraries/devguide#lib_jquery

In document head:
%%(html)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
%%

Alternate (this may be deprecated):
%%(html)
<script src="http://www.google.com/jsapi"></script>
<script>
google.load("jquery", "1.7.2");
google.load("jqueryui", "1.8.21");
</script>
%%

====AJAX Requests====
ref: http://api.jquery.com/jQuery.ajax/
%%
$.ajax({
url: 'ajax/test.json',
dataType: 'json',
data: {},
cache: false,
success: function(data) {
console.log(data);
}
});
%%

====References====
[[http://api.jquery.com/ | jQuery API]]
[[https://developers.google.com/speed/libraries/ | Google Libraries]]