Videos
Blogs
I’m trying to post a checkin.cfm file from within my index.cfm using the fetch api. All I’m getting is a 500 Server Error. Is there something different I need to do with ColdFusion? JavaScript fetch(“./src/checkin.cfm”) .then(function (response) { return response.text(); }) .then(function (body) { document.querySelector(“#checkin”).innerHTML = body; }); index.cfm <cfoutput> <div id=”checkin”></div> <script src=”js/app.js”></script> </cfoutput> checkin.cfm <cfoutput> <cfset session_valid = application.lib.check_session_valid()> <h1>Hello World</h1> </cfoutput> Is there something wrong with my syntax? When I do this with an HTML page, it […]
Upcoming Events