Move this topic
converting jquery 1.3 to current 3.0 version
in Getting Started
•
5 months ago
I have a VB.net 2010 web form application that currently uses the following versions of jquery:
<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>
I see from the jquery forum, that I can use converters from the following download location:
https://jquery.com/download/ to migrate jquery to the current version of jquery that is 3.0.
However from the website, I cannot if I can start the conversion process starting with jquery 1.3
Thus can you tell me if I can convert the jquery 1.3 version to 3.0 version of jquery or not?
I am asking this question since it looks like I may need several conversion steps to convert from version 1.3 to 3.0
If so, can you tell me what the process would be?
1
Replies(15)
Re: converting jquery 1.3 to current 3.0 version
5 months ago
The current version is 3.2.1. You can read about all the changes in Official jQuery Blog | New Wave Javascript.
You have a lot of reading to do. 1.3.2 is ancient and lots of things have changed.
Since you seem to use jQuery UI also, you can read jQuery UI Blog | All news about jQuery UI.
I would not call it "converting", but more like "rewriting". Good luck.
If you have particular questions, please ask. Some of us were around when 1.3.2 was current.
JΛ̊KE
Leave a comment on jakecigar's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
Thank you very much for your answer!
However, I have the following comments/items to mention to you:
1. You mentioned, "I would not call it "converting", but more like "rewriting". ". Basically I was assuming that the 'converter' code would change the code to make it more current. However based upon your statement, it means that I would need to change the jquery code or at least part of the code.
Thus can you tell me if the converter will change all the old code and/or would I need to do some of the code changing? I am asking this question since I have never changed/written any jquery code. I may need my company to bring in some help. Can you advise?
2. So you are basically saying that I would need to do a lot of coding on my own? The converter will not change the code for me?
3. What would happen if I never changed the code? Would the application break at some point in the future? Is there anything I should be aware of that could make the application break?
4. You mentioned the following: "You have a lot of reading to do. 1.3.2 is ancient and lots of things have changed.". Where would I start reading to see what you are referring to?
5. Would I need to convert from version 1.3.2 to a version 2? I would then need to convert from version 2 to version 3?
6. Basically why would I need to do all this converting?
Leave a comment on diane stein's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
There are no magic converters. The jQuery Migrate Plugins are meant to help you patch when you are using a method or two that have been removed/changed.
If you do not change code, and just upgraded to the latest versions, some of it will fail, and other parts will continue to work. I haven’t see what you do with jQuery or how you did it.
Each release has some changes. Some are BIG and others tiny.
There is no longer a live method (change to delegated on).A blank JSON response is now invalid.Lots more is in the blog.
You should read through the blogs from the oldest to the current entries. Taking note of what has changed.
You could go to version 1.12.4, then go to 3.2.1, assuming you don’t need to support IE7 and below
JΛ̊KE
Re: Re: converting jquery 1.3 to current 3.0 version
5 months ago
Why do you need to do this? Your users are not running same browsers that were created when jQuery 1.3.2 was created. Many of the patches and enhancement were because the browsers have changed.
I keep all my production sites at semi-current versions of jQuery.
JΛ̊KE
Leave a comment on jakecigar's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
Basically for me to decide if I need to change the jquery code, I would like to know if there are jquery code syntax that is obsolete and or deprecated?
I would compare that question to javascript in some browsers. Basically there are some javascript commands that are no longer valid in some browsers. There are also some javascript commands that are depcrecated and are planned to be not valid at some date in the future.
Thus are there some jquery commands that are no longer valid? Are there jqery code no longer not valid in certain browsers and/or not valid in any browser? if so, what is this jquery code?
Thus are there some jquery commands that are planned to no longer be valid at some point in the future? Are there jqery cod that are planned to no longer be valid at some point in the future in certain browsers and/or not valid in any browser? if so, what is this jquery code?
Leave a comment on diane stein's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
I mentioned the top two. Deprecated and removed functions abound. The entire list is found in the blog.
Also there are a lot of deprecated and no-longer-supported javaScript syntaxes.
You have to read the blog to know it all.
JΛ̊KE
Leave a comment on jakecigar's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
So you are basically saying that if I keep the application as it is, I stand a chance that it would 'break' at some point, correct? If the application breaks in one browser, should I try a different browser and see if that works?
Or if the jquery does not work in one browser it will not work in any browser, correct?
Leave a comment on diane stein's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
Yes. It might break. It could break at different times in different browsers.
Old versions of jQuery worked with whatever was current at the time.
Again, I haven’t seen your code. You may just have simple click code and simple Ajax, which would work in just about any version of jQuery.
JΛ̊KE
Leave a comment on jakecigar's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
If your jQuery is this old, then probably other scripts and plugins that you use might be equally old. Many are likely to break.
It can be a BIG JOB to bring a site up to date if it has not been touched in several years! The browsers keeps moving forward, and nobody can guess how browsers might break existing code in the future.
And jQuery and jQuery UI will have changed as well, potentially breaking your own code, and code in old scripts and plugins.
If it's only an internal site, perhaps you can settle on a legacy browser that works.
Leave a comment on watusiware's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
You are correct that this is an internal site. The website works on the current versions of Firefox and Microsoft Edge. So you are saying that if I tell me company that they have to settle on the current versions of Firefox and Microsoft edge for a long time to come, then I would probably not need to change any jquery correct?
Leave a comment on diane stein's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
If 1.3 works on Edge. You aren’t doing very much with jQuery. If that is true, your code should keep working a very long time. And, upgrading should be very easy.
JΛ̊KE
Leave a comment on jakecigar's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
I know that the application has a lot of jquery code in it since it does about everything I think that is possible with jquery. I am sure there is a lot of the jquery code that exists but is not used.
Thus how can I tell what jquery code is used versus all that exists but is not used? Basically I do not want to convert code that is not used.
Do you think that I can use the converter jquery link for version 1.0 version first and then follow the convert for the newer 3.0 version of jquery? Should I just start with the jquery code for version 3.0 ?
Leave a comment on diane stein's reply
Re: converting jquery 1.3 to current 3.0 version
5 months ago
Go for it. Try 3.2.1 alone. If you have many errors or things don’t work. Try adding the latest migrate plugin.
There is no converter. Just a migrate plugin.
JΛ̊KE
Leave a comment on jakecigar's reply
Re: converting jquery 1.3 to current 3.0 version
4 months ago
So you are basically saying that there is no converter. I just need to use the plugin reference and see what errors are located. I just use the plugin to tell me what code needs to change correct?
Is there any way to tell what sections of JQuery code is not really used? If so, can you tell how to know what sections of code is not used?
Also when the JQuery code has been brought up to date, what exact reference should I use to say I am using the current version of jquery? What is the most current Jquery tag?
Leave a comment on diane stein's reply
Re: converting jquery 1.3 to current 3.0 version
4 months ago
I wrote that 2 weeks ago. I sent you a link to the blog where they discuss what the migrate plugins do.
No. There is no way to tell what sections of jQuery is not being used. Other than reading your own code.
The current version is still 3.2.1, you can download it or use the CDN version on the http://code.jquery.com site.
JΛ̊KE
PS
Stop asking the same questions over and over again. If you need to hire someone to do the upgrade/fix, do it.
Leave a comment on jakecigar's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic
Reply to diane stein's question
{"z656849374":[14737000007447084,14737000007451045,14737000007454003,14737000007465063,14737000007477001,14737000007476425,14737000007475287],"z7664639":[14737000007469015],"z2950240":[14737000007447095,14737000007447125,14737000007447127,14737000007458029,14737000007465065,14737000007476039,14737000007476429,14737000007478059]}
Statistics
- 15 Replies
- 1200 Views
- 1 Followers