IIS Server Side Includes Does Not Handle ColdFusion

How can I use the Server Side Includes module in IIS to include and process a ColdFusion file from a .htm file? I am currently doing something similar in my html file:

<!--#include virtual="navmenu.cfm"-->

This includes the original contents of the navmenu file. I need it to execute ColdFusion code and return the output of this process, not raw ColdFusion code .

The same syntax works correctly in Apache.

+3
source share
3 answers

cfm , URL Rewrite Module IIS? , cfms htm cfm, . , , , .

ajax - ajax, jquery ...

 <div id='menuhere'></div>

 $.get('navmenu.cfm', function(data) {$('.menuhere').html(data); });

, SSI plus ( , jQuery ) .

+2

CFM URL?

SSI CFM HTM . IIS HTM CF- . CFINCLUDE HTM .

ajax HTM CFM DIV.

+4

If you use the Coldfusion page, this is:

 <cfinclude template="navmenu.cfm">

If you use a different type of page, you will need to place this content in an IFRAME

<iframe src="navmenu.cfm"></iframe>

The question is, do you have Coldfusion technology on the server, why not change this page to a .cfm page and use the above example?

0
source

Source: https://habr.com/ru/post/1732574/


All Articles