简体   繁体   中英

jQuery AJAX request not returning anything [on hold]

i have this code

 <html> <head><title>Basic Ajax Demo</title> <script src="http://code.jquery.com/jquery-1.12.0.min.js"></script> </head> <body> <div id="demo-ajax"></div> <form method="post" id="form-login"> <input type="text" name="username" id="username" placeholder="ten dang nhap" /> <input type="text" name="password" id="password" placeholder="mat khau" /> <button id="btn-login" type="submit">Login</button> </form> </body> </html> 

and java in here [a link] http:///fortune500.vn/ae/a.js [a panda]

please help why it dont working nothing return as other code

SyntaxError: unexpected token: identifier

i think i have miss something with this ajax

        var params = $(this).serialize();
        $.ajax({
            url: 'http://...?another-server=1',
            data: params,
            dataType: 'jsonp',
            jsonp: 'callback',
            jsonpCallback: 'jsonpCallback',
            success: function (data) {
                console.log(data);
                alert(data.message);
                refreshSms();
            }
        });

nothing return

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM