title: Wordpress & jQuery - import <?php bloginfo('url'); ?> to script file
body: <p>I'm using Wordpress and I would like to use the value of <code>&lt;?php bloginfo('url'); ?&gt;</code> in a jQuery script file as a variable. Is that possible? And how?</p>
  
  <p>In my script.js file I a function that uses:</p>
  
  <pre><code>$("#board").load("http://www.mysite.com/ajax/",{slug:post_slug});
  </code></pre>
  
  <p>and the "http://www.mysite.com" part will change (I'm building a theme).</p>
  
  <p>Many thanks for your time and help.</p>