spotted a bug...need name parameter. oops :)

name = id

-- 
 jon
 mailto:[EMAIL PROTECTED]

Thursday, July 17, 2003, 2:28:36 PM, you wrote:
jh> Ok...if you insist.

jh> input.cfm:
jh> <cfparam name="maxlength" default="255">
jh> <cfparam name="width" default="462">
jh> <cfparam name="type" default="text">
jh> <cfparam name="value" default="Hello There!">

jh> <cfif isDefined("caller.form")>
jh>     <cfset value="Form submit successful!">
jh> </cfif>

jh> <input id="#attributes.id#" type="#type#" width="#width#" maxlength="#maxlength#" 
value="#value#">



jh> callingpage.cfm:
jh> <cfimport taglib="extensions\customtags\ui" prefix="ui">

jh> <form method="post">
jh>   <ui:input id="foo">
jh>   <input type="submit">
jh> <form>

jh> Untested...but it should work. Obviously this would not be usable in a
jh> real world scenario, I would internally in input.cfm create a
jh> structure of some kind of each input contained in the calling page,
jh> and use that to reference which particular input I am referencing, and
jh> would want to page some kind of page context as well. Of course...I'm
jh> making up stuff on the fly here, there may be an even better way.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to