473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Prompt Active Scripting disabled message

254 100+
Hi

I have developed website using php and mysql and in that I have used JavaScript as well. I tried to run this website on different computer and set its browser's Active Scripting disabled. so javascript is not working on that system. Now what i wanted that if user's javascript/active scripting is disbaled then it should prompt user to enable it or it enable automatically. How can i do this?
Nov 11 '09 #1
10 3703
Dormilich
8,658 Expert Mod 8TB
you can’t enable it automatically, but you can leave a note either using <noscript> or any element that you remove via javascript.
Nov 11 '09 #2
mukeshrasm
254 100+
@Dormilich
How mean what will be the exact code to do it
Nov 11 '09 #3
Dormilich
8,658 Expert Mod 8TB
@mukeshrasm
indeed, if I want JavaScript off, no-one but me is allowed to turn it back on.
Nov 11 '09 #4
acoder
16,027 Expert Mod 8TB
LOL, I don't think that was what he meant!

mukeshrasm, have you tried looking at the use of the noscript tag?
Nov 11 '09 #5
mukeshrasm
254 100+
@acoder
Hi Yes I am looking the use of noscript tag and how can I prompt user to enable Active Scripting if it is disabled
Nov 11 '09 #6
Dormilich
8,658 Expert Mod 8TB
@mukeshrasm
see post #2.

prompt() is a JavaScript method, i.e. it only works with JavaScript enabled.
Nov 11 '09 #7
acoder
16,027 Expert Mod 8TB
If by prompt, you simply mean a message to be displayed, the <noscript> tag is perfect for that task:
Expand|Select|Wrap|Line Numbers
  1. <noscript>You can browse this site without having JavaScript enabled, but to experience the full benefits of the site, please enable JavaScript.</noscript>
Nov 12 '09 #8
Dormilich
8,658 Expert Mod 8TB
for the standardista among us:
<noscript> requires to have only block level elements as content (children)
Expand|Select|Wrap|Line Numbers
  1. <noscript>
  2.     <p>your message</p>
  3. </noscript>
Nov 12 '09 #9
acoder
16,027 Expert Mod 8TB
Thanks, I was going to put the <p> tag in, but forgot.
Nov 12 '09 #10
Dormilich
8,658 Expert Mod 8TB
the browser wouldn’t have cared anyway, until you ask it to use the XHTML parser.
Nov 12 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jane Austine | last post by:
I donwloaded win32all for Python 2.3 and installed it. I manually run pyscript.py and it returned "successfully registered" message. For a simple test(on client side), I created the following...
7
by: Dr John Stockton | last post by:
The following DOS prompt command line, in a Win98 DOS box, cscript //nologo ~tmp.js executes file ~tmp.js as javascript/Jscript. The following batch file, similarly run, executes the same....
4
by: Oscar | last post by:
I am quite new to the ASP scene. I want to display the results of a recordset into a third party grid control called VSFlexgrid. I've prepared one asp page which queries an Access database and...
2
by: James | last post by:
Are there any classes in c# for this or am I left to use the com interface, which I'm not sure how. And if I have this will it work on a machine that someone has disabled scripting? Finally,...
13
by: joemac | last post by:
I'm just starting out with javascript and the following is not working as it should. The expected prompt dialog box never appears. <head> <script language="JavaScript"><!-- var name;...
7
by: Mantorok | last post by:
Is there any way, from ASP, ASP.Net or client-side scripting, to determine whether the browser has client-scripting disabled? Thanks Kev
1
by: Pablito | last post by:
Hi at all I have an input type=submit I want that in certain cases this button is visible but non active How can I do please? Regards Pab
1
by: kal | last post by:
Hi there I am hunting for way to turn off/disable active scripting especially javascript in my webbrowser control. I don't see any property to turn off script. I found entry in registry...
2
by: =?Utf-8?B?UmFq?= | last post by:
I am trying to develop a web page, when loaded it should prompt for installing ActiveX control using Internet Explorer information bar help but I am getting a prompt message "windows has blocked...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.