Wednesday, July 21, 2010

javascript in template

ok, so I have a very simple test template I have made. What I want it
to do is use javascript to run another view inside of this template.
I have a view called javaScriptTest and this view returns
HttpResponse('javaTest.html). In javaTest.html, I call a small piece
of script: <script src = "path/to/anotherView"></script> In
"anotherView" I have a few operations I want to do, anotherView never
gets called and run. What do I need to write instead in the
javascript to get the other view to run when I go to the first view,
"javaScriptTest"? If anyone can help I would appreciate it. This
problem has been bugging me for a while. Please tell me if theres
something not clear about my explanation so I clarify for you.
Thanks,
Tony

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate