title: not getting result from ActionResult with $.get
body: <p>I'm using a jquery get to try and refresh a partialView and its not working.  Do I atleast have the syntax right?  I'm new to c#</p>
  
  <p>//my javascript is (works fine)</p>
  
  <pre><code>function takeSquare(square) {
     var x = $(square).attr('x');
     var y = $(square).attr('y');
  
      alert(x + y);
  
  $.get("Home/updateBoardSquare", { posX: y, posY: y }, function (html) {
      $("#gameBoard").replaceWith(html);
  });
  
  alert(html);
  }
  </code></pre>
  
  <p>and my c# is </p>
  
  <pre><code> public ActionResult updateBoardSquare(int posX, int posY){
  
          String boardHtml = "";
  
          for (int i = 0; i &lt; 15; i++) {
              for (int k = 0; k &lt; 15; k++) {
  
                  if (board[i, k] == null)
                      board[i, k] = new BoardSquare(i, k);
  
                  if (i == posX &amp;&amp; k == posY) 
                      board[posX, posY].takeSquare((String) Session["color"]);
  
                  boardHtml += board[i, k].getHtml();
              }
          }
  
          ViewData["board"] = boardHtml;
  
          return PartialView();
  
      }
  </code></pre>
  
  <p>I'm just not getting anything at all from the get statement</p>