title: can we pass a variable containing our url in jquery $.get() from a php file
body: <p>hi i have a graph created from a .csv file using the jquery $.get(). but currently i am passing hardcoded file name as first argument to my get() method. My function is in a file named index.js and is like this</p>
  
  <pre><code>    $(document).ready(function() { 
          $.get('myproject.csv', function(data) { ..... } 
      ....... });
  </code></pre>
  
  <p>but what i want is to pass a variable which contains the file name so that it can have any file name instead of 'myproject.csv'</p>
  
  <pre><code>    $.get($filename, function(data) { 
  </code></pre>
  
  <p>where $filename could be any filename passed.  i don't have much idea about jquery and all so not sure.</p>
  
  <p>Now the main thing is that i have a .phtml file where i have this javascript file incorporated as inline script. So I have no idea how to pass the variable from this .phtml file to this javascript file. 
  My .phtml file:</p>
  
  <pre><code>      &lt;head&gt;.......&lt;/head&gt;
        &lt;body&gt;
        &lt;script type="text/javascript" src="/PFFd02/public/media/js/modules/appone/index/index.js"&gt;&lt;/script&gt;      // this is where i need to pass my variable. 
        ...........
        &lt;/body&gt;
  </code></pre>
  
  <p>any help???</p>