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

  • Home
  • SEARCH
  • 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 7845545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:15:43+00:00 2026-06-02T17:15:43+00:00

I may be asking the wrong question here so I will provide a small

  • 0

I may be asking the wrong question here so I will provide a small amount of detail about what I am trying to accomplish.

I use a third party web app to track support tickets. They provide the code for a form that my users fill out and it submits to their domain. I want to use this form on two different domains, but unfortunately the third party uses a single, hard coded redirect value. This causes one of my sites to switch domains after submission.

I was thinking I could embed their form in an iFrame, detect the redirection on successful form submission and instead redirect to one of my own pages.

Pseudocode:

iframe.detectRedirection
if (redirect == 'xyz.html') {  
     //do my own redirection in main window.
}

So back to my original question – how can I detect the redirection in the iframe?

  • 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-06-02T17:15:45+00:00Added an answer on June 2, 2026 at 5:15 pm

    You could try

    $("iframe").load(function(){
        //The iframe has loaded or reloaded. 
    });
    

    to detect the frame loading and refreshing

    and if the redirect happens on the second load

    //var to count times iframe has loaded
    var timesRefreshed = 0;
    
    //detect iframe loading/refreshing
    $("iframe").load(function(){
    
        //if second refresh, change frame src - ie dont count first load
        if(timesRefreshed == 1){
            $(this).attr("src","my site url here");
        }
    
        //add to times resreshed counter
        timesRefreshed++; 
    
    });
    

    if there are more stages just change the x to the amount of stages

    if(timesRefreshed == x)
    

    this isnt full proof. ie if could break if the other site adds a stage etc but its the best i can think of if you dont have any control over the other site.

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

Sidebar

Related Questions

I may be asking the wrong question here, I'm willing to change it if
I may be asking the wrong question here, and I'm open to that, so
I may be asking the wrong question but I am still fairly new to
I may be asking the wrong question, but what I need is to add
My problem is a bit hairy, and I may be asking the wrong questions,
I may not be asking this in the best way possible but i will
I may be doing everything wrong and I have the feeling that the question
i have a quick question about objectify - this may be in the actual
may i know how to use this getMicrophone with simpleFLVWriter to create flv with
Well I just made a question asking how to simply ~(i + -1) <

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.