/    Sign up×
Community /Pin to ProfileBookmark

Disabling of page reload

Im not sure where this goes to.

I have a page that has a drop down list, a map and a search function for searching of staff.

The drop down list contains levels in a building, which the map displays the storey plan of the selected level on change. This page passes information of the search criteria to a servlet and returns it to the same jsp.

The problem is that when I select a level and search for a staff, the page reloads itself and displays the default map and the default level in the drop down list.

Can I do something that disable the reloading of the page and only display the search results?

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@ray326Jul 30.2008 — The best thing to do would be to save the state of the map view as part of the model; maybe as a bean in the session.
Copy linkTweet thisAlerts:
@qwerty2412authorJul 31.2008 — Is there any other way? Without the use of ajax either. Since Im continuing this project from the previous group, they didn't create beans to store anything in.
Copy linkTweet thisAlerts:
@ray326Jul 31.2008 — they didn't create beans to store anything in.[/QUOTE]Then they were idiots and you would probably be better off redoing the design from scratch. At any rate creating a bean to save that state in the session is a trivial undertaking.
×

Success!

Help @qwerty2412 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...