Jquery-Ui 对话框仅在本地工作
我是 Jquery 新手,遇到了问题。我编写的 Jquery 代码只能在本地工作,一旦我将其上传到我的主机(godaddy.com),它就会停止工作。现在该网站还不能真正发挥作用,因为我太想简单化问题了。我正在使用 google API 来检索 Jquery 库。当我使用 $
符号快捷方式而不是“Jquery”时。打开对话框(dia)的函数运行,但跳过应打开对话框的部分。当我使用 Jquery 对象时,该函数被完全跳过,并且据我从错误中可以看出,从浏览器的角度来看,该函数不再存在。我正在开发的网站是一种实验,您可以在 www.mgeffects.com 找到它。当您单击“我在对话框中”div 标记时,它应该弹出对话框以及我在调试过程中放置的警报,但它什么也不做。现在它使用“JQuery”而不是 $
符号。
感谢我得到的任何帮助。(顺便说一下,忽略黑色 div 标签中出现的 PHP 错误。)
I'm new to Jquery and am running into a Problem. The Jquery code that I write only works Locally, as soon as i upload it to my host(godaddy.com) it stops working. Right now the website isn't really functional because i wanted too simplyfy the problem. I'm using google API to retrieve the Jquery library. When i use the $
sign shortcut instead of "Jquery." The function that opens the dialog box(dia) runs but skips over the part the should open the dialog. When i use the Jquery object the function is skipped over completely and as far as i can tell from the errors, the function no longer exists from the browsers point of view. The website I'm working on is kind of an experiment, you can find it at www.mgeffects.com. When you click on the I'm in a dialog
div tag it should popup the dialog as well as an alert i put in place as part of the debugging process, instead it does nothing. Right now its using "JQuery" instead of the $
sign.
Thanks for any help i get.(by the way ignore the PHP errors you get in the black div tag.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你做错了你的选择器:
这不是一个有效的用途:
使用这个代替:
另外你还包含了 jQuery 两次:
You are doing your selectors wrong:
this is not a valid use:
use this instead:
Also you are including jQuery twice: