[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1425
  • Last Modified:

Need some pointers on applying Bootstrap to my ColdFusion page

I'm looking into updating my CF search database page to be friendly with tablets and data phones.

How can apply a Bootstrap template when my search page needs a .cfm for the ColdFusion to process? Frames?

Are there other technologies besides Bootstrap that will be friendlier with ColdFusion?
0
DJPr0
Asked:
DJPr0
  • 2
  • 2
1 Solution
 
Scott Fell, EE MVEDeveloperCommented:
I am not a CF developer, but bootstrap is basically css and javascript that runs after the page loads.  Server side languages run on the server before the page loads so it should not interfere with the CF side of things.

If you have sites where you load css and libraries like jquery already, there is no issue.   What you may have a hard time doing is converting your site.   You can simply add the css and js files, but you  then need to rethink your css classes and how a page looks on multiple formats.  That will be the hard part.
0
 
DJPr0Author Commented:
ColdFusion pages need to end with .cfm

Do I just rename my Bootstrap template page from .html to .cfm?

Or is there another method?
0
 
Scott Fell, EE MVEDeveloperCommented:
CF runs on the server and not in the browser.   CSS and Javascript run in the browser (unless you are running js serverside).  This means you CF page runs all of the calculations and db functions on the server, then generates html based on your programming and sends it to the browser.  The html is rendered to the browser, then CSS styles are applied and javascript functions manipulate and calculate.

When you are using bootstrap, it is simply a mix of CSS and JS/Jquery.  It will not matter if you use .cfm, .asp, .aspx, .php etc.  It is the rendered html that counts.  

>Do I just rename my Bootstrap template page from .html to .cfm?
Yes.
0
 
DJPr0Author Commented:
Thanks Scott!
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now