Ajax call return 500 on server

I have html page and call app.request in javascript. Work fine from my local host, but return 500 when I call from web server (GoDaddy).

url: ‘\Default.aspx/ReportList’,
method: ‘POST’,
dataType: ‘json’,
async: false,
contentType: ‘application/json; character=utf-8’,
data: {},// postData,
success: function (data, textStatus) {

                photos = JSON.parse(data.d);


            error: function (xhr, textStatus, errorThrown) {

                // We have received response and can hide activity indicator
                //   app.preloader.hide(); 


                app.dialog.alert('Report list error' + errorThrown);



Request @ framework7.bundle.min.js:13
(anonymous) @ (index):138

It is unlikely F7 issue, if server returns 500 then error happens on server side. Check the network tab in browser console to debug the request, check data and headers

I added $(document).ready(function () and it works now. What is equivalent in F7?

There is no such equivalent in F7 because you don’t need it. If it works with this function, then there is something wrong in your layout or scripts order