0

I'm trying to open the other website content in my website

<iframe src="http://blogs.msdn.com/crm/default.aspx">

I've tried using the Iframe . it works well but it doesn't open all the url.

What's the workaround for this? Any help or suggestions is appreciated.

t.niese
  • 39,256
  • 9
  • 74
  • 101
Dathatreya
  • 45
  • 2
  • 9
  • what URL are you trying to open? – Melissa Hie Nov 24 '14 at 05:52
  • @Melissa Hie – Dathatreya Nov 24 '14 at 05:54
  • Why did you write your entire question in bold? Formatting should be used to only highlight certain words of the question. – t.niese Nov 24 '14 at 06:26
  • What do you mean by “it works well but it doesn't open all the url”? If you mean “it works well for some URLs but not all”, then the answer is simply that some servers disallow it, on purpose. Any workaround that works would probably be regarded as illegal (copyright infringement). – Jukka K. Korpela Nov 24 '14 at 06:41

1 Answers1

-1

You can use JQuery to do it:

<script>$("#testLoad").load("http://www.example.com");</script>
<div id="testLoad"></div>

and you can read more on : Embed an External Page Without an Iframe?

Community
  • 1
  • 1
Farid
  • 33
  • 4
  • You should mention that loading cross domain content will fail in most cases. As is needs to be allowed by the foreign server. – t.niese Nov 24 '14 at 05:59
  • 1
    Whenever you just do a copy&past of an already existing answer which out adding any additional relevant information, then you either don't answer the question, or the question is a duplicate of the one where you copied your answer from. – t.niese Nov 24 '14 at 06:24
  • @t.niese You're right, this is just because it was my first experience in stackoverflow. – Farid Nov 24 '14 at 08:04