Results 1 to 3 of 3

Thread: Redirect iframe source?

  1. #1
    Join Date
    Mar 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Redirect iframe source?

    I have an iframe on a webpage that is a form on another system. When you hit submit on the form, the form is replaced with a "results" webpage in the iframe. I want to detect the source of this results page and depending on the results redirect to another page. I have tried to read the src of the iframe through an onload script, but that doesn't seem to work.

    Is there any way to know the src of the iframe and then change it dynamically based on its value?

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Hmm...don't understand why you're doing it this way. It's a little suspicious, to be honest.

    Do you have control over the "results" page that shows in your iframe? I'm assuming not, but just making sure.

  3. #3
    Join Date
    Mar 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I use a service bureau for my customer transactions. I am using the iframe approach so my customer does not know that there is a third party service bureau involved. Of course they can view the source and see that there's an iframe and that the link is to a different domain, but from a marketing perspective I want to minimize any branding except my own.

    But using iframe approach has its limitations. For example, the service bureau page has a "help" button on it which brings us a generic help screen for the service bureau. What I want to do is display my own help screen rather than the generic one. I was hoping that I could write a javascript that detected the new src of the iframe and if it equalled the URL of the generic help screen changed the source to my own help screen.

    That's the goal.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •