title: Dajax/dajaxice problems: "Dajax is not defined" and "missing } after statement"
body: <p>I wanted to play with dajax for my actual django project. I stardet looking at the <a href="http://www.dajaxproject.com/forms/" rel="nofollow">simple form example</a> on the website, but i cannot get it to work correctly.
  I keep on getting this error (with firebug) "Error: Dajax is not defined"</p>
  
  <p>Also i was trying to implement the <a href="http://www.dajaxproject.com/dajaxice/" rel="nofollow">dajaxice example</a>, but i get this other error:</p>
  
  <pre><code>Error: missing } after function body
  Source File: http://localhost:8000/dajaxice/dajaxice.core.js
  Line: 30, Column: 52
  Source Code:
      alert("data.message")({"message": "Buuuuuuuuu!"})
  </code></pre>
  
  <p>Here are my files (ajax.py and javascript.js) and my view function. The html template is analog to the one in the website.</p>
  
  <p>ajax.py</p>
  
  <pre><code>from django.utils import simplejson
  from dajaxice.core import dajaxice_functions, Dajaxice
  from dajax.core import Dajax
  
  def myexample(request):
      return simplejson.dumps({'message':'Buuuuuuuuu!'})
  
  dajaxice_functions.register(myexample)
  
  
  def updatecombo(request, option):
      dajax = Dajax()
      options = [ ['Madrid','Barcelona','Vitoria','Burgos'],
                  ['Paris','Lille','Nantes','Lyon'],
                  ['London','Manchester','Liverpool','Someother'],]
      out = ""
      for o in options[int(option)]:
           out += "%s&lt;option value='#'&gt;%s" % (out,o,)
      dajax.assign('#combo2', 'innerHTML', out)
  return dajax.json()
  
  dajaxice_functions.register(updatecombo)
  </code></pre>
  
  <p>javascript.js</p>
  
  <pre><code>function the_callback(data){
          alert(data.message);
  }
  </code></pre>
  
  <p>my view.py</p>
  
  <pre><code>from django.shortcuts import render_to_response
  
  def basic_view(request):
          return render_to_response('test.html', {}, context_instance = RequestContext(request))
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>import os
  from django.conf import settings
  from django.conf.urls.defaults import *
  from dajaxice.core import dajaxice_autodiscover
  from dajax_test.tester.views import *
  
  
  from django.contrib import admin
  admin.autodiscover()
  
  dajaxice_autodiscover()
  
  site_media = os.path.join(
          os.path.dirname(__file__), 'site_media'
  )
  
  urlpatterns = patterns('',
  
          (r'^%s/' % settings.DAJAXICE_MEDIA_PREFIX, include('dajaxice.urls')),
          (r'^site_media/(?P&lt;path&gt;.*)$', 'django.views.static.serve', {'document_root': site_media},),
  
  
          (r'^dajaxice/$', basic_view)
  )
  </code></pre>
  
  <p>i have settings.py configured like they say on the main website.
  i don't know what's wrong, google doesn't seem to help (any search for dajax/dajaxice gives results for ajax... pretty obvious, pretty annoying...) any hint/help?</p>