Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How in CF8 I can identify type of cfinput/input???

New Here ,
Jan 14, 2009 Jan 14, 2009
Hello to all!!!
How in CF8 I can identify type of cfinput/input??? For instance, I want to make some code for <input type="text"> or I want to get all form fieldnames with exception "submit"

Thanks for your answers!!!!
209
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 14, 2009 Jan 14, 2009
LATEST
vovasvv wrote:
> Hello to all!!!
> How in CF8 I can identify type of cfinput/input???

Where do you want to identify the form control types?

In the Client Browser you would use normal JavaScript to examine the DOM
of the controls and look at the type properties.

On the server after a form is posted it does not matter. Form data is
all name-value pairs and HTTP makes no distinction on what type of from
control generated the name-value pair in the post|get data.

On the server while a template is building HTML content containing a
form to be delivered to the Client. Then just examine the page content
as it is being built or just before delivery.

Some help with the later functionality will be building your HTML into
variables before delivery, accessing the underlining Java pageContext
object and|or using onRequest() or onRequestEnd() functionality of an
Application.cfc component to intercept the content before delivery to
the web server.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources