Getting around the HTML IFRAME tag using coldfusion

I am trying to call a webpage into a certain area on my page using the webpages URL, I tried to use a cfpod tag and then put the URL in the source attribute and nothing happens, I am basically trying to get around using the HTML Iframe tag and thought I could use an ajax feature Coldfusion offers, any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm heading out. But I'm sure it would help other experts to answer your question if you posted your code.
RNBAuthor Commented:
Here is the code im using that does not work.
<cfpod source=""

Open in new window

>> source=""

That's only allowed if is your site (domain, etc..) The rule applies to any ajax control be it CF, jquery, etc...
Due to browser security restrictions, most "Ajax" requests are subject to the same origin policy; the request can not successfully retrieve data from a different domain, subdomain, or protocol.
So if you're trying to call an external page, you'll have to use something capable of accessing a d different origin, like iframe or another cfm page on _your_ site with a cfhttp call. Obviously they all have limitations.

<cfhttp method="get" url="" resolveurl="true" result="data">
<!--- add error handling ...--->

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Expert Spotlight: Joe Anderson (DatabaseMX)

We’ve posted a new Expert Spotlight!  Joe Anderson (DatabaseMX) has been on Experts Exchange since 2006. Learn more about this database architect, guitar aficionado, and Microsoft MVP.

BTW: I'm not an ajax expert, so there may well be some other alternatives (ie XMLHttpRequest, etc.. ). But I'll let someone else advise you on that.

The thing that makes iframes work great in some situations is that the browser handles the contents as if it were a seperate tab or window.  Ajax would not.  If you simply want to display the contents of another page that's one thing and doable.  On the other hand, if you want to interact with that content (ex: links) then that's going to be a ton of work.

If you make a div and then use an ajax call to a page on your own site that takes the requested page from the url and does a cfhttp  and then passes back the stripped response then you have a chance.  On thing to keep in mind is you should never have a <html> or <body> in ajaxed content so you will need to strip that out beore returning it.  If the response has links then you will have to parse them and try to "fix" them to be the long url and not relative.  That's where it would be sticky.
Why do you not want to use iFrames?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.