Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 6th, 2012, 02:37 AM
Authorized User
 
Join Date: Apr 2012
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Armaan
Default javascript

Sir in chapter in 9 you have told that we can disable javascript in our browser. my question is that how can we disable javascript in different browser like internet explorer, google chrome, mozilla firfox.
 
Old May 6th, 2012, 04:15 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In IE, you can use the Developer Toolbar (press 12). Additionally, under Tools | Options Advanced you find options to disable JavaScript.

In FIrefox you can disable JavaScript on the Content tab of the Options dialog.

Other browsers have similar options in their settings or developer plugin support. Search the browser's Help file for more information. Also, Google tends to know these kind of things.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old May 8th, 2012, 04:24 PM
Friend of Wrox
 
Join Date: Mar 2011
Posts: 126
Thanks: 39
Thanked 2 Times in 2 Posts
Default

hi,

I'm a little confused.... If you disable the javascript on the browser, then how will all your web site's client side code using JQuery (plugins) and javasctipt work?

Is it common practice to do this?

Tulsi
 
Old May 9th, 2012, 09:08 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
then how will all your web site's client side code using JQuery (plugins) and javasctipt work?
It won't. None of that will work if you disable JavaScript.

However, you could take that into account and provide fallback mechanisms. That's one of the reasons why it's so important to do server-side validation as well for example.

Quote:
Is it common practice to do this?
No. I don't have any statistics, but given the rich web sites of today that rely on JavaScript I assume a large percrentage of visitors have JavaScript enabled.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Tulsi (May 9th, 2012)





Similar Threads
Thread Thread Starter Forum Replies Last Post
about javascript imran_python ASP.NET 1.0 and 1.1 Basics 2 December 23rd, 2008 09:04 PM
stop current javascript function using javascript sakthi Javascript 3 June 2nd, 2008 03:30 PM
JavaScript sumith ASP.NET 2.0 Basics 2 October 2nd, 2007 09:59 PM
"text/javascript" and "javascript" rupen Javascript 1 June 24th, 2005 07:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.