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 4238294
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:53:10+00:00 2026-05-21T02:53:10+00:00

I am building a page at http://www.localurl.com . I want to submit a POST

  • 0

I am building a page at http://www.localurl.com.

I want to submit a POST form that is on http://www.url.com/form_step_1.html to http://www.url.com/form_step_2.html and display http://www.url.com/form_step_2.html in an iframe.

Is this possible to do with JavaScript/jQuery or does browser security prohibit this? Is there anyway it can be done with ajax?

In addition to the selected answer, I found this blog post extraordinarily informative on the subject.

  • 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-21T02:53:11+00:00Added an answer on May 21, 2026 at 2:53 am

    You cannot execute Javascript on a different domain that you do not have access to.

    If you do have access then use:

    document.domain = 'example.com'
    

    on both pages. You can then submit a form within the iFrame with this:

    window.top.myiframename.document.myformname.submit();
    

    or

    window.myiframename.document.myformname.submit();
    

    NOTE: This probably won’t work in IE8.

    Alternatively, you could create your own page on your domain using php:

    <?php
        echo file_get_contents("http://www.url.com");
    ?>
    

    Open this page (which is on your local host) in your iframe and use:

        window.top.myiframename.document.myformname.submit();
    

    or
    window.myiframename.document.myformname.submit();

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

Sidebar

Related Questions

I'm looking at building functionality similar to Amazon's Appstore installation flow (http://www.amazon.com/gp/feature.html?docId=1000626391&ref=mas_gs) to get
Here on this page: http://www.nickhodges.com/post/More-on-FreeAndNil.aspx#comment if you scroll down, you'll notice that the nested
I'm building something similar to this - http://www.impressivewebs.com/demo-files/content-switcher/content-switcher.html I wondered if anyone had any
I'm trying to use the plugin (http://www.vertstudios.com/blog/jquery-sticky-scroller-position-fixed-plugin ) on a page i'm building. I'm
I'm building this website and I have basically two questions about this page: http://sites.publishyours.com.br/silviamecozzi/pt/obra/deserto_das_palmas.php
I'm new to PHP, and building a page that displays a customer order form
I am trying to understand some example code on this web page: ( http://www.csharp-station.com/HowTo/HttpWebFetch.aspx
I am building a website - http://www.efficaxdevelopment.com As you can see when you load
I need help in building custom search engine for my website http://www.go4film.com . Although
This should be ridiculously simple. I found the man page here: http://www.scons.org/doc/HTML/scons-man.html Directly from

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.