I have posted this before and have not been able to find an answer. I
have also posted this on the LinkedIn site with an answer directing me
to a change that is the same as the version of prototype.js that I am
currently using.

Hopefully, someone can direct me to another answer:  I have tried many
different forms of the 'parameters' property as can be seen. Here is
the code and Firebug error:

function chkLUlist(obj,refnum,deptid) {
 var nCustId  = $('form1').nCustId.value;
 var nTypeId  = $('form1').nTypeId.value;
 var cTextVal = obj.value;
 if (isEmpty(deptid)) { nDeptId = "" } else { nDeptId = deptid };
  var nRefNum  = refnum;
  //var strSubmit = 'nCustId='+nCustId+'&nTypeId='+nTypeId
+'&cTextVal='+cTextVal+'&nDeptId='+nDeptId+'&nRefNum='+nRefNum
  //var strSubmit =
$H({nCustId:nCustId,nTypeId:nTypeId,cTextVal:cTextVal,nDeptId:nDeptId,nRefNum:nRefNum});
  //var strSubmit = '?
nCustId='+'nCustId'+'&nTypeId='+'nTypeId'+'&cTextVal='+'cTextVal'+'&nDeptId='+'nDeptId'+'&nRefNum='+'nRefNum';
  //var strSubmit =
'nCustId='+'nCustId'+'&nTypeId='+'nTypeId'+'&cTextVal='+'cTextVal'+'&nDeptId='+'nDeptId'+'&nRefNum='+'nRefNum';
  //var strSubmit = 'nCustId='+nCustId+'nTypeId='+nTypeId
+'cTextVal='+cTextVal+'nDeptId='+nDeptId+'nRefNum='+nRefNum;  var url
= 'lookuplist.asp';
  //var strSubmit = 'nCustId='+encodeURI(nCustId)
+'nTypeId='+encodeURI(nTypeId)+'cTextVal='+encodeURI(cTextVal)
+'nDeptId='+encodeURI(nDeptId)+'nRefNum='+encodeURI(nRefNum);
  var strSubmit = {nCustId: nCustId, nTypeId: nTypeId, cTextVal:
cTextVal, nDeptId: nDeptId, nRefNum: nRefNum};
  var url = 'lookuplist.asp';
  new Ajax.Request(
   url,
   {
    method:     'post',
        parameters: strSubmit,
    onSuccess:  showResponse
   });
}

Firebug error display:

$H(object).toQueryString is not a function
toQueryString(Object nCustId=1 nTypeId=35 cTextVal=a nDeptId=6
nRefNum=4)prototype.js (line 144)
request("lookuplist.asp")prototype.js (line 1201)
initialize(function(), "lookuplist.asp", Object
method=post)prototype.js (line 1185)
wrap()prototype.js (line 238)
klass()prototype.js (line 48)
chkLUlist(input#REF4rowid1.labels a, 4, "6")common.js (line 147)
onblur(blur )action.asp (line 1)
[Break on this error] return $H(object).toQueryString();


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to