I have the following questions to ask you since I have been assigned to work on a C# web form application that uses JQuery and I have not worked with JQuery before:
1. I have heard that jquery version 1 and version 2 is not supported any longer. Due to that fact, can you tell me what to look for in the jqery script tags to know that version I am working with? Also can you tell what the script tag looks for if version
1 or version 2 of jquery are used?
2. Is there a planned date for version 3 of jquery not to be used in the future? If so, can you tell me what that date would be?
I am asking these question since I want to determine if I need someone that knows jquery to work on this application.
1. I have heard that jquery version 1 and version 2 is not supported any longer. Due to that fact, can you tell me what to look for in the jqery script tags to know that version I am working with? Also can you tell what the script tag looks for if version 1
or version 2 of jquery are used?
Read the Jquery support documentation. That's what the JQuery documentation is for and a waste of time to copy and paste the same information here.
2. Is there a planned date for version 3 of jquery not to be used in the future? If so, can you tell me what that date would be?
Again, see the jQuery support documentation for information on JQuery.
peggy_girl
I am asking these question since I want to determine if I need someone that knows jquery to work on this application.
It is a reasonable assumption that if the application relies on JQuery, developers working in the source should have jQuery experience. Otherwise, there is going to be a bit of a learning curve when the developer must interface with jQuery.
the 1.* support IE6+. 1.11 has most browser support.
the 2.* is compatible with 1.10+ (same public api), but drops support of <ie 9. this makes a faster and smaller library.
the 3.* is only compatible with html 5 browsers (ie 9+), and has breaking changes with 1.*/2.* api.
if you need to support IE6, then jquery 1.* is your only choice. if you only need IE9+ support, then you can pick jquery 3, but it has api changes, and if you use any plugins, they must be version 3 compatible.
note: you may be lucky and the version of jquery is included in the file name, but if you have webforms I'll bet its just jquery.js. you will need to inspect the source to get the version. I would also guess that it old like 1.6 and you will need to update
the code just to get current on 1.* branch.
According to your description, as far as I know, the meaning of not support is not maintain or add new function and property, but still could use.
if you worry the jquery version 1 and jquery version 2 is not support, please use the latest version jquery. If you want to use the specify property or the specify function, please check the jquery support document(W3C or jQuery official document).
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
check that you are not including jquery twice, as specified above.
1.3.2 is a very old but stable version of jquery. (feb 2009). the main issue which such an old version, is the at 1.9 (feb 2013) the api changed. this means you must be sure to use old versions of any jquery plugin you use. I'd expect more issues with jQuery-UI
1.7.2 (feb 2009), which has always had more issues.
browsers and javascript are pretty backwards compatible. so there is no immediate need to upgrade to a more current version. if you do, you will need to update all the plugins, and maybe some of your code.
you can take if it ain't broke don't fix approach, as you are really out of date and upgrading will be a fair amount of work (especially for someone who does not understand the libraries). I suspect you are also on an old version of webforms, but even the
current version hasn't been updated for a couple years (april 2014).
So you are basically saying that the jquery that is used is old and I can keep using it without a problem, correct? If I keep using the old jquery, would there be something that I would need to aware of that would make the application possibly stop working?
Like how if some old jquery would not be supported? Would I need to keep looking at the jquery web site to determine what would no longer work?
I am asking these questions since this is an application that was written using visual studio 2010 and this is a major application that the company uses every day. I would not want the application to just stop working some day.
Do you think that I would need to tell my company, that the application should be upgraded and/or rewritten so that more current jquery libraries and logic would need to be written? If so, what would I tell them the reasons for this would be?
there is no guarantee that a browser update will not break your code. You should test your application with each new release. if you have an issue, you will need to debug and fix it yourself (there are no patches for such old code).
its usually beneficial to keep applications update to date, but its not uncommon to run as long as possible without an update.
Member
70 Points
129 Posts
jquery version #3
Nov 06, 2017 03:55 PM|peggy_girl|LINK
I have the following questions to ask you since I have been assigned to work on a C# web form application that uses JQuery and I have not worked with JQuery before:
1. I have heard that jquery version 1 and version 2 is not supported any longer. Due to that fact, can you tell me what to look for in the jqery script tags to know that version I am working with? Also can you tell what the script tag looks for if version 1 or version 2 of jquery are used?
2. Is there a planned date for version 3 of jquery not to be used in the future? If so, can you tell me what that date would be?
I am asking these question since I want to determine if I need someone that knows jquery to work on this application.
Thanks for your answers!
All-Star
37111 Points
14979 Posts
Re: jquery version #3
Nov 06, 2017 04:27 PM|mgebhard|LINK
Read the Jquery support documentation. That's what the JQuery documentation is for and a waste of time to copy and paste the same information here.
https://jquery.com/download/
Again, see the jQuery support documentation for information on JQuery.
It is a reasonable assumption that if the application relies on JQuery, developers working in the source should have jQuery experience. Otherwise, there is going to be a bit of a learning curve when the developer must interface with jQuery.
All-Star
50844 Points
12086 Posts
Re: jquery version #3
Nov 06, 2017 09:28 PM|bruce (sqlwork.com)|LINK
jquery versions are about browser support.
the 1.* support IE6+. 1.11 has most browser support.
the 2.* is compatible with 1.10+ (same public api), but drops support of <ie 9. this makes a faster and smaller library.
the 3.* is only compatible with html 5 browsers (ie 9+), and has breaking changes with 1.*/2.* api.
if you need to support IE6, then jquery 1.* is your only choice. if you only need IE9+ support, then you can pick jquery 3, but it has api changes, and if you use any plugins, they must be version 3 compatible.
note: you may be lucky and the version of jquery is included in the file name, but if you have webforms I'll bet its just jquery.js. you will need to inspect the source to get the version. I would also guess that it old like 1.6 and you will need to update the code just to get current on 1.* branch.
Contributor
6680 Points
2715 Posts
Re: jquery version #3
Nov 07, 2017 03:04 AM|Eric Du|LINK
Hi peggy_girl,
According to your description, as far as I know, the meaning of not support is not maintain or add new function and property, but still could use.
if you worry the jquery version 1 and jquery version 2 is not support, please use the latest version jquery. If you want to use the specify property or the specify function, please check the jquery support document(W3C or jQuery official document).
https://www.w3schools.com/jquery/jquery_get_started.asp
About the end date about the jquery version 3 not support, I think you could get a suitable solution from the jquery support forum:
jQuery Forums:
https://forum.jquery.com/
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
70 Points
129 Posts
Re: jquery version #3
Nov 07, 2017 10:05 PM|peggy_girl|LINK
When I look at the web form application, I see the following versions (references) of jquery that is being used:
<script src="../scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="../scripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
<script src="../scripts/jquery-1.3.2.js" type="text/javascript"></script>
<script src="../scripts/site.js" type="text/javascript"></script>
<script src="../scripts/json2.js" type="text/javascript"></script>
Query UI Droppable and other objects: 1.7.2 jQuery JavaScript Library v1.3.2 jQuery validation plug-in 1.6 jquery-ui-1.7.2.custom.css
Thus to me, all the links listed above are version #1 of jquery correct? If not, what version is being used?
When I run the application in Microsoft Edge or the current version of Frirefox browsers, the application runs successfully.
Due to that fact, do I need to worry that the web form application may stop executing at some point? If so, what do you recommend that I do?
If not, should I go ahead and change the references to use a modern version of jquery in case there is actually a problem?
All-Star
50844 Points
12086 Posts
Re: jquery version #3
Nov 08, 2017 01:18 AM|bruce (sqlwork.com)|LINK
check that you are not including jquery twice, as specified above.
1.3.2 is a very old but stable version of jquery. (feb 2009). the main issue which such an old version, is the at 1.9 (feb 2013) the api changed. this means you must be sure to use old versions of any jquery plugin you use. I'd expect more issues with jQuery-UI 1.7.2 (feb 2009), which has always had more issues.
browsers and javascript are pretty backwards compatible. so there is no immediate need to upgrade to a more current version. if you do, you will need to update all the plugins, and maybe some of your code.
you can take if it ain't broke don't fix approach, as you are really out of date and upgrading will be a fair amount of work (especially for someone who does not understand the libraries). I suspect you are also on an old version of webforms, but even the current version hasn't been updated for a couple years (april 2014).
Member
70 Points
129 Posts
Re: jquery version #3
Nov 08, 2017 02:48 PM|peggy_girl|LINK
So you are basically saying that the jquery that is used is old and I can keep using it without a problem, correct? If I keep using the old jquery, would there be something that I would need to aware of that would make the application possibly stop working? Like how if some old jquery would not be supported? Would I need to keep looking at the jquery web site to determine what would no longer work?
I am asking these questions since this is an application that was written using visual studio 2010 and this is a major application that the company uses every day. I would not want the application to just stop working some day.
Do you think that I would need to tell my company, that the application should be upgraded and/or rewritten so that more current jquery libraries and logic would need to be written? If so, what would I tell them the reasons for this would be?
Thanks very much!
All-Star
50844 Points
12086 Posts
Re: jquery version #3
Nov 08, 2017 04:18 PM|bruce (sqlwork.com)|LINK
there is no guarantee that a browser update will not break your code. You should test your application with each new release. if you have an issue, you will need to debug and fix it yourself (there are no patches for such old code).
its usually beneficial to keep applications update to date, but its not uncommon to run as long as possible without an update.