...
- create your sample application: create a folder "
helloJquery
" (e.g. with webDAV) - download jQuery and copy it in your "helloJquery" folder
- create a file helloJquery.html with the content below and copy it in your "helloJquery"
- point your browser to http://localhost:8888/helloJquery/helloJquery.html. the next steps are there...
Code Block | |||||||
---|---|---|---|---|---|---|---|
| |||||||
<html> <head> <title>Driving Sling with jQuery</title> <script type="text/javascript" src="jquery-1.2.6.js"></script> </head> <body> <h3>Driving Sling with jQuery</h3> <p>Start firebug, click on Console, then go multiline (click the little red arrow on the bottom bottom right)</p> <p>enter the code below, click on 'run'</p> <pre> $.post( "/content/*", { ':nameHint': 'myNode', oneProperty: 'oneValue' }, function(data){ alert(data); } ); </pre> <p>Then <a href="http://localhost:7402/content/myNode.html">view your new node</a></p> </body> <html> |
...