load external page

Hi

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


Thanks
LVL 3
3xtr3m3dAsked:
Who is Participating?
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
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
 
Gurvinder Pal SinghCommented:
what do you mean by <<protected directory>>?
0
 
3xtr3m3dAuthor Commented:
directory is protected by username and passowrd.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Michel PlungjanIT ExpertCommented:
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
 
3xtr3m3dAuthor Commented:
what if i use iframes?
0
 
timhighamConnect With a Mentor Commented:
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
 
Michel PlungjanIT ExpertCommented:
There are several server based possibilities to proxy with or without authentication.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.