using jQuery $get to pull data

Posted by sadhu_ on Stack Overflow See other posts from Stack Overflow or by sadhu_
Published on 2010-06-07T16:09:12Z Indexed on 2010/06/07 16:12 UTC
Read the original article Hit count: 240

Filed under:
|

Hi,

I am trying to send a date to the server as part of a get transaction, however, looking at the urls (through firebug), it appears that the var sDate is never replaced with its value.

Sorry i'm very new to JS and Jquery, so this is likely a very elementary mistake - i'm guessing it has something to do with the map that i am trying to pass to $.get?

function drawVisualization(sDate, eDate) {

alert(sDate + eDate);    

$.get(
      "http://localhost:8080/",
      "{'start':sDate}",
      function(data) { alert(data); },
      "html"
 );

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery