Skip to content Skip to sidebar Skip to footer

Expected Identifier Or String In Javascript

function GetHTML(url, para) { var data = $.ajax({ url: url, global: false, type: 'POST', data: para, dataType: 'html', async: fa

Solution 1:

Remove the comma after async: false,

Try using jslint - it can help pick up things like this.

Solution 2:

This is probably due to the extra comma after async: false, - that is a syntax error, and wouldn't work on all browsers (If I remember correctly, it doesn't work on IE)

Post a Comment for "Expected Identifier Or String In Javascript"