of course ,you can,but you should add ",
function myJavaScriptFunction( pValue ) {

var aa=  “{{pValue.getName}}”;
...
}

2010/8/13 Imad Elharoussi <imad.elharou...@gmail.com>

> I mean can we make operations to the DjangoTemplateVariable in the
> javascript function
>  for example:
> function myJavaScriptFunction( pValue ) {
>
>   {{pValue.getName}}
> ...
> }
>
> 2010/8/13 Tim Sawyer <list.dja...@calidris.co.uk>
>
> Yes
>>
>> myJavaScriptFunction( {{DjangoTemplateVariable}} );
>>
>> function myJavaScriptFunction( pValue ) {
>>  ...
>> }
>>
>> Tim.
>>
>> > Hi
>> > Is it possible to give a javascript function a django variable as a
>> > parameter?
>> > thank you
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "Django users" group.
>> > To post to this group, send email to django-us...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>> .
>> > For more options, visit this group at
>> > http://groups.google.com/group/django-users?hl=en.
>> >
>> >
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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