title: Javascript Parameter Passing Not Working
body: <p>The code dynamically creates a listview which works but i want to make it so when a listview item is clicked it sends the a url paramater to another method. When i set a paramater it doesnt alert the paramater, but when i give no parameter it works.</p>
  
  <pre><code>var output = 
  "&lt;li onclick='openURL()'&gt;&lt;h3&gt; Module Code: " + 
  results.rows.item(i).module 
  + "&lt;/h3&gt;Room: " 
  + results.rows.item(i).room +
  "&lt;/li&gt;";
  </code></pre>
  
  <p>The above works - No parameter in openURL();</p>
  
  <pre><code>var output = 
      "&lt;li onclick='openURL('" + results.rows.item(i).url + "')'&gt;&lt;h3&gt; Module Code: " + 
      results.rows.item(i).module 
      + "&lt;/h3&gt;Room: " 
      + results.rows.item(i).room +
      "&lt;/li&gt;";
  </code></pre>
  
  <p>The above doesnt work - I have done alert(results.rows.item(i).url) and it has a value.</p>
  
  <pre><code>function openURL(url) {
      alert("opening url " + url);
  } 
  </code></pre>
  
  <p>Could someone explain what i'm doing wrong, i've been trying to solve the problem for hours.</p>
  
  <p>Cheers!</p>