我有以下代码
function dbFaultgo() {
var f = element('faultForm');
var headcode = f.elements['headcode'].value;
var location = f.elements['location'].value;
var detail = f.elements['detail'].value;
var image = f.elements['image'].value;
var fullname = f.elements['fullname'].value;
var mobilenumber = f.elements['mobilenumber'].value;
$('#loadingmessage').show(); // show the loading message.
$.ajax({
type: 'POST',
url: 'http://(url removed)/save.php',
data: {
headcode:headcode,
location:location,
injuryreport:detail,
image:image,
fullname:fullname,
mobilenumber:mobilenumber
},
//change the url for your project
success: function(data){
$('#loadingmessage').hide(); // hide the loading message.
alert('Your comment was successfully added');
changePage ('page_05.html?v=1')
},
error: function(){
$('#loadingmessage').hide(); // hide the loading message.
alert('There was an error adding your comment');
}
});
return false;
};
这非常适合几乎所有智能手机......除了我需要它在运行 OS5 的 Blackberry Bold 上工作,它不允许 Ajax,因为它不兼容。
是否有与上述功能的 OS5 blackberryies(想想 HTML4、IE8)兼容的旧 Javascript 格式,还是我需要使用某种第三方 javascript 插件?