Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cftextinput problem

Status
Not open for further replies.

Sherylj

Programmer
Jan 21, 2000
55
US
I've added a cftextinput element to a form. On my local machine it displays fine. When I upload it to the web server, it's about 2 characters wide, you can't input anything, and looks like a brown shadow box. It also won't allow me to align the text. It stays vertically centered no matter what.
Here's the code...any help appreciated. Looks buggy...
<cftextinput height="50" name="notes" width="700">

 
Try using 'Size="700"' instead of the width attribute.

I've been given alot of grief recently about using CFFORM rather than just standard HTML based forms.

I'll have to agree with the the other guys now, standard HTML forms are alot easier to work with.

Rob
 
It's a CF app so it's a little hard not to use CFFORM. :) Standard HTML requires that I write some other app (cgi or something) to get the same job done. I can do it faster with this. Thanks. I'll try your suggestion.
 
You can use CFFORM or FORM inside of ColdFusion ... there are just some things that CFFORM can do more efficiently.

Try using 'style' to set width and height. Also, make sure that you don't have a pre-defined style in CSS for your textarea or input fields, which would take priority over the width/height or even alignment settings.

 
Completely, dont forget that if you use 'style="width:700px" you need to define the PX otherwise you may get issues.

You can use normal 'form' input in a CF application and have it post to the CF script without any issues.

CFFORM just gives you a couple of extra features like built in client side validation and things without you needing an extensive knowledge of JavaScript.

I had a few gripes with going back to normal forms, but i just had too many issues with my cfform's unless using flash format (which i love) but in my latest apps where accessibility is a real must then the flash format simply isnt viable.

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top