• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to split ajax variable name?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And how are they stored? I mean what separates the two values?
 
Arulmozhi Govindaraju
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
reply
    Bookmark Topic Watch Topic
  • New Topic