我有图像库,在ASP.NET应用程序中使用post方法在文档就绪函数中加载照片。照片存储在大数据中。我检索所有图像路径并绑定每个图像源。我正在使用Nanogallery js插件来显示照片。 从bigdata检索数据时没有错误,但在加载照片时,会发生连接超时错误。
我厌倦了100张照片和2张照片,但效果相同。我得到了同样的错误。
发布方法
$.ajax({
type: 'POST',
cache: false,
async: false,
url: 'PhotoAlbum.aspx/GetAllPhotos',
contentType: 'application/json; charset=utf-8',
success: function (data) {
var arraydata = JSON.parse(data.d);
loadGalery(arraydata);
},
error: function (xhr, ajaxOptions, thrownError) {
console.log(xhr.status);
console.log(xhr.responseText);
console.log(thrownError);
}
});
,
function loadGalery(pdata) {
jQuery("#nanoGalleryHome").nanoGallery({
items: pdata,
thumbnailHoverEffect:'imageInvisible,imageScale150,borderLighter',
viewerDisplayLogo:true,
locationHash:false,
thumbnailDisplayInterval: 5,
thumbnailDisplayTransition: true,
thumbnailLabel : { position : 'overImageOnBottom', display : true, displayDescription : true, titleMaxLength : 0, descriptionMaxLength : 0, hideIcons : false, title : '', itemsCount : '' },
galleryRenderStep: 50,
paginationDots : true,
galleryFullpageButton:true
});
}
});
错误讯息: 无法加载资源:net :: ERR_CONNECTION_TIMED_OUT http://BigDataPath/images/2015/3689500b-daa8-4a0b-81dd-7433d6304dfe?op=OPEN&user.name=web&namenoderpcaddress=bdm:8020&offset=0
答案 0 :(得分:1)
我找到了解决方案。问题是50075端口已关闭,所以我打开了端口,照片装满了。
答案 1 :(得分:0)
最好有一个实时网址来检查您的问题。