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

How Can I Determine Which Version of JS I'm Using

32
Hello,

I have a couple of JavaScript functions that use AJAX to dynamically lookup a geocode from Google Maps and display the accuracy to the user. I've had reports that this JavaScript breaks in their browser, but I have been unable to reproduce any of the errors. I've used several JavaScript validators and feel assured I have properly constructed JavaScript. It seems that their browser may not have a high enough version of JavaScript to support the features, but I don't know how to determine, easily, which version of JavaScript I'm using and, therefore, which version of JavaScript I need to require to visit the page.

Any help would be great!

Thanks,
Justin
Nov 13 '07 #1
3 2235
Dasty
101 Expert 100+
http://javascript.about.com/library/bljver.htm

But I bet your problems are not because of low javascript version, but because of how different browsers implement same functions. For that reason I am always testing my codes at least at:

FF, Opera, IE7 and IE6

Install all of them and test it (or ask users that have problems with your site what kind of browser / version) are they using. Because standards / validator results are one thing and reality is different one.
Nov 13 '07 #2
poe
32
Thanks for the reply. I'm creating a test page that users can hit when they call in with the problem so they can help diagnose it.

I'll post my results back if I find anything interesting.
Nov 13 '07 #3
acoder
16,027 Expert Mod 8TB
Instead of trying to determine the version of JavaScript, use object/feature detection everywhere, e.g. if you want to support a really old browser, you could put:
Expand|Select|Wrap|Line Numbers
  1. if (document.images) {
  2. // code dealing with document.images
so it degrades gracefully in old browsers and likewise for anything you use in your code.
Nov 14 '07 #4

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

Similar topics

4
by: lauren quantrell | last post by:
Is there a way to determine the user's version of MS Outlook from VBA code within MS Access 2K? thanks, lq
1
by: Jim | last post by:
Hi. I would like to validate the version string that I get from FileVersionInfo. Is there a way via the object model to do this? I am currently doing this: FileVersionInfo fileVersionInfo =...
2
by: Alexander | last post by:
I use same assembly in Application and in Web. How can i determine - assembly using in Application or in Web? (Some feautures i cant use in Web)
2
by: Leon Gorbaty [Bentley] | last post by:
Hi, We have some managed assemblies that are compiled with the /clr switch for some native code to load. These are currently compiled and linked against a pure .NET 1.0 environment. I have...
3
by: jaYPee | last post by:
is there a way to know if the form is edited or not after calling addnew? Me.BindingContext(DsStudentCourse1, "Students").AddNew() because i got an error after closing the form. because in my...
1
by: Ronald S. Cook | last post by:
What does one have to do to do to be able to install over an old version (.NET Win app) using a setup project (vs. having to do an uninstall first)? Thanks, Ron
8
by: rmorvay | last post by:
I need to know if there is a way to determine the amount of RAM that a person has on their workstation from a web application. We are using BrowserHawk to mine HTTP information but I also need to...
1
by: Leonid Lastovkin | last post by:
I would like to be able to find out which version of Microsoft Office is installed on the host computer. How can I implement this query in C#? I do not need the whole program, but a relevant code...
2
by: auditor.software | last post by:
Hi. I need to run a function from another database, using: Dim App as Access.Application Set App = CreateObject("C:\LibDB.mde") App.Run "MyFunc", ... I use Access2K database format, and I...
2
by: spk4u | last post by:
how to determine the OS version using javascript other than navigator.appversion??
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
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...
0
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...
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,...
0
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...

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.