easier that I explain what I'm doing and get suggestions based on the
final result needed:
I've been building an application that has a few pages here and there
that export to Excel (using CFContent). I have now been told that
they want to have the ability to export 99% of the site to Excel.
In order to do this I built a page that basically runs a CFHTTP to the
requested page, passing some special variables to bypass the security.
In addition those variables are looked for by other pages and certian
content is excluded from the export.
However I am running into an issue in that many of the reports have
formfields built in... select boxes, input boxes and textareas. I
want to replace these with the selected value or default value from
the code so that the formfield does not display on the Excel page. Is
this something that I would use RegEx for? The logic I want to
implement (loosely) is:
If a text input box is found, replace it with the text contained in
the "value" attribute.
If a checkbox, radio, hidden or password input box is found, remove it.
If a select is found, replace it with the display of the selected option.
If a textarea is found, replace it with the conents of the textarea.
I know that I can do this by using a condition loop and a lot of
searching but is there a better way that it can be done?
Thanks!
Hatton
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

