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).

app.request({
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);


                //return;

            },
            error: function (xhr, textStatus, errorThrown) {

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

                console.log(textStatus);
                console.log(xhr.response);
                console.log(errorThrown);

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

                //return;

            }

        }
            )
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?
Thanks

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