[wp-hackers] Changing the behavior of "Publish" button

Viper007Bond viper at viper007bond.com
Wed Jul 16 10:54:11 GMT 2008


Why do it via JS? Why not just do it via PHP? After publish, redirect to the
URL.

On Wed, Jul 16, 2008 at 2:48 AM, Mário Gamito <gamito at gmail.com> wrote:

> Hi,
>
> Sorry for the little off-topic.
>
> I want that when I click in "Publish", it redirects to another page
> with two parameters in the URL. One of them is the contents of the
> TinyMCE textarea.
>
> Problem is that I get the alert popup stating:
>
> "Are you sure you want to navigate away from this page?
> Press OK to continue, or Cancel to stay on the current page."
>
> I believe this prevents the text from being passed to the page I want.
>
> I'm working on this for two days and I can't get this to work.
>
> Any help would be very, very appreciated.
>
> Warm Regards,
> Mário Gamito
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/


More information about the wp-hackers mailing list