473,486 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Intercepting form submission in a parent iframe

1 New Member
Hello!

I am new to your forum and I must say it looks GREAT!

I have a bit of a problem. I use a vendor for my business that I am pulling data off of their web-site and putting on mine using IFRAMES. Some (A LOT) of their pages have POST submit buttons on them (which of course take you to the next page(s)). These pages are on their order detail pages. I notice that when I click on one of these POST submit buttons, my site is left (along with the IFRAME) and I just enter my vendors site (outside of the IFRAME and my site).

QUESTION: Is it possible to add coding that will keep me inside of my site and continue to show my vendors site as well inside of a IFRAME when the POST submit buttons on my vendors site is pressed?

I DO NOT have access to the coding on my vendors site, just mine. The POST submit button(s) are on my vendors web-site, I only have basic PHP pages written and access my vendors site via IFRAME.

THANK YOU!
Sep 11 '07 #1
5 2268
pbmods
5,821 Recognized Expert Expert
Heya, imimin. Welcome to TSDN!

Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).
Sep 11 '07 #2
Weisbartb
36 New Member
This needs to be moved to the javascript section. What you are wanting to do has nothing to do with server side scripting. You need to create a javascript application that can intercept events coming from each of the windows.
Sep 13 '07 #3
pbmods
5,821 Recognized Expert Expert
Good call, Weisbartb. Moving to the JS forum....
Sep 13 '07 #4
Weisbartb
36 New Member
Now that im not so tired I believe what you are trying to do is referred to as XSS and its not allowed. I could be wrong. Im not a JS expert.
Sep 13 '07 #5
gits
5,390 Recognized Expert Moderator Expert
yep ... XSS = Cross Site Scripting ... besides some possibilities that we are not speaking about ;) ... it is not possible to do such things ... and it should not ... it is desired behaviour ... imagine that someone does that with your own page ... scripting something that you would never have in mind or would do with your content ... you don't really want this ... and nobody does ... you may control your own content but not that of other domains ...

but in case a page of your own is affected ... may be unloaded by the postaction ... you may use the 'onbeforeunload' event to call some code that does something you want to ...

kind regards
Sep 13 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
18278
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...
3
1895
by: Chris Smith | last post by:
Good morning, Is there a good way to use JavaScript to send a form submission, but get back the response as a string, rather than loading it into a page? I could write the code to send the...
7
1987
by: degmsb | last post by:
With Java script when a user hits submit on a form on my site, is it possible to take the values from the form and submit them to another form on another Url without the user who submitted the form...
2
17043
by: superfreaker | last post by:
Ok, I've been at this two days now and have scoured the group for help to no avail. I have a main web page that contains a form and an iframe. I need to submit the form and set the iframe source...
1
10922
by: gzannd | last post by:
I have a problem with submitting a form to a PHP page through a dynamically created IFRAME in IE7. This code works fine in Firefox. However, IE7 submits an empty form--the correct PHP page is...
2
11540
by: cybervigilante | last post by:
I have a table inside an iframe that has paypal buttons in table cells. Each button is a Form. (The table has to be in an iframe to protect it from a containing CMS, which buggers the forms...
1
3046
by: Anderh | last post by:
hi all, I have using iframe for call php file called , I wnat submit this form inside iframe from parent form in main page but I codnt make it. <input type="button" id="s" name="s" value="submit...
8
8747
by: VUNETdotUS | last post by:
My goal is to upload files without submitting the form. I am not looking for the code here but rather a concept. I did a little research and discovered that I can submit a form to an invisible...
1
4492
by: IframeLearner | last post by:
Hi , I am trying to upload a file from a parent.jsp using Iframes. From Parent page. I have to save Subject, Desc, File and file name. to upload the file i am using Iframe. I want the...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.