Aviary HTM5LサンプルIOS Safariで動作していない(写真はロードを続けるように見えます)
-
11-12-2019 - |
質問
私はサンプルHTML5を取り、iOS Safariで試しました。
サンプル写真は表示されますが、継続的にロードし続け、嫌悪の編集アクションを実行できません。
誰かに解決策がありますか?
これは、a href="http://www.aviary.com/web-documentation "real="nofollow"> http://www.aviary.com/web-ドキュメンテーション
<!-- Load Feather code -->
<script type="text/javascript" src="http://feather.aviary.com/js/feather.js"></script>
<!-- Instantiate Feather -->
<script type="text/javascript">
var featherEditor = new Aviary.Feather({
apiKey: '12345678',
apiVersion: 2,
tools: 'all',
appendTo: 'injection_site',
onSave: function(imageID, newURL) {
var img = document.getElementById(imageID);
img.src = newURL;
}
});
function launchEditor(id, src) {
featherEditor.launch({
image: id,
url: src
});
return false;
}
</script>
<div id="injection_site"></div>
<img id="image1" src="http://images.aviary.com/imagesv5/feather_default.jpg"/>
<!-- Add an edit button, passing the HTML id of the image and the public URL ot the image -->
<p><input type="image" src="http://advanced.aviary.com/images/feather/edit-photo.png" value="Edit photo" onclick="return launchEditor('image1', 'http://images.aviary.com/imagesv5/feather_default.jpg');" /></p>
. 解決
私はapi@aviary.comで鳥道に連絡しました、そして彼らは今日修正されるバグがあると言った。それは今動作します。
他のヒント
このコードをライブサーバーに入れる必要があります、ローカルはここでは動作していません。Aviary Webのドキュメンテーションは、「サーバー間のHTTP POSTを送信するためにサーバー上の場所をAviaryに設定する」と言っています。
あなたは写真に完全な 'src'を追加する必要があります。 代わりに、「src= '/ upload / miphoto.png」を使用する必要があります。 "src='を使用する必要があります。" href="http://localhost:8080/project/upload/miphoto.png" rel="nofollow"> http:// localhost:8080 /プロジェクト/アップロード/ miphoto.png '" これが役立つことを願っています!
所属していません StackOverflow