Uncaught TypeError: Illegal invocation

Uncaught TypeError: Illegal invocation

Hi,

I am getting the above error and can't figure our why? kindly help..

This is my code:

  1. var formData = new FormData();

  2. formData.append("login_name", "731004167");
  3. formData.append("login_password", "Jassim@2013");

  4. $.ajax({
  5.     type: "POST",
  6.     url: 'signin2.php',
  7.     dataType: 'json',
  8.     data: formData,
  9. }).done(function (data)
  10. {
  11.     console.log(data);

  12.     // DevExpress.ui.dialog.alert('BlueFile', 'Success!');

  13.     if (data)
  14.     {
  15.         BlueFile_Mobile.app.navigate("my");
  16.     }
  17.     else
  18.     {
  19.         viewModel.loadPanelVisible(false);

  20.         DevExpress.ui.dialog.alert('BlueFile', 'Invalid Login name or Password!');
  21.     }
  22. }).fail(function (jqXHR, message)
  23. {
  24.     viewModel.loadPanelVisible(false);

  25.     DevExpress.ui.dialog.alert('BlueFile', 'Failed!');

  26.     DevExpress.ui.dialog.alert('Error', message);
  27. })


Thanks,
Jassim