My copy of prototype.js is:
/* Prototype JavaScript framework, version 1.6.0.2
* (c) 2005-2008 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style
license.
* For details, see the Prototype web site: http://www.prototypejs.org/
*
*--------------------------------------------------------------------------
*/
dated 2/18/2008. Date maybe incorrect, I have opened it with an
editor. Don't think the touch time has changed.
On Jun 10, 1:01 pm, "Frederick Polgardy" <[EMAIL PROTECTED]> wrote:
> Can you crack open your prototype.js and tell us what version you have?
>
> Other Proto-heads, was $H({}).toQueryString introduced in 1.6?
>
>
>
> On Tue, Jun 10, 2008 at 11:57 AM, few1938 <[EMAIL PROTECTED]> wrote:
>
> > Still no joy. Here is the Firebug error:
>
> > $H({nCustId:nCustId, nTypeId:nTypeId, cTextVal:cTextVal,
> > nDeptId:nDeptId, nRefNum:nRefNum}).toQueryString is not a function
> > chkLUlist(input#REF4rowid1.labels ss, 4, "")common.js (line 146)
> > onblur(blur )action.asp (line 1)
> > [Break on this error] postBody:
> > $H({nCustId:nCustId,nTypeId:nTypeId,cTextVal:cTextVal,nDeptId:nDeptId...
>
> > On Jun 10, 12:45 pm, "Frederick Polgardy" <[EMAIL PROTECTED]> wrote:
> > > Instead of parameters, try postBody: $H({ ... }).toQueryString()
>
> > > -Fred
>
> > > On Tue, Jun 10, 2008 at 11:38 AM, few1938 <[EMAIL PROTECTED]> wrote:
>
> > > > 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();
>
> > > --
> > > Science answers questions; philosophy questions answers.
>
> --
> Science answers questions; philosophy questions answers.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---