aspose file tools*
The moose likes JSP and the fly likes How to split ajax variable name? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to split ajax variable name?" Watch "How to split ajax variable name?" New topic
Author

How to split ajax variable name?

Arulmozhi Govindaraju
Greenhorn

Joined: Feb 20, 2013
Posts: 17
function makeAjaxCallForProj(Id){

var ajaxUrl = "<%=request.getContextPath()%>/ProjectEditAction.do?mtc=getProjByDuId&ID="+Id;
var projResult = getAjaxResult(ajaxUrl); //here only stored project active and inactive
alert(projResult);

//var projResult= result.substring(0,result.indexOf("@#%"));
//var deptResult= result.substring(result.indexOf("@#%")+3,result.length);
var projIdDescArray = splitAjaxResponse(projResult);
updateComponent(projIdDescArray,'projDiv','Project');

}

var projResult = getAjaxResult(ajaxUrl); //here only stored project active and inactive how to split active and inactive i need separate to list in that project ?
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

And how are they stored? I mean what separates the two values?


Swastik
Arulmozhi Govindaraju
Greenhorn

Joined: Feb 20, 2013
Posts: 17
Swastik Dey wrote:And how are they stored? I mean what separates the two values?


store the value getting from action(struts)and dao method and implement Ajax URL
the separates values active project and inactive project the project values comes to project-name#0 and project-name#1
0 means inactive projects 1 means active projects. The projects separate two list box one active project another one is inactive project it will be based on drop-down value
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to split ajax variable name?