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?

Giu

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

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

Ok - but how is that control form called initially?

It’s embebbed on a Wordpress Page.
<iframe src=“my_control_page” />

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:

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

[QUOTE=adz1111;37746]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:

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

[/QUOTE]

Yes, I ended doing this, but, didn’t tried it yet lol

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.

Are you doing the above “echo” before you sc_redi()r? Nothing will execute in an event AFTER an sc_redir().

[QUOTE=yourguide;38204]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.[/QUOTE]

echo "<script>
window.top.location.href = \"http://domain.com/thankyou/\";
</script>";