I'm replying to this because it's somewhat related to an issue I'm having. Let's say I have the following control in my jsp: <sx:submit type="button" method="search" value="Search" targets="resultsDiv" indicator="indicator"/>
This of course will update the div defined in my jsp: <div id="resultsDiv"/> Everything works great under normal circumstances. But let's say my session has timed out, and I need to redirect to the login page. In my circumstance the div is replaced by the login jsp, which just looks strange. What are the best practices with dealing with these situations using Ajax. - Nick On Mon, Jul 28, 2008 at 8:28 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Mon, 7/28/08, Milan Milanovic <[EMAIL PROTECTED]> wrote: >> well I don't understand what is the problem, I use ajax >> for my first form, but not to second which should redirect? > > ... > > Not reloading the entire page is one of the main points of Ajax. > > If you want to reload the entire page (like with a redirect) and you're not > handling that yourself in JavaScript I don't really see the point (in > general; there are exceptions). > > You may want to read up on Ajax fundamentals; JJG's article is one of the > more popular ones, even though people have been doing it for a decade+ now. > > http://www.adaptivepath.com/ideas/essays/archives/000385.php > > The Wikipedia article gives a shorter, higher-level overview. The second > sentence may be informative: > > "With Ajax, web applications can retrieve data from the server asynchronously > in the background without interfering with the display and behavior of the > existing page." > > http://en.wikipedia.org/wiki/AJAX > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]