Hi, I am using ajax tabbed browsing to load up pages. When a user
uploads a file, I want a new tab to open up, which can normally be
done by calling a javascript function. The problem is I don't know how
to return a javascript command in my view.

Right now I am trying;

return
render_to_response('javascript:AjaxTabs.OpenTab(getUniqueId("tab_page"),"Success","html/
test.html",true,'')', {'generic': file })

Rather, the command just reloads the entire page and results in error.

Are there any fixes to this situation?

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to