title: ajax call needs username and password
body: <p>I'm an Ajax newbie, so that might explain my question.</p>
  
  <p>I'm doing the following call</p>
  
  <pre><code>                   $.ajax({
                     url: '&lt;?php echo site_url('something/somethingelse')?&gt;',
                     type:'POST',
                     username: 'username',
                     password: 'password',
                     data: { parm1 : 'A', 
                             parm2 : 1,
                             parm3 : 2 }, 
                     dataType: 'json',
                     success: function(output_string){
                     }
  </code></pre>
  
  <p>username and password are the username and password I use to sign into my server.  </p>
  
  <p>how can i represent them in the javascript securely?  i know i can store them in variables and use the variables in the Ajax call - but the variables will exist in a javascript file and be visible to anyone who can use a debugger that allows you to view the javascript.</p>
  
  <p>is there a way to hide certain javascript files?  does javascript have the equivalent of a properties file?</p>