You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by Andrew R Jaquith <an...@gmail.com> on 2008/12/11 00:58:40 UTC

Theory of operation behind preferences?

Dirk,

I'm doing a bunch of work with Stripes, and am slowly upgrading the  
JSPs so that they work better with ActionBeans. It seems that a lot of  
the PreferencesTab.jsp (and other prefs work) relies heavily on  
JavaScript. Could you describe to me, at a high level, how it all works?

Andrew

Re: Theory of operation behind preferences?

Posted by Dirk Frederickx <di...@gmail.com>.
Andrew,

On the preferencesTab.jsp there is not so much Javascript.

When you look at jspwiki-prefs.js, only the first part is important:
1) a window.onbeforeunload handler to throw a popup when leave the
page without saving
and
2) the savePrefs routine to save all prefs into the userprefs cookie.

Hope that helps,
dirk


On Thu, Dec 11, 2008 at 12:58 AM, Andrew R Jaquith
<an...@gmail.com> wrote:
> Dirk,
>
> I'm doing a bunch of work with Stripes, and am slowly upgrading the JSPs so
> that they work better with ActionBeans. It seems that a lot of the
> PreferencesTab.jsp (and other prefs work) relies heavily on JavaScript.
> Could you describe to me, at a high level, how it all works?
>
> Andrew
>