我正在頁面內向一個數據庫發出一個Ajax調用,並拉取包含圖像的產品。如何確保我的ajax調用拉取認證內容
這裏是Ajax調用,我正在做:那我有
$.ajax({
type : "GET",
url : "**https**://www.mydomain.org/getRow.php",
dataType: 'html',
success: function (msg) {
$(".drag-desired").html(msg);
$.event.trigger('init-draggable-products');
},
error: function (xhr) {
$('#errorDisplay').html('Error: '+ xhr.status + '' + xhr.statusText);
}
});
問題是與IE瀏覽器,它提供了提示,詢問訪問者想要查看未認證的內容。如果用戶點擊「否」或是「是」,他們會希望瀏覽器阻止該內容,但我沒有收到要展示的產品。
這裏是抓住產品我的PHP文件:
<?php
define('INCLUDE_CHECK',1);
require "connect.php";
?>
<?php
$result = mysql_query("SELECT * FROM internet_shop WHERE price = 5");
while($row=mysql_fetch_assoc($result))
{
echo '<div class="product"><img src="https://www.mydomain.org/img/products/'.$row['img'].'" alt="'.htmlspecialchars($row['name']).'" width="128" height="128" class="pngfix" /></div>';
}
?>
這是一個很大的杜!謝謝。我猜這有助於第二雙眼睛。 – TikaL13 2010-02-22 15:16:06