title: How to get values passed to a controller using ajax in code igniter?
body: <p>My javascript function is like this</p>
  
  <pre><code>function translate( language ) {            
     var dataString = $("#redirect_url").val(); 
     $.ajax({  
        type: "POST",  
        url: "&lt;?php echo $this-&gt;config-&gt;base_url()index.php/translate/index/"+language+"/",  
        data: 'url='+dataString,
        success: function(data){
           alert( data );
        }
     });   
     return false;  
  }
  </code></pre>
  
  <p>I have used <code>$this-&gt;input-&gt;post('url');</code> but doesn't work. I am getting the post value in firebug. Can anyone help!!!</p>