Skip to content

Commit

Permalink
fix javascript jquery placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
olegkovalenko committed May 5, 2011
2 parents 1e5bd03 + 79880f6 commit b6b2982
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions javascript-jquery/getjson.snippet
@@ -1,5 +1,5 @@
$.getJSON('<+/path/to/file.cgi+>',{
<+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+>},
$.getJSON('${/path/to/file.cgi}',{
${${param1}: "${value1}", ${param2}: "${value2}"}},
function(json){
<+//stuff to do after event occurs;+>
${//stuff to do after event occurs;}
});
6 changes: 3 additions & 3 deletions javascript-jquery/loadf.snippet
@@ -1,3 +1,3 @@
<+obj+>.load('<+/path/to/file.htm+>', { <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+> }, function() {
<+// Stuff to do after the page is loaded+>
});
${obj}.load('${/path/to/file.htm}', { ${${param1}: "${value1}", ${param2}: "${value2}"} }, function() {
${// Stuff to do after the page is loaded}
});
6 changes: 3 additions & 3 deletions javascript-jquery/loadif.snippet
@@ -1,3 +1,3 @@
<+obj+>.loadIfModified('<+/path/to/file.htm+>', { <+<+param1+>: "<+value1+>", <+param2+>: "<+value2+>"+> }, function() {
<+// Stuff to do after the page is loaded+>
});
${obj}.loadIfModified('${/path/to/file.htm}', { ${${param1}: "${value1}", ${param2}: "${value2}"} }, function() {
${// Stuff to do after the page is loaded}
});

0 comments on commit b6b2982

Please sign in to comment.