|
The following code works just fine for me. I am running 7.02.
<cfscript>
memberList = queryNew("bcity"); queryAddRow(memberList); querySetCell(memberList,'bcity','New York'); </cfscript> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>cfGrid - Check boxes</title> </head> <body> <cfform name="addressBook" format="flash" width="410" height="450">
<cfinput name="bCity" type="text" width="150" maxlength="50" required="yes" validateat="onsubmit" message="Please provide the subscriber's city." label="City: " value="#memberList.bcity#"/> </cfform> </body> </html> Robert
>>> "Clint Tredway" <[EMAIL PROTECTED]> 8/3/2006 9:12 am >>> Ya, sometimes it seems to be overkill but its so easy and fast there really isnt a reason not to use it. On 8/3/06, Justin Cook <[EMAIL PROTECTED]> wrote: > So Remoting is the only answer to this problem? I don't mind doing remoting, > but for such a small form, it's not my preference. > > > Clint Tredway <[EMAIL PROTECTED]> wrote: > > You will need to use Remoting like she suggested. This will ensure > that the data is a string and not an AS variable . > > On 8/3/06, Justin Cook wrote: > > > > I emailed Laura from ASFusion and here was her reply: > > > > > > Justin, > > I don't really know what you are doing exactly, but that problem arises > > *only* when the word is written into ActionScript at compile time (you > > either write it yourself or make CF write it for you). Writing dynamic > data > > on ActionScript directly is a bad practice really, as it will make your > form > > recompile every time the data changes. Even if the data does not change, > it > > is not a good idea to write 50000 records in AS code. If you look at this > > example: > > > http://www.asfusion.com/examples/item/multiple-selects-related-flash-cfform > > you will see that New York is there, and there is no ActionScript problem. > > Why? because we don't loop over the records with CF writing ActionScript > > (somewhat like the blog post you showed me, where the data might be pushed > > on an array at each iteration of the cfoutput loop), but rather load the > > data normally, which it is done via Remoting under the covers. Then we do > > whatever we need to do with the data (in which case it will be strings for > > AS, not the word 'new'), for example, loop over the records, filter them, > > etc. > > > > Cheers, > > Laura > > > > I am still a bit confused about this. How do I get the data into the form > > when it has to be pulled from the database, because it is dynamic, then > > displayed in the form? Anyone have any thoughts....and by the way, pardon > > my ignorance! > > > > Thanks, > > Justin > > > > > > Justin Cook wrote: > > > > > > The database data comes from a query on the page. In the form itself, > > primarily I am doing it as follows: > > > > > validateat="onsubmit" message="Please provide the subscriber's city." > > label="City: " value="#qSubscriber.bcity#"/> > > > > > > > > Mike Kelp wrote: > > I have heard of this issue, but it usually only occurs if the new keyword > is > > actually generated in the flash form, like outputted into actionscript, > etc. > > > > How are you getting the database data into the form? > > > > Mike. > > > > > > On 8/2/06, Justin Cook wrote: > > > > > > Anyone out there heard of this issue and how to resolve it? > > > > > > > > > Justin Cook < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > Anyone run across the problem with Flash forms whereby when you pull > data > > out of the database and one of the words is "new" the Flash form throws an > > error because of the reserved word? For example, we have people with the > > address of New York City, and when it is pulled out of the database, it > > throws an error. If you have had this happen and/or know of a solution > > please let me know! > > > > > > Thanks, > > > Justin > > > _______________________________________________ > > > Reply to DFWCFUG: > > > [email protected] > > > Subscribe/Unsubscribe: > > > http://lists1.safesecureweb.com/mailman/listinfo/list > > > List Archives: > > > http://www.mail-archive.com/[email protected]/ > > > http://www.mail-archive.com/[email protected]/ > > > DFWCFUG Sponsors: > > > www.HostMySite.com > > > www.teksystems.com/ > > > > > > > > > _______________________________________________ > > > Reply to DFWCFUG: > > > [email protected] > > > Subscribe/Unsubscribe: > > > http://lists1.safesecureweb.com/mailman/listinfo/list > > > List Archives: > > > http://www.mail-archive.com/[email protected]/ > > > http://www.mail-archive.com/[email protected]/ > > > DFWCFUG Sponsors: > > > www.HostMySite.com > > > www.teksystems.com/ > > > > > > > > > > > > > > > > > -- > > Mike Kelp > > > > --Education's purpose is to replace an empty mind with an open one. > > ~Malcolm S. Forbes > > --If knowledge is power, know this is tyranny. > > ~Thrice > > _______________________________________________ > > Reply to DFWCFUG: > > [email protected] > > Subscribe/Unsubscribe: > > http://lists1.safesecureweb.com/mailman/listinfo/list > > List Archives: > > http://www.mail-archive.com/[email protected]/ > > http://www.mail-archive.com/[email protected]/ > > DFWCFUG Sponsors: > > www.HostMySite.com > > www.teksystems.com/ > > > > _______________________________________________ > > Reply to DFWCFUG: > > [email protected] > > Subscribe/Unsubscribe: > > http://lists1.safesecureweb.com/mailman/listinfo/list > > List Archives: > > http://www.mail-archive.com/[email protected]/ > > http://www.mail-archive.com/[email protected]/ > > DFWCFUG Sponsors: > > www.HostMySite.com > > www.teksystems.com/ > > > > > > _______________________________________________ > > Reply to DFWCFUG: > > [email protected] > > Subscribe/Unsubscribe: > > http://lists1.safesecureweb.com/mailman/listinfo/list > > List Archives: > > http://www.mail-archive.com/[email protected]/ > > http://www.mail-archive.com/[email protected]/ > > DFWCFUG Sponsors: > > www.HostMySite.com > > www.teksystems.com/ > > > > > > > > > -- > diabetic? http://www.diabetesforums.com > Albert Einstein - "It's not that I'm so smart, it's just that I stay > with problems longer." > > _______________________________________________ > Reply to DFWCFUG: > [email protected] > Subscribe/Unsubscribe: > http://lists1.safesecureweb.com/mailman/listinfo/list > List Archives: > http://www.mail-archive.com/[email protected]/ > http://www.mail-archive.com/[email protected]/ > DFWCFUG Sponsors: > www.HostMySite.com > www.teksystems.com/ > > > _______________________________________________ > Reply to DFWCFUG: > [email protected] > Subscribe/Unsubscribe: > http://lists1.safesecureweb.com/mailman/listinfo/list > List Archives: > http://www.mail-archive.com/[email protected]/ > http://www.mail-archive.com/[email protected]/ > DFWCFUG Sponsors: > www.HostMySite.com > www.teksystems.com/ > > > -- diabetic? http://www.diabetesforums.com Albert Einstein - "It's not that I'm so smart, it's just that I stay with problems longer." _______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/[email protected]/ http://www.mail-archive.com/[email protected]/ DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/ ** Confidentiality Notice: This e-mail and any files transmitted with it are confidential to the extent permitted by law and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the originator of the message and destroy all copies. ** |
_______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/
