Skip to main content
Participating Frequently
February 6, 2021
Question

how to convert CF to work on all browsers

  • February 6, 2021
  • 2 replies
  • 695 views

Any better ways to convert ColdFusion to work in all browsers ?

Is ther any easy way to convert CFML forms to HTML instaed of complete rewrite.

 

[moderator: edited title for clarity and accuracy]

    This topic has been closed for replies.

    2 replies

    Community Expert
    February 8, 2021

    No, not really. You'll have to convert any CF forms that use Flash to use HTML instead. Fortunately, most CFFORM elements don't use Flash by default, so this shouldn't be a huge effort.

     

    Dave Watts, Eidolon LLC

    Dave Watts, Eidolon LLC
    kumar5F9CAuthor
    Participating Frequently
    February 8, 2021

    Thank you. 

    That helps. So, we can invoke CFC files from HTML (with Javascript included) directly and render the content on HTML forms. Is my understanding is correct that CFM (with Flash) files can be replaced by HTML5 components and these HTML files can invoke CFC service files and render the data as like CFM files ...

    Community Expert
    February 8, 2021

    By default, CFM files generate HTML, and CFC files can generate HTML or JSON or SOAP depending on how they're used. You can probably minimize the amount of work you need to do by just changing your CFFORM tags to use HTML instead of Flash - it's an attribute change - and make sure you're not using any Flash-only CFFORM tags like the multi-file-uploader. I think CFFORM provides HTML alternatives for most of those. Ideally, if you want to modernize your application, you could avoid using any server-side HTML generation and just use HTML pages with JavaScript front-ends that call CFC services. But that's probably not what you're currently doing, so it'll probably be more work.

     

    Dave Watts, Eidolon LLC

    Dave Watts, Eidolon LLC
    _maria_
    Community Manager
    Community Manager
    February 8, 2021

    Moved from Flash Player community to ColdFusion community