私は自分のウェブサイトでblueimpを使用しています。blueimpは私のページ(index.php)の最後に次のように含まれています:
<?php include "index.html"; ?>
私のphpページでは、同じページからいくつかの変数を送信し、blueimpアップローダーから2つの変数を送信するjqueryアダプターも使用しています。
function save()
{
var variable1= document.getElementById('field1').value;
var variable2= CKEDITOR.instances.field2.getData();
variable2=encodeURIComponent(variable2);
var variable3= document.getElementById('field3').value;
var variables="variable1="+variable1+ "&variable2="+variable2+
"&variable3="+variable3;
jQuery('#mydiv').showLoading();
$.ajax({
type: "POST",
url: "some.php",
data: variables,
error: function(){
alert('Error while loading!');
},
success: function(data){
jQuery('#mydiv').hideLoading();
$('#mydiv').html(data);
}
});
}
この関数を呼び出すときはいつでも、変数はsome.phpに送信されません。ただし、削除すると
<?php include "index.html"; ?>
index.phpページから、関数saveが機能し始めます。含まれているblueimpページ(index.html)から何かが原因で、jqueryアダプターが正しく機能しなくなっていると思います。
この問題に関する手がかりはありますか?
前もって感謝します。