Re: Returning a javascript command

2007-07-09 Thread Don Spaulding II
I think you meant to escape those single-quotes in your js call: return render_to_response('javascript:AjaxTabs.OpenTab(getUniqueId("tab_page"),"Success","html/ test.html",true,\'\')', {'generic': file }) Rishtastic wrote: > Right now I am trying; > ... > return > render_to_response('javascript

Returning a javascript command

2007-07-09 Thread Rishtastic
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(