Forums

This topic is locked

Using CFForm in Dreamweaver MX

Posted 15 Mar 2003 03:27:35
1
has voted
15 Mar 2003 03:27:35 Jonathan Deiss posted:
If I try to use CFForm and CFInput with my documents to create data collection forms none of the built in behaviors for insert, update etc. work. It seems that the built in dreamweaver application commands can't recognize a form field if its a CFInput field.

This seems incredibly stupid to me and an obvious production issue. How is it that MX can't take advantage of special tags created by its owners in their own application? Is there an extension that will allow CFInput fields to be recognized by these application commands?

Thanks,

jdeiss
tastydesigntreats.com

Replies

Replied 15 Mar 2003 21:39:00
15 Mar 2003 21:39:00 Dennis van Galen replied:
Yah, i know. Some CF extension have the same thing, they look for &lt;form&gt; &lt;/form&gt; not &lt;cfform&gt; &lt;/cfform&gt; <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>

But why use behaviors with CF ?

Just post to a action page that does a &lt;cfquery datasource="myDS"&gt;insert/update/delete&lt;/cfquery&gt;.

Or make a selfposting form with &lt;cfif Isdefined("form.myElement"&gt;start action&lt;cfelseif&gt;show form&lt;/cfif&gt; end of page.

It's just a thought, the excellent CFactivEdit extension has the same problem, it does not recognise CFFORM, so you need to build a form insert the tag through the extension and then copy the complete tag into your cfform, or rename form to cfform whatever is better for you.

HTH

with kind regards,

Dennis van Galen
DMXzone Manager
FAQ, Tutorial and Extension Manager


Studio MX / CFMX PRO / SQL 2000 / NT4 AND win2kPRO / IIS5
Replied 15 Mar 2003 21:57:38
15 Mar 2003 21:57:38 Jonathan Deiss replied:
Really its about working faster. I want to use the built in functionality of the program because it is there to speed things up. Its sad that they overlooked two of the most important tags in the language. I mean, every database driven website collects data through forms! It's incomprehensible to me...

Thanks,
------------------------------------------------------------------
tasty.design.treats
Replied 15 Mar 2003 22:13:24
15 Mar 2003 22:13:24 Dennis van Galen replied:
Well, you can always stick your logic in components then drag your CFC methods into your pages, there is strong support in DW for those. And using components will keep your code in one place, no more having a query on 20 pages which also has to be edited in as many places, just change the cfc method and you are done. Kinda like writing your own behaviors.

But I handcode everything with CF and on occasion I use the tag editor, mostly on tags with tons of attributes like cfgraph. But sadly sometimes the tag editor messes the code up and you get a error.

with kind regards,

Dennis van Galen
DMXzone Manager
FAQ, Tutorial and Extension Manager


Studio MX / CFMX PRO / SQL 2000 / NT4 AND win2kPRO / IIS5

Reply to this topic