Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

load external page

Posted on 2011-02-27
7
Medium Priority
?
288 Views
Last Modified: 2012-05-11
Hi

How to load a external page located in a protected directory with jquery/java script?


Thanks
0
Comment
Question by:3xtr3m3d
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 40

Expert Comment

by:Gurvinder Pal Singh
ID: 34991326
what do you mean by <<protected directory>>?
0
 
LVL 3

Author Comment

by:3xtr3m3d
ID: 34991335
directory is protected by username and passowrd.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34991925
Not possible unless you sign in first.

And anyway, you cannot access a file on a different domain using Ajax unless the site implement CORS or XDR

On the server you have a better chance
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Author Comment

by:3xtr3m3d
ID: 34995885
what if i use iframes?
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 1000 total points
ID: 34995976
The user will still be presented with the sign in unless you do it for him/her on the server and proxy the pages

Possibly a solution here: http://www.google.com/search?q=jquery+authentication
depending on the target server
0
 
LVL 3

Assisted Solution

by:timhigham
timhigham earned 1000 total points
ID: 35001193
You speak of 'pages', however anything requested by a browser to a server is a file.
The server dictates what files are returned.
Any host server, by definition of security, allows no access by default.
Access is then simple and allowed 'bit by bit'.

For example:

1.
Allow a single port to be accessed (by firewall and then only by the webserver software)

2.
Require additional incoming data (username and password) before returning some files.

I would respectfully advise you research HTTP protocol.
As a summary, a host(server computer) will not allow access to any controlled files, a client(user browser) will not allow access to local files (eg website must as a minimum require permission to change data on the client computer).
Protection therefore must be consensual !
From your basic description I would advise that some indication is given to visitors being taken away from your website domain.
I would suggest not using an IFRAME but using
<a target=''_blank''>
or
javascript window.open (ie popup)

You don't have any control on an external domain.
HOPEFULLY I HAVE EXPLAINED WHY YOU CAN'T GET A SOLUTION !!!
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 35004112
There are several server based possibilities to proxy with or without authentication.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question