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

  • Home
  • SEARCH
  • 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 611235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:45:43+00:00 2026-05-13T17:45:43+00:00

I apologize if this has been asked before. I searched but did not find

  • 0

I apologize if this has been asked before. I searched but did not find anything. It is a well-known limitation of AJAX requests (such as jQuery $.get) that they have to be within the same domain for security reasons. And it is a well-known workaround for this problem to use iframes to pull down some arbitrary HTML from another website and then you can inspect the contents of this HTML using javascript which communicates between the iframe and the parent page.

However, this doesn’t work on the iPhone. In some tests I have found that iframes in the Safari iPhone browser only show content if it is content from the same site. Otherwise, they show a blank content area.

Is there any way around this? Are there other alternatives to using iframes that would allow me to pull the HTML from a different domain’s page into javascript on my page?

Edit:
One answer mentioned JSONP. This doesn’t help me because from what I understand JSONP requires support on the server I’m requesting data from, which isn’t the case.

That same answer mentioned creating a proxy script on my server and loading data through there. Unfortunately this also doesn’t work in my case. The site I’m trying to request data from requires user login. And I don’t want my server to have to know the user’s credentials. I was hoping to use something client-side so that my app wouldn’t have to know the user’s credentials at the other site.

I’m prepared to accept that there is no way to accomplish what I want to do on the iPhone. I just wanted to confirm it.

  • 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-05-13T17:45:43+00:00Added an answer on May 13, 2026 at 5:45 pm

    You generally can NOT inspect the contents of an iframe from another domain via JavaScript. The most common answers are to use JSONP or have your original server host a proxy script to retrieve the inner contents for you.

    Given your revisions, without modification or support from the secondary site, you are definitely not going to be able to do what you want via the iPhone’s browser.

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

Sidebar

Related Questions

I apologise if this has been asked before but I can't find the info
Apologies if this has been asked before (I couldn't find the answer anywhere), but
I apologize if this has been asked before, but I haven't quite found the
Apologies if this question has been asked before, I couldn't find anything similar. I
I apologize if this question has been asked before, but my case is a
I apologize in advance if this has been asked before, but I haven't been
If this has been asked before, I apologize but this is kinda of a
apologies if this has been asked before but I have searched the site... Anyway,
Apologies if this has been asked before. I searched and couldn't find it. In
I apologize if this has been asked but I can't seem to find it

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.