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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:37:53+00:00 2026-06-11T14:37:53+00:00

OK so what i need to do is be able to put a login

  • 0

OK so what i need to do is be able to put a login screen from a remote site in an iframe and when they click the login button it logs them in to the remote site then changes the local page to page 2
here is what i have managed to do so far which is very little. and if this isn’t possible would i be able to create a local login that passed the information to the remote site and gets a cookie then loads the next local page?

<html>
<head>
    <title>
    </title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" >
    <style type="text/css">
    #outerdiv
    {
        width:400px;
        height:360px;
        overflow:hidden;
        position:relative;
    }

    #inneriframe
    {
        position:absolute;
        top:-125px;
        left:-802px;
        width:2000px;
        height:2000px;
    }
    </style>
</head>
<body>
    <div id='outerdiv'>
        <iframe src="http://www.99designs.com/login" name="myiframe" id='inneriframe' scrolling=yes></iframe>
    </div>
</body>
</html>
  • 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-06-11T14:37:54+00:00Added an answer on June 11, 2026 at 2:37 pm

    Most likely not possible…

    This very likely wont be possible, due to the fact that the hosts between your local and the remote will be different, so JavaScript wont allow you access to the iframe content due the the Same origin policy that all browsers employ.

    http://en.wikipedia.org/wiki/Same_origin_policy

    The only way you might be able to achieve this is if the other site doesn’t employ XSS protection and allows you to directly get/post a login URL to their site. It really depends on who controls what… if you own and control both the local and the remote site then it will be possible. If not, it’s unlikely and will be subject to all sorts of possible problems (i.e. if the remote site changes the way it’s log-in works you system will break, or getting fine grain control of the log-in log-out process wont be possible, so you wont be able to implement your own error handling).

    I guess what I’m saying is you shouldn’t rely on an XSS vulnerability.

    Why is this kind of thing protected against?

    If you think about it, if the above wasn’t true then there would be a lot of very powerful and scary things evil people could do in the background whilst you were surfing a site. For example, if you could use JavaScript to communicate across hosts into a hidden iframe there would be nothing to stop someone coding a hidden script that navigated to facebook, relied on your browser stored username and password, logged in, and then started posting / deleting / befriending away… (and that is only a mild example that doesn’t involve credit card details or government websites)

    Other options?

    Your best bet for implementing something along these lines is to employ a server-side scripting language like php, asp, java, node.js, ruby, lisp, perl or python. Scripting languages don’t tend to have limitations with regard to working with external resources. Again, as long as the external site supports a simple or open source log-in system, you should be able to rig something together than allowed your JavaScript to log-in using your server-side script as a proxy via AJAX. For example, you can use cURL via PHP to post to an external site and retrieve the cookies that site returns. This is not an easy project however and will take quite a bit of work to get functioning without problems.

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

Sidebar

Related Questions

If I put the Login button on my site, the user will be able
I need to be able to send a file to another website from server-side
Users of the website need to able to store images in their area ,
Need to be able to pull Magento products into an external template. Need to
I need to be able to access a list throughout my Rails project. For
I need to be able to search through multiple 2D arrays and search the
I need to be able to create an id for a hyperlink. I have
I need to be able to strip out a condition in a string, here
I need to be able do the following on a TR: onmouseover highlight the
I need to be able to map out in coordinates real world cities and

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.