Skip to main content
Inspiring
September 19, 2024
Question

CFgrid alternatives - shared server environment

  • September 19, 2024
  • 3 replies
  • 395 views

I maintain a site that was originally created in CF over 12 years ago. It's massive, and frankly the non-profit can't afford a total redo. Some of the sections used CFgrid to allow updating multiple records at once. My problem is that it's a shared server and CFC files are blocked. I've found solutions, but they all require CFC files.

    This topic has been closed for replies.

    3 replies

    Inspiring
    September 24, 2024

    I would suggest posting your cfgrid code and the exact error.  Sounds like the cfgrid is binding to a CFC and your hosting providor does not support the cfc extension for incoming CF requests.

    Charlie Arehart
    Community Expert
    Community Expert
    September 24, 2024

    I agree with Mike's assertion this COULD be the problem. I was inferring Rick meant cf pages calling cfc's internally. I should have considered it could be what Mike proposed. 

     

    That said, I'd contend it's not NORMAL that a host would block calling cfc's via external urls. And even if they do, it would seem they could allow for whitlisting certain ones (even if they wanted to block all others).

     

    Then again, it's worth nothing that a cfm CAN be called as the binding of a grid. Heck, the cfm could proxy the call to the cfc, if somehow it was too complex to RE-render as a cf.

     

    Finally, Rick, you've now heard from 3 of us. Can you let us know where things stand, if you try anything (or may opt not to). 

    /Charlie (troubleshooter, carehart. org)
    Charlie Arehart
    Community Expert
    Community Expert
    September 20, 2024

    Adding to bkbk's reply, note also that cfc's can't be blocked. Wherever or whoever told you that is incorrect.

     

    Also, is your use of cfgrid not working? What's the error? That, too, is hard to "block" use of. 

    /Charlie (troubleshooter, carehart. org)
    BKBK
    Community Expert
    Community Expert
    September 20, 2024

    You haven't asked a question. Therefore I am not sure what this is about. My guess is that you are looking for an alternative to cfgrid.

     

    If so, then you can use a Javascript library such as DataTables. Javascript runs entirely at the client-side. Therefore, CFCs are not involved.

     

    Go to "ColdFusion UI - The Right Way", then click on cfgrid, for a practical example using Datatables as an alternative to cfgrid. There the CFC only provides the table data. If you already have the data, then you don't need the CFC.