Hi
My question is if exists any way to check if javascript is disabled
on the client browser, I have tried with browser.javascr ipt but this
only return to me if the browser has the capability, no if is disabled.
Thanks Diego 7 8369
Hi,
Frankly I don't know any method of doing it quering the variables provided
by the browser, A possible workaround would be to have a hidden field whose
value is set from javascript, when you get the page back if that hidden
field does not have the expected value then you know javascript is not
actived.
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Diego" <Di***@discussi ons.microsoft.c om> wrote in message
news:6A******** *************** ***********@mic rosoft.com... Hi
My question is if exists any way to check if javascript is disabled on the client browser, I have tried with browser.javascr ipt but this only return to me if the browser has the capability, no if is disabled.
Thanks Diego
Thanks Ignacio
but the problem is that I have to know that in a HttpModule
the other way is to use your solution in a page that execute and redirect to
the home, but the site have to work entering by other pages than home
"Ignacio Machin ( .NET/ C# MVP )" wrote: Hi,
Frankly I don't know any method of doing it quering the variables provided by the browser, A possible workaround would be to have a hidden field whose value is set from javascript, when you get the page back if that hidden field does not have the expected value then you know javascript is not actived.
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation "Diego" <Di***@discussi ons.microsoft.c om> wrote in message news:6A******** *************** ***********@mic rosoft.com... Hi
My question is if exists any way to check if javascript is disabled on the client browser, I have tried with browser.javascr ipt but this only return to me if the browser has the capability, no if is disabled.
Thanks Diego
Hi,
The only specific way I can think of is to somehow utilize the <NOSCRIPT>
tag.
--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today! http://www.x-unity.net/teststudio.aspx
"Diego" <Di***@discussi ons.microsoft.c om> wrote in message
news:6A******** *************** ***********@mic rosoft.com... Hi
My question is if exists any way to check if javascript is disabled on the client browser, I have tried with browser.javascr ipt but this only return to me if the browser has the capability, no if is disabled.
Thanks Diego
Hi,
You only needs to do this check once, after that you can store it in
session.
I really don't think this is possible without using something like I
mentioned before or the redirect.
You could google for this, this probably is a problem that all server side
framework may have, so you could look for it in ASP/PHP/CFM groups
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Pd:
If you find the answer post it back here, for the archives :)
"Diego" <Di***@discussi ons.microsoft.c om> wrote in message
news:10******** *************** ***********@mic rosoft.com... Thanks Ignacio but the problem is that I have to know that in a HttpModule the other way is to use your solution in a page that execute and redirect to the home, but the site have to work entering by other pages than home
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
Frankly I don't know any method of doing it quering the variables provided by the browser, A possible workaround would be to have a hidden field whose value is set from javascript, when you get the page back if that hidden field does not have the expected value then you know javascript is not actived.
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation "Diego" <Di***@discussi ons.microsoft.c om> wrote in message news:6A******** *************** ***********@mic rosoft.com... > Hi > > My question is if exists any way to check if javascript is disabled > on the client browser, I have tried with browser.javascr ipt but this > only return to me if the browser has the capability, no if is disabled. > > Thanks Diego
Diego,
Assuming cookies are enabled, you could write to the document.cookie from
client-side javascript. The javascript could be written into each page from
your HttpModule. The biggest challenge would probably be handling the first
request, where the cookie value has not yet been written. Of course, if you
don't also require that cookies be enabled for your application, then this
technique is useless.
HTH,
Nicole
"Diego" <Di***@discussi ons.microsoft.c om> wrote in message
news:10******** *************** ***********@mic rosoft.com... Thanks Ignacio but the problem is that I have to know that in a HttpModule the other way is to use your solution in a page that execute and redirect to the home, but the site have to work entering by other pages than home
"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,
Frankly I don't know any method of doing it quering the variables provided by the browser, A possible workaround would be to have a hidden field whose value is set from javascript, when you get the page back if that hidden field does not have the expected value then you know javascript is not actived.
cheers,
-- Ignacio Machin, ignacio.machin AT dot.state.fl.us Florida Department Of Transportation "Diego" <Di***@discussi ons.microsoft.c om> wrote in message news:6A******** *************** ***********@mic rosoft.com... > Hi > > My question is if exists any way to check if javascript is disabled > on the client browser, I have tried with browser.javascr ipt but this > only return to me if the browser has the capability, no if is disabled. > > Thanks Diego
Check out HttpBrowserCapa bilities.JavaSc ript in the System.Web namespace.
hth.
Mark www.dovetaildatabases.com
"Diego" <Di***@discussi ons.microsoft.c om> wrote in message
news:6A******** *************** ***********@mic rosoft.com... Hi
My question is if exists any way to check if javascript is disabled on the client browser, I have tried with browser.javascr ipt but this only return to me if the browser has the capability, no if is disabled.
Thanks Diego
that only tells you if it's supported, doesn't tell you if it's disabled.
"Mark" wrote: Check out HttpBrowserCapa bilities.JavaSc ript in the System.Web namespace.
hth.
Mark www.dovetaildatabases.com
"Diego" <Di***@discussi ons.microsoft.c om> wrote in message news:6A******** *************** ***********@mic rosoft.com... Hi
My question is if exists any way to check if javascript is disabled on the client browser, I have tried with browser.javascr ipt but this only return to me if the browser has the capability, no if is disabled.
Thanks Diego This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim |
last post by:
I have a text box and a check box, by default the page should load and
the text box be disabled..I want it so that when you click the check
box the text box diabled = false...but, when you uncheck the check box
I want the disabled to = true again..heres what I have so far
<input type="checkbox" name="chxrequest"
onclick="javascript:enableField()" value="ON" style="float: "left" >
<script language="javascript">
function enableField()
|
by: Samir |
last post by:
Here is my function
<script language="javascript">
document.form.B1.disabled = true;
function changebutton(){
if (document.form.C1.value = "ON"){
document.form.B1.disabled = false;
return true;
}
|
by: vncntj |
last post by:
i want to enable one listbox and disable the other depending on if i
check winter_gala (checkbox)
here is my code.
<script type="text/javascript">
function check()
{
if (document.forms.winter_gala.checked=true)
{
document.forms.winter_gala.young_friend_list.disabled=true
|
by: Marc |
last post by:
Okay, here's the problem - I have 3 radio buttons, and 11 check boxes
(which are disabled by default). I have the javascript below which when
the last radio button is clicked, enables the checkboxes.
<script type="text/javascript">
//<!]>
</script>
I used the JavaScript on 2 pages, on almost identical forms, and for
some reason it doesn't work on the 2nd one - they just stay disabled,
|
by: Jim |
last post by:
How do I check if javascript is enabled in PHP?
TIA,
Jim
| |
by: cptuser |
last post by:
Hi,
I've put together this javascript taken from various sources, but i think it is wrong or missing something. If particular options are selected within a drop down menu, then the check botton will auto check and disable (grey out) at the same time. If seems like if will work fine but int he database it will wont show as selected, but if I manually check it, it will record fine in the DB so the form works, but not the javascript. Here is the...
|
by: bhanubalaji |
last post by:
hi,
I am unable to disable the text(label) in javascript..it's working fine with IE,but i am using MOZILLA..
can any one help regarding this..
What's the wrong with my code?
I am sending my code here..
Thanks in Advance...
Regards
|
by: Anshul |
last post by:
I want to check through perl whether javascript is enabled or disabled
in mozilla browser. If it is disabled I want to display a message to
user to enable it. What code can I use please help.
I tried "navigator.javaEnabled() but it is in javascript again. If
javascript will be disabled so browser can neither read this code
even.
Thanks
|
by: Steve Swift |
last post by:
Is there an event which is triggered when JavaScript is about to be
disabled?
--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |