Solved

Javascript version 1.8

Posted on 2013-06-24
6
324 Views
Last Modified: 2013-07-05
Hello,
Is it possible to identify what version the javascript is being programmed by looking at the web page source code?  I would think that knowing of a certain construct used in version 1.8 and that construct being used on that web page, that one could determine what version was being used.
Is there an easier way?

Also,
How much information can be gather from a statement like this;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

I see that the DTD is xhtml, but is there more?
0
Comment
Question by:chima
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Expert Comment

by:Manuel Marienne-Duchêne
ID: 39273890
may be you want to talk Jquery a librairy for javascript :

http://jquery.com/
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 125 total points
ID: 39273909
You can see the version of the jQuery library in the source code of a page.  But javascript itself is part of the browser and is not generally available separately and neither is the version of it.  Current versions of javascript in browsers are based on ECMAscript.  More info here: https://en.wikipedia.org/wiki/ECMAScript
0
 
LVL 57

Assisted Solution

by:Julian Hansen
Julian Hansen earned 75 total points
ID: 39273916
I am assuming you mean JQuery not Javascript

You can check the version like so
var ver = $().jquery;
alert (ver);

Open in new window

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 35

Assisted Solution

by:Robert Schutt
Robert Schutt earned 150 total points
ID: 39274071
Assuming you do mean javascript, seems the way to do it is to include the version in the script tag so it's clear for people (and browsers), as shown here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.8 

I'm not sure what is supposed to happen when a browser doesn't support the new version, probably ignore the entire script block.
0
 
LVL 9

Accepted Solution

by:
Sar1973 earned 150 total points
ID: 39274274
Are you looking for navigator properties? See http://www.w3schools.com/js/tryit.asp?filename=try_nav_all
0
 
LVL 57

Assisted Solution

by:Julian Hansen
Julian Hansen earned 75 total points
ID: 39274420
Having re-read your question
s it possible to identify what version the javascript is being programmed by looking at the web page source code?
Are you asking what version the author decided to use or what version is supported by the browser?
From the rest of your question it seems you are trying to work out something about the page and how it was developed.

Maybe tell us what it is you are trying to do - why you need this information - and we might be better able to help you.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question