购买的代码可以在 JQuery 1.3.2 上运行,但在 1.5 上不再可以运行,我该怎么办?

发布于 2024-10-21 02:41:04 字数 480 浏览 7 评论 0原文

大约 6 个月前,我购买了一个图库照片弹出代码。它附带了 jQuery 1.3.2

它也可以与 jQuery 1.4.1 一起正常工作,但是之后的任何操作,在打开照片的那一刻,它确实会进入淡暗状态,但不会打开大照片。我可以在这里或那里编辑一些 JavaScript,但无法编写代码,更不用说解决这个问题了。

我使用 JQuery 1.5 / 1.5.1 的动机是,使用这些新版本,其他一切都会运行得更快!我真的更愿意更新到这些版本,而不是我购买的 1.3.2。

我问了原作者,但他除了满足我的请求自定义更新代码之外还有其他事情要做。由于我不是来抱怨的,而是为了解决我的问题,所以我们将非常感谢任何帮助。

问题。如果我将完整的 Javascript 内容暂时放在这里以便我购买的代码可以再次运行,这是否合法?解决后,我可以删除不会导致问题的部分,这样这个问题及其答案就切中要点,可能会帮助其他人使用相同或类似的灯箱画廊。

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 photo. 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痴情换悲伤 2024-10-28 02:41:04

我...如果没有看到代码(我对合法性一无所知,我会将其留给其他人),我认为我们无法为您提供太多帮助。

但是,幸运的是 jQuery 有一个列表,其中列出了在主要版本之间移动时哪些功能发生了变化。我希望这对您有帮助:

您也许可以安全地跳过所有“x 中的新功能!”的事情,并专注于改变。

我能想到的最有可能的罪魁祸首是 jQuery.param 从版本 1.3.x 到 1.4 的更改

在此页面上查找 jQuery.ajaxSettings.traditional:

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:

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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文