473,545 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Client side detection of JScript?

I'm playing around in my personal site trying to figure out a way to detect
if JavaScript is enabled client side, and get that info back to the server
without any manual intervention, or visibility on the clients end.

What I am doing now is:

Set a variable for - Scripting = "Unverified "

Send a blank page to the client with a hidden form field, and some
JavaScript which sets the hidden field to "Verified" and automatically
submits the form.

As soon as the form page is sent, I have other code which runs a timer loop
on the server for 3 seconds, then sends a page to the clients computer -
which page depends on whether or not variable Scripting now equals
"Unverified " or "Verified".(Hav en't played around with this time much, to
see just how much I actually need)

This, of course, would only have to be done the very first time the client
goes to my site, but still, I hate the thought of purposely putting a delay
on the loading of my page, and don't care for the idea of running a timer
loop on the server everytime someone accesses the page.

Granted - for my personal site, this is a very minor problem, as the number
of visitors is going to be pretty small - but still, there has got to be a
better way!

Anyone have any suggestions or opinions? (I am still a beginner at web
programming, and every thing I do is still a learning experience :)

Thanks
--

/ Sean the Mc /

"Opinions are like flatulence - everyone loves the sound of their own, but
anyone else's usually just stinks !"
-anonymous

Jul 22 '05 #1
1 1164
Sorry - posted this before I did enough testing - I have now realized that
it wasn't a very smart way to do this, and wasn't working properly anyway. I
have since figured out a way to do what I was trying.

--

/ Sean the Mc /

"Opinions are like flatulence - everyone loves the sound of their own, but
anyone else's usually just stinks !"
-anonymous
"What-a-Tool" <Di************ *************@I HateSpam.Com> wrote in message
news:46_Td.2747 0$SF.24688@lake read08...
I'm playing around in my personal site trying to figure out a way to
detect if JavaScript is enabled client side, and get that info back to the
server without any manual intervention, or visibility on the clients end.

What I am doing now is:

Set a variable for - Scripting = "Unverified "

Send a blank page to the client with a hidden form field, and some
JavaScript which sets the hidden field to "Verified" and automatically
submits the form.

As soon as the form page is sent, I have other code which runs a timer
loop on the server for 3 seconds, then sends a page to the clients
computer - which page depends on whether or not variable Scripting now
equals "Unverified " or "Verified".(Hav en't played around with this time
much, to see just how much I actually need)

This, of course, would only have to be done the very first time the client
goes to my site, but still, I hate the thought of purposely putting a
delay on the loading of my page, and don't care for the idea of running a
timer loop on the server everytime someone accesses the page.

Granted - for my personal site, this is a very minor problem, as the
number of visitors is going to be pretty small - but still, there has got
to be a better way!

Anyone have any suggestions or opinions? (I am still a beginner at web
programming, and every thing I do is still a learning experience :)

Thanks
--

/ Sean the Mc /

"Opinions are like flatulence - everyone loves the sound of their own, but
anyone else's usually just stinks !"
-anonymous

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1491
by: middletree | last post by:
I know this isn't the right forum, but this is driving me crazy, and I don't think I'm very off, probably one little thing is keeping me from being successful. I'd like to have two radio buttons, and the first one will be selected by default when the page loads. When it is selected, the two checkboxes below the second radio button should be...
3
2695
by: Rationalman | last post by:
I'm new to ASP, and need to do something that should be straightforward. I want to access the database in my vbscript function on the serverside, when someone clicks a button on the cient side. Originally in my local environment it worked, as I was using createobject for adodb (access database) in the docalc function. However, on the...
2
2269
by: Stephanie Stowe | last post by:
Hi. I have never worked on a project that requires IE. So I have done the vast majority of my work server side, delivering cross-browser compliant HTML to the client. I am working on a bug fix to a system that is a munch of ASP, ASP.NET with hard-core client side JScript, VBScript (client-side) and ActiveX controls. The problem in question...
1
1204
by: Asha | last post by:
greetings, i want to populate a datagrid with data from the db and this requires a post back and code behind do its job. after the datagrid is being populated, i want the client side to execute some script based on the newly populated datagrid. does anyone know how to implement this? what i want is to execute the code behind 1st thenonly...
3
1590
by: Larry David | last post by:
Hi, I'm just trying to wrap my mind around the ASP.NET model. Let me walk you through a trivial scenario: Let's say I have a form containing a text box where the user enters his name. It also contains a button, labeled "Process Now!" My goal is to examine the user's name and upload it into a database. Since all of the elements (the...
3
1748
by: Simon Brooke | last post by:
I've been doing XSL transforms, converting XML to HTML, server side since 2000. In those days, clients which could do the transformation client side didn't exist, so whether to transform client-side or server-side wasn't an issue. Recently I've been overhauling the code in order to pass transform to the client wherever possible, and I've...
1
2420
by: Daves | last post by:
Sorry folks but I will be reposting this question from 6/5 until someone gives me an answer - the question is very easy and so ought the answer to be. I really need the answer! ------- I'm sorry for reposting but I've already googled for hours and I see others have asked about this here without getting replies, this is starting to look...
5
13106
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called this kind of script "Server Side Java Script". I am in confusion because according to lots of web developer Java Script is a client side scripting...
5
3059
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... I've got a .Net client to a soap service that works for the most part, but there are a couple of things I'd like to improve: 1) the first request to the client wrapper always takes 12-15 seconds even though the web server shows < a half second spent on the request. What takes so much time for the client wrapper to warm up? All...
0
7479
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7411
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...
0
7669
Oralloy
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. ...
0
7926
jinu1996
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...
1
7439
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5987
agi2029
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...
1
5343
isladogs
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...
0
4962
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.