-
Pet Projects
Tag Archives: Javascript
This is probably my first post for Django. I have only been using it for a few weeks and I am already falling in love with it. Here is how to do an AJAX “save” using jQuery and Django. My … Continue reading
I have just spent an hour an a half trying to figure out why the newline character “n” caused an error in my Javascript. I am posting this because I have been unsuccessful in finding a solution to this problem. … Continue reading
The author does it like this: < script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js">< / script> < script type="text/javascript" > $(document).ready(function() { // This is more like it! }); < / script > A very interesting read. Check it out here.
#1: Use data method instead of storing data inside the DOM. #2: Take advantage of jQuery’s built-in custom selectors. #3: If you are Manipulating the DOM a lot, use livequery. #4: Use jQuery form plugin to submit files via Ajax. … Continue reading
This quick tutorial assumes that you already have jquery.js setup. Here are the instructions: Create a div with a table name the identify the div with a class “ex. datatable” <table cellspacing="0" width="100%"> <tr> <td>1234</td><td>Apple</td> </tr> <tr> <td>1111</td><td>Cat</td> </tr> <tr> … Continue reading
I found this in News.YCombinator: http://effectize.com/jquery-developer-guide Very useful. I am a big fan of jQuery and I believe it is the best thing that has happened to Javascript since — um, chocolate.
I had to post this. What is it? Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. In case you want to create your own specific chart or image crop-n-rotate widget, you … Continue reading
This has been out like crazy in the PHP Community. All my RSS Feeds for PHP have like 2 or 3 links related to the ZF and Dojo partnership so you have probably heard of this post. I have known … Continue reading
Here’s an experiment in keepings things small and confined to one Javascript file. There are no external image files or anything, everything is rendered with Javascript using either canvas elements or old fashioned div-making tactics (for IE). The sprites are … Continue reading
You can do this in jQuery: $("textarea[@name=my_field_name]").val();$("input[@name=my_field_name]").val() Update, the @ is now deprecated. I remember using VisualjQuery and the filters do not have an @… $("textarea[name=my_field_name]").val(); Thanks to Simon…