简体   繁体   中英

Cross-browser JS inconsistencies

I have a PHP script that allows image upload. 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). IE throws an error: "Object does not support this property or method" and Opera just chokes and does not know what to show...

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.

Check the view source that the jquery file is included.

Check the jquery version also.

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 . got it from your source only

semi colon missing or something !!

Check

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM