Hello, I've recently ran into a problem that's I'm unable to find a
work around for.

Using Zend_HTTP, I'm accessing a site and posting authentication
credentials. Upon success, remote page redirects to a confirm page
with an "Ok" button. This button utilizes the onClick event to expire
a cookie in order to confirm, it then redirects.

The onclick event looks like this:

<input name="success" value="Ok" onclick="redir();" type="button"> </td>

Javascript:

function redir()
        {
                // Deletes the cookie by expiring
                setCookie("link","", new Date("January 1, 1970"), "/" );
                if ("" != "") {
                        window.location="";
                }
        }

How would I code for this type of mechanism, in order to issue the
onClick event in order to get a redirect to the contents I need?

--
Thanks,

Junior

Reply via email to