-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think your problem is just the spaces between the filters, try {{
mooman|safe|escapejs }}.
Other then that, as long as the mooman is set in the context... that
should work.

Luke

On Sat, Aug 8, 2009 at 12:34 PM, WilsonOfCanada wrote:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkp9rFMACgkQXQrGVCncjPycTgCfeWdooEJqmAV2ngoI8sU8edKs
Cq0An0iGdBDQH1mY0O/LH7PgDK1YwWOc
=yqjZ
-----END PGP SIGNATURE-----

>
> I am not sure; I am just trying to pass the variable from the
> dictionary using render_to_response to a javascript function.  The
> function is stored as a .js file.  This is a part of the code I am
> using it for:
>
> <label for="selectArea"></label>{{ selectCity|safe }}<br/>
>
> <select class="normal" name="selectProvince" id="selectProvince"
> onchange = "changeArea({{ mooman | safe | escapejs}});">
> <select>
>
> The {{ selectCity|safe }} works but the {{ mooman | safe | escapejs}}
> does not.  I was wondering if the syntax is incorrect or they cannot
> be used between " ".  Please show an example.
>
> Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to