Solved

Submitting a form from another website from another frame

Posted on 2015-02-06
1
37 Views
Last Modified: 2015-03-02
If I load a website that is not my own in a frame named "bottom" and I want a button in a frame named "top" to submit that form in "bottom", is it possible? If so how would I do that? JavaScript only NO JQuery please.
0
Comment
Question by:894359
1 Comment
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 40594180
Not going to happen.  It is a security violation and no modern browser is going to permit a hack that used to trash sites in a regular basis.

If you want to access the form for the other site then bring it to your server with a server to server transaction, and include it in your page from your server. The form should then be submittable from your site, but the target site will see it is coming from an outside domain.  If you do not have permission to interface this way they will simply block you and you will not be able to access them at all.  They may also report the incident to your ISP and legal authorities is they consider it an attack.

Cd&
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to count occurrences of each item in an array.
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now