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 <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]>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 <[EMAIL PROTECTED]>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/list%40list.dfwcfug.org/
> > http://www.mail-archive.com/list%40dfwcfug.org/
> > 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/list%40list.dfwcfug.org/
> > http://www.mail-archive.com/list%40dfwcfug.org/
> > 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/list%40list.dfwcfug.org/
> http://www.mail-archive.com/list%40dfwcfug.org/
> 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/list%40list.dfwcfug.org/
> http://www.mail-archive.com/list%40dfwcfug.org/
> 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/list%40list.dfwcfug.org/
> http://www.mail-archive.com/list%40dfwcfug.org/
> 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/list%40list.dfwcfug.org/
http://www.mail-archive.com/list%40dfwcfug.org/
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/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/
