you could do 1 if you did this:

<cfset filefields = "">
<cfoutput query="getFields">
     <cfswitch expression="#getFields.Fieldtype#">
          <cfcase value="Text">
               text field
          </cfcase>
          <cfcase value="File">
                  <cfsavecontent variable="thisfield">
                        Your file field code.
                  </cfsavecontent>
              <cfset filefields = filefields & thisfield>
          </cfcase>
          etc
     </cfswitch>
</cfoutput>
<cfif len(filefields)>
<cfoutput>#filefields#</cfoutput>
</cfif>

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: 22 August 2003 10:52
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] IE Mac form problem
> 
> 
> 
> can't do 1.  The form is built dynamically, and form fields could be
> anything. sort of like:
> <cfoutput query="getFields">
>      <cfswitch expression="#getFields.Fieldtype#">
>           <cfcase value="Text">
>                text field
>           </cfcase>
>           <cfcase value="File">
>                file field
>           </cfcase>
>           etc
>      </cfswitch>
> </cfoutput>
> 
> 2. I'll try though.
> 
> ta
> 
> 
> Duncan Cumming
> IT Manager
> 
> http://www.alienationdesign.co.uk
> mailto:[EMAIL PROTECTED]
> Tel: 0141 575 9700
> Fax: 0141 575 9600
> 
> Creative solutions in a technical world
> 
> ----------------------------------------------------------------------
> Get your domain names online from:
> http://www.alienationdomains.co.uk
> Reseller options available!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> 
> 
>                                                               
>                                                      
>                     Rich Wild                                 
>                                                      
>                     <[EMAIL PROTECTED]        To:     
> "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>     
>                     go.com>              cc:                  
>                                                      
>                                          Subject:     RE: [ 
> cf-dev ] IE Mac form problem                           
>                     22/08/2003                                
>                                                      
>                     10:42                                     
>                                                      
>                     Please                                    
>                                                      
>                     respond to                                
>                                                      
>                     dev                                       
>                                                      
>                                                               
>                                                      
>                                                               
>                                                      
> 
> 
> 
> 1) make the file fields the last in the form.
> 
> 2) if the file field is empty, use JS to *disable* the field.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: 22 August 2003 10:42
> > To: [EMAIL PROTECTED]
> > Subject: [ cf-dev ] IE Mac form problem
> >
> >
> > OK, this has been covered before, but can someone give me the
> > definitive
> > answer?
> >
> > got a form, which may or may not have 1 or more filefields in it for
> > uploading images (or theoretically other filetypes).  So the
> > enctype is set
> > to multipart/form-data.
> >
> > On IE 5 on the Mac, this form isn't working.  I think because
> > there are
> > form fields after the filefield, and/or because no 
> documents are being
> > uploaded.
> >
> > What's the fix?  The form is being submitted by Javascript
> > anyway; I've got
> > to put in something like document.formname.fieldname.value =
> > "" for each
> > field or something?
> >
> >
> > Duncan Cumming
> > IT Manager
> >
> > http://www.alienationdesign.co.uk
> > mailto:[EMAIL PROTECTED]
> > Tel: 0141 575 9700
> > Fax: 0141 575 9600
> >
> > Creative solutions in a technical world
> >
> > 
> ----------------------------------------------------------------------
> > Get your domain names online from:
> > http://www.alienationdomains.co.uk
> > Reseller options available!
> > 
> ----------------------------------------------------------------------
> > 
> ----------------------------------------------------------------------
> >
> >
> > --
> > ** Archive: 
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]






-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to