/    Sign up×
Community /Pin to ProfileBookmark

Open html file from external domain

Hi. I’m trying to open an html file from an external domain to query information from it (to be exact, the number of search results for a user-defined query). I am currently using an ajax script from jsquery_dot_com, but it can not load html from an external domain, so I have a one-line php page that loads the external site and returns it. The problem is, that it eats up my bandwidth.
Of course, I could use hidden iframes, but then the page would load all the images/sounds/scripts/etc from the target page, so my old method is still better than this.
Does anyone know a pure javascript-way to do this 100% client-side?
Thanks in advance.

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @aatiis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...