Intercepting form submission in a parent iframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • imimin
    New Member
    • Sep 2007
    • 1

    Intercepting form submission in a parent iframe

    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!
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    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?).

    Comment

    • Weisbartb
      New Member
      • Aug 2007
      • 36

      #3
      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.

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Good call, Weisbartb. Moving to the JS forum....

        Comment

        • Weisbartb
          New Member
          • Aug 2007
          • 36

          #5
          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.

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5388

            #6
            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

            Comment

            Working...