Skip to main content
Participating Frequently
January 14, 2009
Question

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

  • January 14, 2009
  • 1 reply
  • 236 views
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!!!!
    This topic has been closed for replies.

    1 reply

    Inspiring
    January 14, 2009
    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.