Find Out If Visitor Has Turned Off Or Not?
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
ADVERTISEMENT
Aug 29, 2011
I have recently started a website which tells visitor's IP address, location and others details. I want to add some more functions to it. I found no way to detect visitors Internet Service Provider (ISP) using PHP. I would like to know if there is any way to do so in Javascript.[url]...
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
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
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 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
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
May 27, 2009
<div>
Is it possible find a node backwards instead of forwards.
I would like to do (remember find_reverse does not exist)
View 7 Replies
View Related
Jun 8, 2010
I just wanted to know if javascript could possibly see where a visitor is heading to on the way out of a web site? Trying to find a more convenient way for people to enter URLs for bookmarks on my start page.
View 2 Replies
View Related
May 30, 2011
First off, I'm working with tumblr.com which allows Javascript, but not PHP embedded in the HTML pages. It strips them out. I want to be able to get the country code (us, ca, uk, etc.) when a visitor visits my webpage so I can provide links for their locale. I'm having a very hard time finding correct information with examples to get this working. There was some .js libraries out there, but they don't work properly and say I'm in CA when I'm in US, like the jsapi from Google. Is there a way to execute a .php script which would output the country code of the visitor and be able to read/capture this result within the Javascript?
View 7 Replies
View Related
Nov 24, 2009
I want to control where my visitors are coming fromSo not visiting from google or their homepage etc etc. i want them to enter the site from one specific site.
View 1 Replies
View Related
Dec 5, 2005
I want to be able to know how many time a user will spend on a page so basically, I need to get an onload time and an on leave time
View 3 Replies
View Related
Sep 20, 2007
this is a simple script, that uses ajax that sends to the server the total amount of time (in seconds) that the visitor was reading or whatever.
var startime=(new Date()).getTime();window.onunload=function(){
var x=(window.ActiveXObject)?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest();
x.open("GET","count.php?t="+(((new Date()).getTime()-startime)/1000),true);x.send(null)}
that's the javascript...
<?php $f=fopen("visitLength.txt", 'a');fwrite($f, $_REQUEST["t"].";
");fclose($f);?>
View 3 Replies
View Related
May 19, 2005
I have seen many visitor tracking sites that log a visitor's geographical location and the ISP they are connecting through, among other useful information. I am posting this in the PHP forums and Javascript forums as thats what most trackers use (StatCounter in particular).
View 1 Replies
View Related
Dec 9, 2011
I've been trying to figure out how to detect if a visitor is using a proxy. If seen php code similar to this again and again (just ignore the code since it doesn't work for anonymous proxy)
Code:
$proxy_headers = array(
'HTTP_VIA',
'HTTP_X_FORWARDED_FOR',[code]...
But as I mentioned this never works for anonymous proxies.However,every anonymous proxy I've tried puts THEIR domain somewhere in the url.Why can't we just detect anonymous proxy with Javascript by just getting
document.location.href
and making sure that the url is what it's supposed to be.This seems way too easy to be reliable.
View 7 Replies
View Related
Dec 6, 2007
I want in my website visitor counter list showing.
View 4 Replies
View Related
Apr 25, 2006
I build a website who can monitor other website's visitors and build
some reports.
I use PHP/MySQL and Javascript.
I am stucked at the point when I have to get the page where the visitor
came from and also the keywords, if the visit was referred by a search
engine.
The second task I kinda have it done IF i will get the referrer string.
I get always 'undefined' or current website's address.
I use a .js file to get the screen resolutions, color, cpu etc.
I have tested it both online and offline.
View 2 Replies
View Related