It should be:

// set the path to the qForms directory
qFormAPI.setLibraryPath("/includes/qforms/lib/qforms/");
// this loads all the default libraries
qFormAPI.include("*");

You've also got to include the function that on in the page on:
http://www.pengoworks.com/qforms/ext/atLeastOne.htm

-Dan



>-----Original Message-----
>From: C. Hatton Humphrey [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 06, 2008 2:28 PM
>To: CF-Talk
>Subject: Re: qForms Question
>
>Okay, made some changes to the qForms call -
>
><script type="text/javascript">
>
>objForm = new qForm("catrequest");
>
>// set the path to the qForms directory
>objForm.setLibraryPath("/includes/qforms/lib/qforms/");
>// this loads all the default libraries
>objForm.include("*");
>
>objForm.catalogtype.description = " catalog type";
>objForm.fldComments.description = " general comment";
>objForm.catalogtype.validateAtLeastOne("fldComments");
>
>objForm.required("txtFirstName,txtLastName,txtCompany,txtEmail,txtAddress,t
>xtCity,txtState,txtZip,txtCountry,txtPhone");
>objForm.txtFirstName.description = " First Name";
>objForm.txtLastName.description = " Last Name";
>objForm.txtCompany.description = " Company Name";
>objForm.txtEmail.description = " email address";
>objForm.txtAddress.description = " mailing address";
>objForm.txtCity.description = " City";
>objForm.txtState.description = " State (or Province)";
>objForm.txtZip.description = " Zip or Postal Code";
>objForm.txtCountry.description = " country";
>objForm.txtPhone.description = " phone number";
>
>
>objForm.txtFirstName.focus();
></script>
>
>Now in the JS Error console I get: "objForm.setLibraryPath is not a
>function"
>
>??
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300680
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to