1

我想从保管箱帐户获取文件并将其预览链接保存到我的数据库。此代码在 morzilla 中运行良好,但在 Internet explorer 中无法运行。所以请建议我:jqueryCOde:

<script type="text/javascript">    var jQuery182 = jQuery.noConflict(); </script>
<script type="text/javascript">

    jQuery182(function () {
        jQuery182("#db-chooser").live("DbxChooserSuccess", function (e) {

            var take = this.value;

            jQuery182(this).parent().find('.img').remove();
            jQuery182(this).parent().find("#hdField").val(take);
            jQuery182(this).parent().append("<a class='img' href='" + take + "'  target='_blank' >Image</a>");

        });
        jQuery182('.dropboxx').each(function () {
            var imagePath = jQuery182(this).parent().find("#hdField").val();
            if (imagePath.length > 0) {
                jQuery182(this).parent().append("<a class='img' href='" + imagePath + "' target='_blank' >Image</a>");
                (jQuery182(this).parent().find('div').addClass('dropbox-chooser-used'));

            }

        });

    });

    </script>

这是html:


4

2 回答 2

1

早期版本的 IE 不提供JSON.parseJSON.stringify因此您需要一个 polyfill:

https://raw.github.com/douglascrockford/JSON-js/master/json2.js

于 2013-06-19T16:08:38.450 回答
1

使用管理员 previliage.dropbox 打开 Internet Explorer 弹出菜单是 https 并认为您的网站是 http。它不会将值从 https 返回到 http。你可以试试管理员权限

于 2013-06-25T15:24:07.153 回答