2009年9月28日星期一

Re: [fw-mvc] redirect after secconds?

IMO, html meta redirect is better than javascript redirect. Javascript redirection has accessibility issues. Browser with javascript disabled can not be redirected, etc.

But besides that all, redirection after seconds should not be used because of accessibility issue. You can redirect using HTTP header instead.

Here is the reference: http://www.w3.org/TR/WCAG10-CORE-TECHS/#auto-page-refresh

"Until user agents provide the ability to stop auto-redirect, do not use markup to redirect pages automatically. Instead, configure the server to perform redirects. This automatic refresh can be very disorienting to some users"

On Tue, Sep 29, 2009 at 7:55 AM, Ralph Schindler <ralph.schindler@zend.com> wrote:
Generally speaking, html meta tags and javascript are the better ways to implement this.  By the time the client has the web page, your application is already finished (the request has been delivered as a response).

If it were me, I'd do a javascript timed redirect inside the view script.

The first link has a "delayed" redirect, but the others are good too:
http://www.google.com/search?q=javascript+redirect

-ralph


sina miandashti wrote:
hi

its possible to use the $this->view->_redirect()  to an adress after 3
secconds ?





--
Best regards,

Andy L.

没有评论: