Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8006335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:28:50+00:00 2026-06-04T17:28:50+00:00

I have the following in a ColdFusion page that pulls in some data for

  • 0

I have the following in a ColdFusion page that pulls in some data for us once the page has loaded:

ajaxRequest#RowURnumber[I]#.open("POST", "/cfapps/include/scriptname.cfm?i=#RowNumber[I]#", true);
ajaxRequest#RowURnumber[I]#.send(null); 

Would it be possible to host this script on a different server in our network and call it with the above code? I have tried using a http address and a UNC path but they don’t seem to work.

Any ideas would be greatly appreciated.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T17:28:53+00:00Added an answer on June 4, 2026 at 5:28 pm

    You cannot simply use ajax to access any page other than the same domain even its the same network.

    For your solution, you would use a proxy page in your domain,
    From the front end you would perform an AJAX request to this proxy page in your domain,
    which will fetch the contents from that coldfusion page and pass it through to frontend.

    $.ajax({
      type:'GET',
      url :'url to a proxy page in server A',
      success: function (){//...}
    });
    

    In server A you will have a proxy page say proxy.cfm

    <cfhttp url="http://www.serverB.com/the actual page..." />
    <cfset html = cfhttp.FileContent />
    <cfoutput>#html#</cfoutput>
    

    So your AJAX will ask Server A to get the contents from server B and return it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a simple ColdFusion page that is outputting basic HTML to the browser.
I have the following ColdFusion code that is getting information from a database and
I am following Ray Camdens post on ajax calls in coldfusion. I have the
In ColdFusion version 9, I have the following in Index.cfm: <cfdump var=#Application#> But the
I have following requirement, I have C#/.Net console application, which refers to 'System.Data.Sqlite.dll' 'System.Data.Sqlite.dll'
I have the following code that is really bugging me, I'm thinking perhaps the
ColdFusion 8 I have a cfgrid that that is based on a query. It
I am using ColdFusion 9.0.1. I have a new web site that uses Bikes.cfm
I have the following ColdFusion 9 code: <cfloop from=1 to=#arrayLen(tagArray)# index=i> <cfquery name=qryGetSPFAQs datasource=#application.datasource#>
I have a following XML structure that I need to transform: <recordset rowCount=68 fieldNames=ITEM,ECL,LEAD_TIME

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.