473,378 Members | 1,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Submit form in another frame

Ori
Hi!

This is my problem...

I have two frames. one which is my website (top frame), and the other
is someone else website. I want to simulate a submit in the other
website (lower frame)when a user is clicking on a button in my site
(the top frame).

Can i do it?
Jul 20 '05 #1
3 2198
or*******@hotmail.com (Ori) writes:
I have two frames. one which is my website (top frame), and the other
is someone else website. I want to simulate a submit in the other
website (lower frame)when a user is clicking on a button in my site
(the top frame).

Can i do it?


No.
Tha standard security model in browsers will not allow cross domain
scripting.

If the page is just for personal use and your browser is IE, you can
look into HTML-applications (Google for HTA).

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
"Ori" <or*******@hotmail.com> wrote in message
news:b4**************************@posting.google.c om...
<snip>
I have two frames. one which is my website (top frame),
and the other is someone else website. ... <snip>Can i do it?


No. Browser security requires that scripts originating on one domain are
not allowed access to the DOMs of pages from a different domain. There
is just too much potential for abuse if they were.

Richard.
Jul 20 '05 #3
You might be able to do something like that by tearing the target form
apart.

If you are somewhat conversant with forms, you could create a URL
string which would simulate the form being submitted.

ie If your site is hosted at www.host1.com and the target site has a
page which submits to www.host2.com/processor with the following
inputs FirstName, Surname, PhoneNumber.
You can hardcode a link which will act like a submission of that page
like
the following:
http://www.host2.com/processor?First...ber=1800800800

That link can then be targetted at whatever frame you want.

NOTE: I have only tested this within my work's intranet, so there is
no difference in Domain Names, as such, I cannot comment on whether
this solution is the best for your application.

Luke
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Halldór Ísak Gylfason | last post by:
In my application I have an iframe that is empty (and not visible) initially, however when a user presses a button a form is programmatically submitted and the target is set to the IFrame. I...
2
by: Colin McKinnon | last post by:
Hi all, I've got two frames, one with a form ('main') and one with some clickable images ('tp'). The clickable images call a function in 'main' (code below) which in turn calls the .submit() or...
3
by: Don | last post by:
Hi all, Is there some way in a <form> tag to transfer control to a JavaScript function after completion of the submit, where the <form> and function are on the same page? I believe ONSUBMIT and...
5
by: Scott | last post by:
How can I tell a form to submit itself in the code-behind in vs.net? In other words, in javascript I can do blah.submit() - how do I do this in vs.net code-behind?
3
by: Robin | last post by:
Hi, I have a question: If I have a frameset, frame1 and frame2. On frame2 I have a datagrid, on which I can add/update/delete rows. If I submit that page, I catch these changes in events and...
5
by: ningjun.wang | last post by:
How can I submit a form to multiple web sites when user click the submit button? Something like the following: myform.action = url_of_server1; myform.submit(); myform.action = url_of_server2;...
3
by: Larry | last post by:
I have a page that uses 2 frames. In the upper frame are buttons that add text things to the form text boxes in the lower frame using javascript. The form is then submitted to another page. Is...
4
by: malambing57 | last post by:
How do I submit using framet set. I want the top frame to submit the form on my bottom frame when time is up. On my top frame, I have the following code; if((min == 1) && ((sec >= 8) && (sec ...
4
by: szimek | last post by:
Hi, I've already posted an email with this problem, but this time I think I got a bit more info. The app I'm currently working on works like this: when user clicks on a clickable element, it...
4
by: j1dopeman | last post by:
Hi, I'd like to use a button to save and then submit a form. I can set the onlick of the button to mahButton_click or submit, but I can't figure out how to do both. It looks like c# can't...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.