473,398 Members | 2,380 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,398 software developers and data experts.

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".(Haven'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 1158
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*************************@IHateSpam.Com> wrote in message
news:46_Td.27470$SF.24688@lakeread08...
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".(Haven'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
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...
3
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....
2
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...
1
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...
3
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...
3
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...
1
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...
5
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.