treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] Load external website in a div

  • Hi all,

    i am trying to load external sites in a div on clicking tabs. i am new ajax jquery cud any one can suggest for correct solution.

    Below is the link i have tried:

    Jsfiddle

  • To load external sites within your page, you really should use iFrames -- that's why they exist.

    Loading external sites with Ajax (I think that's what you're trying to do) won't work cause you can't load code in a DIV using Ajax if it's on two different domains.

  • Thanks @Senff i got the solution.