I can not post data to GAE with XMLHttpRequest on iPhone.However,I can with jQuery and JSONP on Safari and iPhone,but I can not on Chrome.The code is following.

HTML side:
<head>
<title>puriketu memo</title>
<meta name="viewport" content="user-scalable=no, width=device-width" />
<link rel="stylesheet" type="text/css" href="iphone.css" media="only screen and (max-width: 480px)" />
<!--[if IE]> 
<link rel="stylesheet" type="text/css" href="explorer.css" media="all" /> 
<![endif]-->
<script type="text/javascript" src="http://localhost:8082/js/jquery.js"></script>
<script type="text/javascript" src="http://localhost:8082/js/iphone.js"></script>
  </head>
javascript side:
  $.post(
   request,
   {"content":"content a"},
   function(data, status) {
    alert("post success");
   }
  );
reference:
XMLHttpRequest Cross-domain issue
As soon as you sent the code, I have tested it and it did not work in my Chrome, Firefox or Android device. So, I came home last night and tested your code on Safari and my iPhone app, it works without any issues, actually my original code also worked without any issues in Safari and iPhone.

コメントをかく


「http://」を含む投稿は禁止されています。

利用規約をご確認のうえご記入下さい

筆者について

■ミリオンダウト


このウィキの管理人が考案した
大富豪+ダウトのオンライン対戦対戦トランプゲーム。
iOS,Android,PCからすぐに遊べます。
ここからプレイ!

■コミュニティ


■筆者(予定)
ぷりっぷりのおしり(管理人)
Kanedo
mosa
非北京
ふんばば
とつげき東北

■その他
メンバー同士の勝敗記録
プレイヤー紹介
記事一覧
ボンバーマンまとめ
Rainbow Uの歩み

Wiki内検索

メンバーのみ編集できます