title: localhost prepended to web address
body: <p>In jquery, I am reading web addresses from xml to append to a jquery mobile list-view using:</p>
  
  <pre><code>&lt;script&gt;
              var coupons = [];
              var names = [];
              var li = "&lt;li&gt;&lt;a href='#' rel='external'&gt;&lt;/a&gt;&lt;/li&gt;"; 
              $.ajax({
                  type: "GET",
                  url: "data/xml/markers.xml",
                  dataType: "xml",
                  success: parseXml
              });
              function parseXml(xml) {
                  var counter = 1;                 
                   $(xml).find("marker").each(function () {
                      name = $(this).find("name").text();
                      web = $(this).find("web").text();
                      names[counter] = name;
                      //web += "/coupons/"
                      //web += name.toString(); 
                      coupons[counter] = web;
                      $("#couponlinks").append(li);
                      alert(couponlinks[counter]);
                      counter++;
  
                   });
                      $("#datalist li a").each(function (index) {
                      this.text = names[index];
                      alert(coupons[index]);
                      this.href = coupons[index]; // this appends the web address plus the      localhost
                  });
  
              }            
          &lt;/script&gt;
  </code></pre>
  
  <p>The actual web address gets prepended with the localhost and does not point to the actual address.
  i.e. wwww.thewebsite.com comes out with the localhost prepended to the web variable.</p>
  
  <p>I do not understand this behavior. Thanks for any help. </p>
  
  <p>*Also, when I append 'li' it appears as a regular link and not a fancier $.mobile listview item. </p>
  
  <p>*Stackoverflow will not allow the localhost term so I subsituted lclhost. TY</p>