This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have a lengthy view page and at the bottom of the page i have a delete button which will delete any of the selected record on the page after deletion i am displaying a message but the focus is not going to the message instead it stays where the delete button is placed. so how to focus the message after deletion happens.
I am doing partial submit when clicking the delete button. I am using trinidad.
"Focus" is short for "Input focus", and it applies to input controls, not output data.
However, if what you mean is "How do I ensure that the message text is displayed in the visible part of the window?" you should be able to wrap the message in an HTML anchor tag and direct the browser to "go to" the anchor tag.
The HTML anchor is the <a> tag. Although most famous for its "href" attribute, it also allows how to define a link target by name. You indicate the name as part of the URL by preceeding it with a "#". Like: "http://www.javaranch.com".
Customer surveys are for companies who didn't pay proper attention to begin with.