Thread: Post and params
View Single Post
  #10 (permalink)  
Old 02-06-2007, 07:22 PM
jtroxel jtroxel is offline
Member
 
Posts: 13
Default Yes, one could

refactor the ProxyServlet into a JSP for the Zimlet. However, you would want to either start with the 3.x version, or fix whatever is wrong with it in 4.0. It is this very class that is causing the current issues with posting.

I entered a bug re the servlet: http://bugzilla.zimbra.com/show_bug.cgi?id=14417

As for rendering a form and letting it post directly, the following is a snippet that pops the results into a new window:
Code:
    html[i++] = "<form method=\"POST\" id=\"dp_form\" action=\"" + this.HANDLER + "\" TARGET=\"new_popup\">";
...
    this.dpForm = document.getElementById("dp_form");
...
    var w = window.open('about:blank','new_popup','width=600,height=500,resizable=1');
    this.dpForm.submit();
    w.focus();
Reply With Quote