Statistics Available On How Many Have Javascript Turned Off?
Oct 18, 2004
Can anyone point me to statistics on how many people don't have javascript .. or have javascript turned off? I'm about to purchase a template to re-design a site. I know javascript can do some neat things, but I'd like to keep the site accessible to as many as possible .. and easy to maintain (it's a volunteer organization, which may pass the Web design responsibility around from time-to-time).
View 2 Replies
ADVERTISEMENT
Mar 15, 2003
I wondered if anyone knew of any statistics about how many people have Javascript enabled/disabled. Also, what sort of policies do IT departments have towards it. I know of at least two large organisations that have Flash disabled for instance.
View 2 Replies
View Related
Jul 20, 2005
I have a modest website that uses a lot of Javascript.
If anybody views the site and does not have Javascript enabled I want to
politely redirect them to another page, so I put this bit of code in my
<head> section :
<script type="text/javascript"
language="JavaScript">document.write("<!"+"--")</script>
<meta http-equiv="Refresh" content="0; URL=noscript.html">
<!--//-->
So far so good.
It appears to work, *and* it passes the the 'W3C MarkUp Validation Service'
test ( http://validator.w3.org/ ).
Now the bad news: Google doesn't index my site any more, presumably because
their crawler always gets redirected.
Does anybody have a solution to this dilema, please?
Redirecting to a 'with-script' page is not an option because my page is
linked-to by many other sites.
View 11 Replies
View Related
Jun 7, 2010
I want to make a statistics script for my website by javascript. I know that I can do it by this script:
<script type="text/javascript" src="[URL]"></script>
But I need to pass some parameters to stat.php for example I need pass the value of window.location.
View 1 Replies
View Related
May 3, 2011
I've found a neat little single drop down for a link list. It works fine, but if I turn JS off in my browser the links will not show. I do have a 100 liner that will show links when JS is off, but I'd rather adapt this to do it.
How do you make it so that the list will show regardless of whether JS is on of off. I want the drop if on, which is why I use it.
Code:
<html>
<head>
<title>Drop div</title>
<style type="text/css">
<!--
#ardd{width:180px;}
[Code]...
View 11 Replies
View Related
Jul 20, 2005
The following script raises the subject alarm.
<p><a href="javascript:void();"
onClick="mailto:sgagnon@cyberus.ca?Subject=BRITTANY WORKSHO P">
<img align=left src="britany.gif" width="231" height="40" border=0
alt="BRITTANY WORKSHOP
with Sylvio Gagnon" style="text-indent: .2em;
background:ffffff; color:bb5500;">
</a></p>
View 10 Replies
View Related
Dec 16, 2009
I am trying to make an order form I am working on accessible for users who have javascript turned off in their browser, and to do this I would like to hide a div if JS is disabled.
Searching the Web has led me to think that styling the div to not display is the way forward and then using JS to display it. It is the JS bit I am struggling with! The div in question is a set of radio buttons to allow a purchaser to choose how many gift memberships they want to buy:
<div id="giftmember-buttons" style="display:none";>
<h2 class="threepeaksform">How many gift memberships do you wish to purchase?</h2>
<fieldset class="threepeaksform">
<legend>Please select the number of people you are buying a gift membership for using the buttons below.</legend>
<div class="generalcontactform-group">
[Code]...
View 3 Replies
View Related
Sep 4, 2011
I am a student and new to JavaScript, my problem is I am willing to do JavaScript form validation for emails , text etc. But on one of the forum I found out JS is not a very good way to do validation as JavaScript can be easily turned off by end-user and we shld always do server side validation also, but due to some concerns I want to stick to JavaScript (client side) validation.
My scenario is somewhat like Ive a form and a button in it which on being clicked calls a JavaScript function that will validate the fields and then submit the form through form.submit(); So my question is if JavaScript is turned off on end user then with validation the end user will also be not able to submit the form as the form is being submitted in a JavaScript function (which is turned off)? If this is thn cool.
But is it somehow possible to hack this procedure, and one can skip the JavaScript validation but can still submit the form? My primary concern is not to let pass any malicious or improper data (sql-injections, poorly formatted strings etc. to the server db)
View 2 Replies
View Related
Oct 30, 2011
My page has a form which has some sections that do not show unless needed, but if JS is turned off then these section will never show, so looking for a way to test if it is on or not and if not allow the page to display everything that would normally be hidden unless needed.
View 4 Replies
View Related
Mar 10, 2005
i have a form that has both front end and backend validation (php)
basically i got the code off the net, and it needs the submit button to be of type "button" rather than "submit"
and obviously the form doesn't submit if javascript is turned off
i'm not a javascript expert, on the button it has onClick="formvalidate())"
and in the javascript it has
if form is ok form.submit() or something to that effect
now is it possible to use a submit type so that if javascript is turned off, the form will still submit
but won't submit if javascript is on and the form is invalid
does it have something to do with the onSubmit attribute for the form
currently there is none
because we have the backend validation it doesn't really matter if javascript is turned off but it does matter if the form can't even be submitted at all
View 4 Replies
View Related
Oct 29, 2002
Does any one know of a way to redirect someone with JavaScript disables to another page (or would we need a little JS to accomplish this?)
I'm putting together a site that uses a horizontal javascript drop down navbar, and thought it would be coolness to redirect those that either cannot read js, or have js turned off to my site map page.
View 5 Replies
View Related
Sep 4, 2011
I am a student and new to JavaScript, my problem is I am willing to do JavaScript form validation for emails , text etc.But on one of the forum I found out JS is not a very good way to do validation as JavaScript can be easily turned off by end-user and we shld always do server side validation also, but due to some concerns I want to stick to JavaScript (client side) validation.My scenario is somewhat like Ive a form and a button in it which on being clicked calls a JavaScript function that will validate the fields and then submit the form through form.submit();So my question is if JavaScript is turned off on end user then with validation the end user will also be not able to submit the form as the form is being submitted in a JavaScript function (which is turned off)? If this is thn cool.But is it somehow possible to hack this procedure, and one can skip the JavaScript validation but can still submit the form?
View 1 Replies
View Related
Dec 11, 2009
I'm trying to make my javascript linked "print" button NOT appear in browsers with js disabled? I'm a total js noob. Here's my code:
<a href="javascript:window.print()"><img src="images/PrintButton.png"></a>
View 9 Replies
View Related
Jul 4, 2011
I have a form that only shows the submit (update) buttons if the value select field beside it is changed. But what is someone has JS disabled, how can I enable them?
<select title="3553" name="3553" onchange="JavaScript:document.cart.add3553.disabled=false;">
View 8 Replies
View Related
Nov 29, 2011
I'm learning javascript. The portion I'm learning right now is how to write a short page that alerts the user that their javascript is not enabled. Then , when they enable it, javascript code written into this same page auto-redirects the user to a another page that requires javascript. I run firefox with the noscript add on. I'm learning to write code that first asks the user to enable javascript. When they do, redirect to mypage.html
The code below renders "Please enable javascript" when javascript is turned off - as it should. The autoredirect happens when javascript is turned on - as it should. The problem is the absolute url of the "mypage.html" file in the code is also rendered as a blue link when javascript is off. I don't want that rendering when off. I do use html comment tags as you can see in the code below.
[Code]...
View 15 Replies
View Related
Mar 20, 2006
I receive the following error from the browser, when I want to run the site I developed. Conditional compilation is turned off.
View 6 Replies
View Related
Apr 25, 2011
I am using a checkbox to turn on and off some labels on a line on a google map, which is working fine if the line is already drawn, using this function:
function distboxclick(labelsbox) {
if (labelsbox.checked) {
for (var i=0; i<distmarkers.length; i++) {
if (distmarkers[i].mLabel != null) distmarkers[i].mLabel.show();
}
} else {
[Code]....
but the thing is that I want the labels to be turned off to begin with and switched on if the box is checked.
[Code]...
View 2 Replies
View Related
Jul 23, 2005
I'm working on some code and am running into brick walls. I'm trying
to write out Javascript with Javascript and I've read the clj Meta FAQ
and didn't see the answer, read many similar posts (with no luck
though), and searched through the IRT.ORG Faqs
(www.irt.org/script/script.htm).
The Javascript is designed to open an popup window and then inside that
window call another script which will resize that window. There may be
another way around this but the reason I tried this approach initially
was that I wanted to call the onload handler in the popup window to
resize the image only after the image had completely loaded. I've had
some code in the primary Javascript file (showimage.js) before that
works if the image has been cached but on the first load, it doesn't
resize properly which tells me it is probably because it is trying to
resize the window based on the image size but it isn't completely known
at that point. So I removed that code and tried placing the resizing
code in the second Javascript file (resizewindow.js). BTW I've tried
other code to open a popup image and automatically size it ie Q1443 at
irt.org but that doesn't do exactly what we need.
Even if there is another way to do this with one file, I still want to
figure out why this isn't working in case I run into it in the future.
I thought what I would need to do to use document.writeln to write
Javascript would be to escape any special characters and to break
apart the script tag ie
document.writeln('</SCRIPT>');
would become
document.writeln('</SCR' + 'IPT>');
I have a HTML page and 2 Javascript files. All files are in the same
directory and have permissions set correctly.
Here are the 3 files (keep in mind wordwrap has jacked up the
formatting):
index.html
----------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript1.1"
SRC="showimage.js">
</SCRIPT>
</head>
<body>
Click the house<BR>
<A ONCLICK="newWindow1('house1.jpg','Nice House')"><IMG
SRC="house1thumb.jpg"></A>
</body>
</html>
showimage.js
------------
function newWindow1(pic,sitename)
{
picWindow=window.open('','','width=25,height=25,sc rollbars=1,resizable=1');
picWindow.document.writeln('<html> <head>');
picWindow.document.writeln('<SCR' + 'IPT type="text/javascript"
LANGUAGE="JavaScript1.1" SRC="resizewindow.js"></SCR' + 'IPT>');
picWindow.document.writeln('</head>');
picWindow.document.writeln('<body onload="resizewindow();">');
picWindow.document.writeln('<img src=' + pic + '>');
picWindow.document.writeln('</body> </html>');
picWindow.document.close();
}
resizewindow.js
---------------
function resizewindow()
{
// Do resizing here.
// Right now this isn't being executed
alert("resizing window");
}
Can anyone provide some pointers as to why this javascript is failing?
I'm using IE6 on Win2k and when I click on the image to open the popup
window, it does open the window but it is white with no content and the
system immediately goes from about 4% CPU usage to 100% and
consistently stays there until I kill that window with the task
manager.
View 9 Replies
View Related
Jul 23, 2005
Attached is a simple HTML file that adds and delete rows. In the add
row function I set an attribute "onClick" this triggers the
testMessage() function. When I try this in Firefox it works just fine
however on IE it just refuses to work.
What is interseting is the ROW that already exists has a similar
'onClick' event which works when the page is loaded, but subsequent
"row" additions to the table to not work in IE. Code:
View 9 Replies
View Related
Feb 19, 2007
two possibilities or the attribute type of script:
text/javascript (the one i usually use) application/x-javascript
what are the differencies between both?
depends on the html content?
for example html 4.0.1 versus xhtml 1.1?
View 12 Replies
View Related
May 25, 2005
I'm getting errors in Firefox everytime I try to run this frame resize code, but it works fine in IE. I can't seem to figure out what the problem is with it.
The error is: Error: theFrame has no properties
Line: 8
The line that the javascript console is showing an error for is in italics.
code from page:
<html>
<head>
<script type="text/javascript">
var defaultCols="100px,*";
var hiddenCols="0px,*";
function ShowHideMenu(){
theFrame = document.getElementById("framed");
if(theFrame.cols == defaultCols) theFrame.cols=hiddenCols;
else theFrame.cols=defaultCols;
}
</script>
<frameset cols="100px,*" name="framed">
<frame src="lframe.htm" name="frameMenu">
<frame src="mframe.htm" name="content">
</frameset>
</head>
<body>
</body></html>
Come someone let me know what I'm doing wrong here?
View 2 Replies
View Related
Mar 30, 2006
I'm already past the basics of Javascript, and i need something that takes me to the other level and teaches me the new technologies and cool stuff (drag&drop, AJAX, OOP in javascript, maybe XUL...etc). So far i found these two books:
1. Sitepoint's "The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks".
2. Worx's "Professional JavaScript for Web Developers (Wrox Professional Guides)"
Both seems to cover very insteresting topics, but i can only buy one of them. So which one do you suggest?
and by the way, i've read the sample chapter 5 of Sitepoint's book, and it seems like the author(s) just put the solutions/codes there and let you figure them out on your own. Is this how the rest of the chapters are?
View 3 Replies
View Related
Jul 23, 2005
This is a question about defensive web browsing. Ocassionally I run into a page whose JavaScript does something that I find obnoxious. I would like to turn off JavaScript only for that page (instead of disabling it globally). It would be cool if there were some way to do this through a "bookmarkable" JavaScript snippet using the javascript: pseudoprotocol. Does anyone know any trick to do any of this?
View 2 Replies
View Related
May 26, 2006
I am looking for a method to extract the links embedded within the
Javascript in a web page: an ActiveX component, or example code in
C++/Pascal/etc. I am looking for a general solution, not one tailored
to a particular page/script.
Hopefully, the problem can be solved without recreating a complete
Javascript interpreter. Any ideas?
View 9 Replies
View Related
Oct 21, 2005
I have some javascript that I have written into the <body> section and it works great. But I would like to make it into a javascript function and define the function in the <head> section. Then in the <body> section write a small bit of javascript that would call the function() object. Code:
View 2 Replies
View Related
Jan 7, 2006
I would like to know how to write javascript such that, a part of it isnt considered as script, & rather as HTML. Code:
Ok, the layer div can be written using document.write. But, Google ad itself is a javascript isnt it. How can it be written into this? How does this work?
View 3 Replies
View Related