Cfselect and bind
Hello,
I am trying to use the cfselect and bind feature but i keep getting the following error when i run the debugger
window:global: SyntaxError: parseJSON (http://www.domain.com/CFIDE/scripts/ajax/package/cfajax.js, line 803)
info:http: CFC invocation response:
Here is the code that i am using
==================================
root directory/addacount.cfm
==================================
<cfform action="addaccountSubmit.cfm" method="post" name="frmAddAccount">
<table align="center">
<tr>
<td>First Name</td>
<td><cfinput type="text" name="firstname" required="yes" message="Please enter a first name." maxlength="100">
</tr>
<tr>
<td>Last Name</td>
<td><cfinput type="text" name="lastname" required="yes" message="Please enter a last name." maxlength="100">
</tr>
<tr>
<td>Email</td>
<td><cfinput type="text" name="email" required="yes" message="Please enter a valid email address" maxlength="150" validate="email"></td>
</tr>
<tr>
<td>Address</td>
<td><cfinput type="text" name="address" required="no" maxlength="150"></td>
</tr>
<tr>
<td>State</td>
<td>
<cfselect name="state" bind="cfc:cfc.actions.getStates()" bindonload="true"/>
</td>
</tr>
</table>
</cfform>
Also if i try to navigate to the cfc and run the method it runs fine and shows that its getting all the states and putting them into an array
http://www.domain.com/cfc/misc.cfc?method=getStates
Can someone please help me out with this, not sure what i am doing wrong?
