Do you have a default landing page where you could set a session
variable depending on the result of the noscript, and just use that
there-after?

Dino 

-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Cowan
Sent: Monday, 11 September 2006 19:53
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Javascript Disabled

The problem with the noscript approach means I have to place it on every
page.
I was looking for a more generic way of doing [EMAIL PROTECTED]



> Date: Mon, 11 Sep 2006 17:37:12 +1000> From:
[EMAIL PROTECTED]> Subject: Re: [ADVANCED-DOTNET] Javascript
Disabled> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> > This is how the
status is detected in javascript.> If you're still having trouble you
should be able to populate a flag from> this during body/form load?> >
<noscript>> It appears that your browser does not support JavaScript, or
you have it> disabled.  This site is best viewed with JavaScript
enabled.<p>If JavaScript> is disabled in your browser, please turn it
back on then reload this> page.<p>Or, if your browser does not support
JavaScript,   <a> href="http://www.mozilla.org/products/firefox/";>try
this one</a>.> </noscript>> > <script>> document.write("Javascript is
turned on in your browser, so you do not have> this problem.")>
</script>> > ps> > > ----- Original Message -----> From: "Ryan Heath"
<[EMAIL PROTECTED]>> To: <ADVANCED-DOTNET@DISCUSS.DEVELOP.COM>>
Sent: Monday, September 11, 2006 5:23 PM> Subject: Re: [ADVANCED-DOTNET]
Javascript Disabled> > > > Arent those properties static values?> > As
configured in machine.config or some other browser config?> >> > I
always thought Browser.JavaScript == true meant: browser is capable> >
of javascript but not that it is enabled or not at the clients> >
computer.> >> > // Ryan> >> > On 9/11/06, Shawn Wildermuth
<[EMAIL PROTECTED]> wrote:> >> if
(Request.Browser.JavaScript)> >> {> >>  // Can JScript> >> }> >> else>
>> {> >>  // Can't> >> }> >>> >> Thanks,> >>> >> Shawn Wildermuth> >>
Wildermuth Consulting Services, LLC> >> http://adoguy.com> >> C# MVP,
MCSD.NET, Author and Speaker> >>> >>> >> > -----Original Message----->
>> > From: Discussion of advanced .NET topics.> >> >
[mailto:[EMAIL PROTECTED] On Behalf Of> >> > Shawn
Wildermuth> >> > Sent: Monday, September 11, 2006 12:48 AM> >> > To:
ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> >> > Subject: Re: [ADVANCED-DOTNET]
Javascript Disabled> >> >> >> > Isn't this in the BrowserCaps?  I don't
have MSDN with me,> >> > but I thought it was mentioned there.> >> >> >>
>> >> > Thanks,> >> >> >> > Shawn Wildermuth> >> > Wildermuth Consulting
Services, LLC> >> > http://adoguy.com> >> > C# MVP, MCSD.NET, Author and
Speaker> >> >> >> >> >> > > -----Original Message-----> >> > > From:
Discussion of advanced .NET topics.> >> > >
[mailto:[EMAIL PROTECTED] On Behalf Of> >> > Frans
Bouma> >> > > Sent: Sunday, September 10, 2006 7:41 AM> >> > > To:
ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> >> > > Subject: Re:
[ADVANCED-DOTNET] Javascript Disabled> >> > >> >> > > > How do I know if
Javascript is disabled in the browser from> >> > > ASP.NET.> >> > > > In
the past we have used BrowserHawk but this present> >> > > project
cannot> >> > > > afford this.> >> > > > The Browser.JavaScript object
just lets me know that the browser> >> > > > supports javascript, not
that it is disabled.  I know I can set a> >> > > > hidden form field
with javascript but that will only work> >> > > when a form> >> > > > is
posted back to the server.> >> > > >> >> > > > Has anyone any idea how I
can achieve this?> >> > >> >> > >         An old trick was that you have
a common start page,> >> > and from> >> > > there, redirect with
javascript to a different page.> >> > > There, you set a flag and
redirect back to the main page, which now> >> > > doesn't contain the
javascript redirect code because of the> >> > flag (in> >> > > the
session).> >> > >> >> > >                 FB> >> > >> >> > >
===================================> >> > > This list is hosted by
DevelopMentor.  http://www.develop.com> >> > >> >> > > View archives and
manage your subscription(s) at> >> > > http://discuss.develop.com> >> >
>> >> >> >> > ===================================> >> > This list is
hosted by DevelopMentor.  http://www.develop.com> >> >> >> > View
archives and manage your subscription(s) at> >> >
http://discuss.develop.com> >> >> >>> >>
===================================> >> This list is hosted by
DevelopMentor(r)  http://www.develop.com> >>> >> View archives and
manage your subscription(s) at> >> http://discuss.develop.com> >>> >> >
===================================> > This list is hosted by
DevelopMentor(r)  http://www.develop.com> >> > View archives and manage
your subscription(s) at> > http://discuss.develop.com> >> >
===================================> This list is hosted by
DevelopMentor(r)  http://www.develop.com> > View archives and manage
your subscription(s) at http://discuss.develop.com
===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to