Announcement

Collapse
No announcement yet.

Redir whole page?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Redir whole page?

    Uhm......

    I have a wordpress implementaton. In one page, I have an iframe showing a SC form. When form is validated, it should to redir to an specific url of the CMS.

    I'm using sc_redir('my_destination_url','','_parent') but stills redirecting inside the iframe.

    I'm missing something?
    /Giuseppe

    Professional Scriptcase Services
    Some Customers opinions

  • #2
    Giu

    Do you have a link to your iframe / "modal" form? If so, have you set the exit URL there too? That may help?

    Comment


    • #3
      Its a control form. Just for collect data. Similar to a contact form. OnValidateSuccess I do some tasks and I want to redir at finish, but whole page, not just the iframe where form is executed
      /Giuseppe

      Professional Scriptcase Services
      Some Customers opinions

      Comment


      • #4
        Ok - but how is that control form called initially?

        Comment


        • #5
          Originally posted by adz1111 View Post
          Ok - but how is that control form called initially?
          It's embebbed on a Wordpress Page.
          <iframe src="my_control_page" />
          /Giuseppe

          Professional Scriptcase Services
          Some Customers opinions

          Comment


          • #6
            I suspect you can't then as from SC's perspective you are already at the parent. However, prior to the sc_redir maybe try and close your iframe with:

            Code:
            echo "<script>window.parent.tb_remove();</script>";

            Comment


            • #7
              Originally posted by adz1111 View Post
              I suspect you can't then as from SC's perspective you are already at the parent. However, prior to the sc_redir maybe try and close your iframe with:

              Code:
              echo "<script>window.parent.tb_remove();</script>";
              Yes, I ended doing this, but, didn't tried it yet lol
              /Giuseppe

              Professional Scriptcase Services
              Some Customers opinions

              Comment


              • #8
                I have a Scriptcase form that loads inside an iframe.... when I submit the form I create and send an email, then sc_redir(http://domain.com/thankyou/);
                that goes to a thank you page.

                I can't get it out of the iframe.... I have tried the above code in the onAfterInsert events... but I am still stuck in the iframe.

                Comment


                • #9
                  Are you doing the above "echo" before you sc_redi()r? Nothing will execute in an event AFTER an sc_redir().

                  Comment


                  • #10
                    Originally posted by yourguide View Post
                    I have a Scriptcase form that loads inside an iframe.... when I submit the form I create and send an email, then sc_redir(http://domain.com/thankyou/);
                    that goes to a thank you page.

                    I can't get it out of the iframe.... I have tried the above code in the onAfterInsert events... but I am still stuck in the iframe.
                    PHP Code:
                    echo "<script>
                    window.top.location.href = \"http://domain.com/thankyou/\";
                    </script>"

                    /Giuseppe

                    Professional Scriptcase Services
                    Some Customers opinions

                    Comment

                    Working...
                    X