A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Tag Archives: Javascript

Django and jQuery AJAX

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

Leave a comment

Newline character “n” problems in a Javascript string + PHP

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

1 Comment

Let Google host your jquery.js file

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.

Leave a comment

5 Tips for Better jQuery Code

#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

1 Comment

Jquery: Multi Column Select Box

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

3 Comments

jQuery: The Ultimate Handbook.

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.

1 Comment

Raphaël – jQuery but for vector graphics on the web?

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

2 Comments

Zend Framework and Dojo Javascript Toolkit Partners

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

2 Comments

Javascript Super Mario in 14kb Code

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

Leave a comment

Get name of textarea or input using jQuery

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…

4 Comments