I want to send 2 layers of data via jhrajax. By 2 layers I mean, an inside
layer of 13 JASEP separated elements, and an outside layer of 1 or more
JASEP separated elements, each of which contains the 13 inner elements. I
suspect that one of the layers needs to use another separator. First, does
that seem correct? And second, if so, can anyone suggest how it can be done
in the context of jencode, listed below?


function jencode(d){return(encodeURIComponent(d)).replace("/%20/g","+");}

// recv ajax response from J -> ev_mid_type_ajax(ts)
// call ajax(ts) or ev_mid_type_ajax(ts)
// ts is ajax response split on JASEP
function jdor()
{
 var d,f;
 rqstate= rq.readyState;
 if(rqstate==4)
 {
  if(200!=rq.status)
  {
   if(403==rq.status)
    location="jlogin";
   else
   {
    var t="ajax request failed\n"
    t+=   "response code "+rq.status+"\n";
    t+=   "application did not produce result\n"
    t+=   "try browsing to url again\n"
    t+=   "additional info in jijx"
    alert(t);
   }
  }
  else
  {
   d=rq.responseText.split(JASEP);
   f="ev_"+jform.jmid.value+"_"+jform.jtype.value+"_ajax";
   if("function"==eval("typeof "+f))
    f+="(d)";
   else
    f="ajax(d)";
   try{eval(f)}catch(e){alert(f+" failed");}
  }
  rqstate= 0;
  busy= 0;
 }
}


-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to