javascript - Ajax Fuction not collecting data from URL -
i using ajax function phone call html page showing next error
options file:///d:/my%20web%20sites/bbbb/flair/demos/url net::err_file_not_found
html code :
<li class="cbp-item graphic"> <div class="cbp-caption"> <div class="cbp-caption-defaultwrap"> <img src="img/gallery/thumb/1.jpg" alt="" /> </div> <div class="cbp-caption-activewrap"> <div class="cbp-l-caption-aligncenter"> <div class="cbp-l-caption-body"> <a href="ajax/project1.html" class="cbp-singlepage cbp-l-caption-buttonleft"><i class="fa fa-link"></i></a> <a href="img/gallery/1big.jpg" class="cbp-lightbox cbp-l-caption-buttonright" data-title="project title"> <i class="fa fa-eye"></i> </a> </div> </div> </div> </div> </li>
js code :
singlepagecallback: function (url, element) { var t = this; $.ajax({ url: 'url', type: 'get', datatype: 'html', timeout: 5000 }) .done(function(result) { t.updatesinglepage(result); }) .fail(function() { t.updatesinglepage("error! please refresh page!"); }); } });
javascript html ajax
No comments:
Post a Comment