开发者

Bought code worked on JQuery 1.3.2 but not anymore on 1.5 What should I do?

About 6 months ago I bought a gallery photo popup code. It came with jQuery 1.3.2

It works fine with jQuery 1.4.1 too, but anything after that, at the moment of opening the photo, it does go into fade dark but does not open the big pho开发者_运维知识库to. I can edit a bit Javascript here or there but am not able to write code let alone fix this.

My motivation for using JQuery 1.5 / 1.5.1 is that everything else works much faster with these new builds! I really would prefer to update to these version as opposed to the 1.3.2 that I bought.

I asked the original author but he has other things to do than custom update code for my request. Since I'm not here to complain, but to solve my issue, any help would be very appreciated.

Question. Would it be legal if I put the full Javascript contents temporarily in here so that my bought code would work again? After its solved I could remove the portions that were not causing the issue, that way this question and its answer are to the point and might help others using the same or similar lightbox gallery.


I... Without seeing the code (and I don't know anything about legality, I'll leave that to someone else), I don't think there's much we can do to help you.

But, luckily jQuery has a list of which functions changed when moving between major versions. I hope this may be of some help to you:

  • http://api.jquery.com/category/version/1.4/
  • http://api.jquery.com/category/version/1.5/

You can probably safely skip all the "new in x!" stuff, and concentrate on changes.

The most likely culprit I can think of is the change in jQuery.param from version 1.3.x to 1.4

Look for jQuery.ajaxSettings.traditional on this page:

  • http://jquery14.com/day-01/jquery-14
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜