File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Frames or not, your suggestions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Frames or not, your suggestions" Watch "Frames or not, your suggestions" New topic

Frames or not, your suggestions

Antonio Giovanni
Ranch Hand

Joined: Jun 27, 2005
Posts: 85
Hi all,

well in my present application, in one of the JSP pages, i do some Search (done by servlet, beans,..) and show the results 10 at a time using pagination.. (the result-set is Employee data)

Now the next part is, when a particular employee is selected from result-set, all his data is then shown below,.. the user can click any person's name from employees result-set..

Presently i am using frames to display the employee data, when his name is clicked from the result, that the user still has the result set on screen (in a different frame) and can continue looking at different employee(s) data, without refreshing the result set JSP page .., containing the search result

What do you people think about this?? IS using frames the better solution in this case or is there any other better solution???
Please share your thoughts about this..

Appreciate your help on this..

PS: a pop-up window with employee data is another thought in my mind, without refreshing the search result page ....

Thanks again

[ December 28, 2005: Message edited by: Antonio Giovanni ]
[ December 28, 2005: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63857

Framesets are a pain in the butt that you'd probably want to avoid.

Some alternatives would be to: use an iframe (similar to framesets, but less problematic) or: use Ajax so you can include the results in the same page. Of course, you could always fall back to simply refreshing the entire page.

[Asking smart questions] [About Bear] [Books by Bear]
Antonio Giovanni
Ranch Hand

Joined: Jun 27, 2005
Posts: 85
Hi Bear Bibeault,

Thanks a lot; I will look into the other options you suggested

I agree. Here's the link:
subject: Frames or not, your suggestions
jQuery in Action, 3rd edition