Hello,

thank you for the information. I have two further questions that
are of importance for me.

(1)
I have Javascript enabled in Opera and Firefox. I tested the two
following client information:

Method -> result in my logs
isJavaEnabled -> false
isCookiesEnabled -> true

(a) I disabled Javascript in the browsers and got:

(Method -> result in my logs)
isJavaEnabled -> false
isCookiesEnabled -> true

(b) I deleted the browser cache and the session:

(Method -> result in my logs)
isJavaEnabled -> false
isCookiesEnabled -> true

Why did the methods still deliver these values? There was no
Javascript enabled to check for these value.

(2)
Additionally, I checked the value of getBrowserHeight. I got the
following results:

(a) Javascript disabled

getBrowserHeight -> -1

(b) Javascript enabled

getBrowserHeight -> -1

(c) Delete browser cache and session

getBrowserHeight -> 840

Is it possible to detect the change of the Javascript functionality
in the same session?

(3)
Regarding question (1). If the getClientInfo() and the properties
methods always deliver a result, how do I check for Javascript correctly?
This is important for me because of an AjaxSelfUpdatingBehavior which
does not work without enabled Javascript.

Thank you for your answers.
Andre

On Sat, 31 Mar 2012 23:17:20 +0200
Martin Grigorov <mgrigo...@apache.org> wrote:

> The method says "Java", not "JavaScript".
> The page that extracts the extra info uses JavaScript to do that, so
> it is enabled.
> 
> 2012/3/31 Andre Schütz <wic...@faustas.de>:
> > Hello,
> >
> > I use wicket 1.5.4 or 1.5.5 with Opera and Firefox. I checked with
> > the following lines:
> >
> > Application:
> > -------------
> > protected void init() {
> >  super.init();
> >  getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
> > ...
> > }
> >
> > MyWebPage:
> > -------------
> > WebSession session = WebSession.get();
> > if (session.getClientInfo().getProperties().isJavaEnabled()) {
> >  System.out.println("enabled");
> > }
> > else {
> >  System.out.println("disabled");
> > }
> >
> > With Opera 11.62 or Firefox 11 I always get "disabled". I checked the
> > settings and Javascript is enabled in both browsers.
> >
> > Additionally, I tried the website:
> > http://wicketstuff.org/wicket/hellobrowser/howdy
> >
> > The same result. JavaEnabled = false.
> >
> > Any ideas?
> >
> > --
> > Andre Schütz <wic...@faustas.de>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> 
> 
> 
> -- 
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org


-- 
Andre Schütz <schuetz.an...@gmx.net>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to