[英]Cross-browser JS inconsistencies
I have a PHP script that allows image upload. 我有一个PHP脚本,可以上传图片。 I modified it slightly to load newly uploaded image into a modal window in order to allow manual crop, if needed.
我进行了一些修改,以将新上传的图像加载到模式窗口中,以便在需要时进行手动裁剪。
It seems I got it working in FireFox (all the way until actual crop). 看来我可以在FireFox中使用它(一直到实际裁剪为止)。 IE throws an error: "Object does not support this property or method" and Opera just chokes and does not know what to show...
IE抛出错误:“对象不支持此属性或方法”,Opera只是窒息而已,不知道显示什么。
I am out of ideas what is causing this. 我不知道是什么原因造成的。 Here's the page, click "Add New Scene" and submit some image to upload to view described behavior:
在此页面上,单击“添加新场景”,然后提交一些图像以上传以查看描述的行为:
Any insight will be highly appreciated. 任何见解将不胜感激。
UPDATE: decided to go with a different class. 更新:决定使用其他类。
javascript libraries are not properly loaded. javascript库未正确加载。
Check the view source that the jquery file is included. 检查视图源是否包含jquery文件。
Check the jquery version also. 还要检查jQuery版本。
Ok Now 现在可以
var addthis_config = {
ui_cobrand: "SlateCast.com",
ui_header_color: "#ffffff",
ui_header_background: "#cc0000",
services_compact: "aolmail, hotmail, live, typepad, ymail, google, squidoo, stumbleupon, delicious, reddit, googlebuzz, digg, linkedin, favorites, more",
services_exclude: "print",
data_track_clickback: true
}
This is your js . 这是你的js。 got it from your source only
仅从您的来源获得
semi colon missing or something !! 半冒号丢失或什么!
Check 校验
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.