Hi everyone,
I got my grid to work but the syntax of the line of code is a little out of
my understanding. Can someone break down what each part of this is doing so
I can understand what is going on? Here is the line of code:
<cfinput type="text" name="firstname" label="First"
bind="{grid.dataProvider[grid.selectedIndex]['FIRSTNAME']}"
onChange="grid.dataProvider.editField(grid.selectedIndex,
'FIRSTNAME', firstname.text);">
OK, here is what I do not understand. First off, what is the dataProvider
portion mean? I did a search for it in the live docs and nothing came up.
Next, the code inside the [] is obviously referring to some part of the
firstname variable, but is this pointing to the grid column, the query
variable, or what? And then in the last line the firstname.text. Is this
referring to the cfinput field firstname? If so, if it were another type
such as checkbox would I change the .text to .checkbox?
Any help or URL to more specific instructions would be great! I got this
from the snippets files, but they do not come with explanations and they
really should.
Thanks
Kevin
Rose Valley Soaps
<http://www.rosevalleysoaps.com/> http://www.rosevalleysoaps.com
30% off Moving Sale!!!
Enter Coupon Code ae6f05 into the cart at checkout!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210988
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54