About Archive Tag Cloud Translations RSS

You are writing a comment about Intro to Unintrusive JavaScript with Django, here is a quick summary:

The steps of the novice web developer are fraught with peril. They begin with HTML, then move onto CSS. They learn a web framework or two, and they finally start to wrangle with JavaScript. This tutorial aims to help the developer who has taken their first steps with Django, and wants to begin experimenting with adding JavaScript and Ajax to their webapps.


You are responding to this comment written by Ben on June 2nd 2009, 14:15.

The tutorial's interesting, but I ran into a problem that I can't figure out.

In the set-up for the args being passed to $.ajax(), you have complete:done. I understand what that is supposed to accomplish, but don't get where the arguments being passed to done come from. At no point do you seem to set a variable equal to "success" (or res, for that matter). Are the arguments to done() part of the callback pattern the ajax request uses?

If this helps, when I run the note_list page, I get an error saying that the slug I've entered is already in use every time I hit the submit button.


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")