framework7

Open full view…

Ajax call not working - need help urgently

bimalfernando
Wed, 17 May 2017 10:24:57 GMT

Hi, I was trying to load data using ajax method. please see the code below. This works perfectly when I copy the same contents to a static html and have the link to html below instead of our ajax call. out ajax contents are same as below file. https://framework7.io/kitchen-sink-ios/accordion.html as mentioned, if I copy the above file in the server as a static file then the link works. We checked in the developer tools network tab and can see the ajax call is going and also returning data. But page doesn't load in the site. also one difference is that our ajax call requires authentication but since we have logged in already it should work. If we directly enter the ajax url on the browser it loads without any issues. please let me know what we are doing wrong here. Thanks, <div class="list-block list-block-search searchbar-found"> <ul> <li><a href="Data/exchange/API/sng/GetHTML?Module=Get__mOwners" class="item-link"> <div class="item-content"> <div class="item-inner"> <div class="item-title">999801 - XXX Road 88 That Road</div> </div> </div> </a></li> <li><a href="#services" class="item-link"> <div class="item-content"> <div class="item-inner"> <div class="item-title"> 420923 - xxxxxx </div> </div> </div> </a></li>