View Single Post
  #6 (permalink)  
Old 03-01-2007, 04:01 AM
jiggy jiggy is offline
Active Member
 
Posts: 32
Default Zimlet form submission not working with AjaxPost properly

Hello Pshah,

I tried out the thing you said to me.

In my _createHTML method i wrapped my form elements with the following:

Code:
html[i++] = "<form id='myFormID' target='http://localhost:7070/myWebApp/confirm.jsp'>";
Then in my save btn listener i added the following:

Code:
this.hiddenSkillsValue.value = this._skillsSelectElement.getValue();
	
 var iframe = document.createElement("IFRAME");
 var post = new AjxPost(iframe);
 var callback = new AjxCallback(this, this._myCallback);
 var form = document.getElementById("myFormID");
 post.execute(callback, form);

But when i click on my Save btn a new browser window opens up with the address http://localhost:7070/zimbra/mail?ev...ds&requestId=0

Nothing gets printed on my server console also .

This is my confirm.jsp code:

Code:
<%
	System.out.println("Hello this is a sample jsp form");
            //This is the name of my input field i have set in my _createHTML()
	String formName = request.getParameter("evalFormName");
	out.println("formName = " + formName);
	System.out.println("formName = " + formName);
	String skillsValue = request.getParameter("hidSkillsVal");
	out.println("skillsValue = " + skillsValue);
	System.out.println("skillsValue = " + skillsValue);
	
%>

Please let me know what am i missing??

Thanks..
Reply With Quote