更加有效的就是将响应的错误消息链接到出错字段的一个页面定位点处,并将将焦点设置为该字段,如清单2所示。
Even more effective is to link the respective error message to a page anchor located at the field in error and set the focus to that field, as shown in Listing 2.
为调用应用程序提供了特定于应用程序的信息,比如状态码和出错页面。
Application-specific information, like status codes and error pages, are provided for the calling application.
让用户返回注册页面,并且页面顶部显示一条详细的出错消息。
Return the user to the Registration page with a detailed error message at the top of the page.
我们可以在任意页面调用这个bean并让它在我们希望的位置打印一条出错消息。
We can call this bean on any page and have it print an error message at just the spot we want it.
ClimateWisconsin的404出错页面虽简洁但一针见血。
Climate Wisconsin's 404 error page is simple and to the point.
有的开发人员和Web主机不把用户定向到404出错页,相反,却重定向到临时或永久的重定向页面。
Some developers and Web hosts instead redirect users to the 404 error page with a temporary or permanent redirect.
每个人都知道如果打开一个并不存在的页面,服务器会返回一个404错误页面。如果你的Rails程序出错了,会返回一个500应用程序内部错误的页面。
Everyone knows that if you try to access a page that doesn't exist, the server will throw you back 404 page not Found, or if you mess up your rails code, you will get a 500 Application Error.
如果未能成功构建页面,可以废弃完成一半的页面,并使浏览器指向出错页面。
If a page can't be built successfully, you can discard the half-done page and point the browser to an error page.
例如,我们很容易想到为RSS或者其它XML输出的数据,亦或是类似登陆框或者出错页面来编写可复用的视图。
It’s quite conceivable to build re-usable views for rendering RSS feeds or other XML output or a specific page display view like a login form or error page for example.
这是一个实用的出错页面程序!
这是一个实用的出错页面程序!
应用推荐