Ajax error "Syntax error, unrecognized expression: #[object Object]"

Ajax error "Syntax error, unrecognized expression: #[object Object]"

Hello,

Whenever I make any kind of Ajax call in jQuery 1.8.3 or 1.9, I get stopped at:

  1. Sizzle.error = function( msg ) {
  2. throw new Error( "Syntax error, unrecognized expression: " + msg );
  3. };

with: "Syntax error, unrecognized expression: #[object Object]". My $.load call is below. I haven't been able to find any solutions online: maybe my GoogleFu isn't as good as I thought

  1. $(function () {
  2.                     $(".personPopupTrigger").hover(
  3.                         function () {
  4.                             var TheLink = $(this);
  5.                             var settings = $(this).attr('rel');

  6.                             if (settings == '')
  7.                                 return;
  8.                             $("#personPopupContainer").show()
  9.                             $('#personPopupContent').load('person.aspx?e='+ settings + ' .personPopupResult', function () {
  10.                                 $("#personPopupContainer").position(
  11.                                 {
  12.                                     my: "left bottom",
  13.                                     at: "left top",
  14.                                     of: $("#" + TheLink).parent(),
  15.                                     collosion: 'none'
  16.                                 }
  17.                             )
  18.                             });

  19.                         },
  20.                         function () {
  21.                             $("#personPopupContainer").hide();
  22.                         }
  23.                     );

  24.                 });


The response from the server according to Fiddler is:

  1. HTTP/1.1 200 OK
  2. Server: ASP.NET Development Server/10.0.0.0
  3. Date: Fri, 18 Jan 2013 16:38:08 GMT
  4. X-AspNet-Version: 4.0.30319
  5. Cache-Control: private
  6. Content-Type: text/html; charset=utf-8
  7. Content-Length: 1669
  8. Connection: Close



  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  10. <html xmlns="http://www.w3.org/1999/xhtml">
  11. <head><title>

  12. </title><link href="App_Themes/Ruskin/common.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Ruskin/Styles1.css" type="text/css" rel="stylesheet" /><link href="App_Themes/Ruskin/tabs1.css" type="text/css" rel="stylesheet" /></head>
  13. <body>
  14.     <form name="form1" method="post" action="person.aspx?e=webmaster%40ruskin.com" id="form1">
  15. <div>
  16. <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="0vGWKme7rsCeEVvBXCYwVk13m30ut0zBMhHn9T4WZHoeM0QzaIsKDD+hN4mr01RvEYdK/jc8bWiKjPiBZ/hShiayqpB1nPr1eQ/PLMHbYvYZgZ5z5lxQHHzOBmbhWSjs4bvl8FvgUYYkYuIN" />
  17. </div>

  18. <div>

  19. <input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="" />
  20. </div>
  21.     <div class="personPopupResult">
  22.     
  23.         <table cellspacing="0" border="0" id="FormView1" style="border-collapse:collapse;">
  24. <tr>
  25. <td colspan="2">
  26.             <div>
  27.             <span id="FormView1_FirstNameLabel">FirstName</span>
  28.             <span id="FormView1_LastNameLabel">LastName</span>
  29.             </div>
  30.             <img src="http://home.ruskin/empix/2213.jpg" style="float: left; margin: 5px;" />
  31.                 
  32.                 Email:
  33.                 <span id="FormView1_EmailLabel">email address</span>
  34.                 <br />
  35.                 Extension:
  36.                 <span id="FormView1_ExtensionLabel">5404</span>
  37.                 <br />

  38.             </td>
  39. </tr>
  40. </table>
  41.         
  42.         
  43.     
  44.     </div>
  45.     </form>
  46. </body>
  47. </html>
I just have a feeling I'm missing something stupidly simple here...