title: Uncaught SyntaxError: Unexpected token :
body: <p>Uncaught SyntaxError: Unexpected token : at url:
    I am trying to call controller insert/getdata</p>
  
  <pre><code>&lt;script&gt;
  $(window).load(function(){
      // do something 
  $(document).ready(function () {
  
                  //d=   &lt;?php echo $userid; ?&gt;
                  $.ajax({   
                      url:"http://localhost/CodeIgniter/index.php/insert/getdata", //The url where the server req would we 
                      async: false,
                      type: "POST", //The type which you want to use: GET/POST
                     data: {activeNodeID : &lt;?php echo $userid; ?&gt;}, //The variables which are going.
  
                      //This is the function which will be called if ajax call is successful.
                      success: function(response){
  
                      $("#ques").html(response);
                      $("#ques").show();
                  }
                  });
  
  
          });
  </code></pre>
  
  <p>});</p>
  
  <p></p>