title: How to retrieve info from database to display with Chrome extension
body: <p>I am trying to write my first chrome extension. The workflow goes something like this -When the extension is installed and active if a user hovers over a specific product/ID displayed on the page, the extension retrieves related vendor data about the product with the ID.</p>
  
  <p>This is how I thought about this:</p>
  
  <ol>
  <li>Use jQuery attr to access the ID on mouse over.</li>
  <li>Post this ID to a retrieve.php file with .post() method</li>
  <li>The retrieve.php file retrieves the data from database</li>
  <li>Display the data in a tool tip on the web page.</li>
  </ol>
  
  <p>I have some queries for the above process:</p>
  
  <ol>
  <li><p>I am able to get this working on a local XAMPP server but how will it work online as the chrome extension will not have access to server. What is the way around to retrieve data without using PHP?</p></li>
  <li><p>I am able to get the logic working but am unable to place these in respective files - Will all my logic reside in background.js ?</p></li>
  </ol>
  
  <p>Any suggestions on getting this started will be much appreciated.</p>