|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Loading a html file into a text box
Hi guys, Im wondering if you can help me..
I want to grab a html file and put it into a text box so that the user can then make changes to it and then be able to save the new html file over the old one. I was wondering if someone could tell me how or atleast point me in the right direction. Thanks. |
|
#2
|
|||
|
|||
|
Use cffile to read the text of the HTML file. You can then display it in a form text area or anywhere else you want to. When editing is finished, use cffile to save the new text.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
Will this work with a html file? Oh and does Cold Fusion have an include function like php? Sorry I must seem retarded but its the first time I've ever used cold fusion for anything but CFQuery/CFTable and this is for Uni
Thanks for your help ![]() |
|
#4
|
|||
|
|||
|
cffile will read any file. And yes ColdFusion has a cfinclude tag. You might want to read through the documentation.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Loading a html file into a text box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|