title: How Display data from url(cross-domain) on div using dreamweaver phonegap?
body: <p>What is the best way to display some content of a url (#somediv) on a div of my HTML Dreamweaver Phonegap</p>
  
  <p>I am new on Phonegap DW and i want to display the weather values of this page:</p>
  
  <p><a href="http://www.catedralaltapatagonia.com/invierno/partediario.php?default_tab=0" rel="nofollow">http://www.catedralaltapatagonia.com/invierno/partediario.php?default_tab=0</a></p>
  
  <p>In Java U used Jsoup, but i am not sure how do it on DW</p>
  
  <p>I tried this code (AJAX and JSONP)</p>
  
  <p>HTML </p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="UTF-8"&gt;
  &lt;title&gt;&lt;/title&gt;
  
  &lt;script src="js/jquery-1.5.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/load-json.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="output"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code> $(document).ready(function(){
  var output = $('#output');
  
  $.ajax({
      url: 'http://www.catedralaltapatagonia.com/invierno/partediario.php? default_tab=0',
      dataType: 'jsonp',
      jsonp: 'jsoncallback',
      timeout: 5000,
      success: function(data, status){
          $.each(data, function(i,item){ 
              var landmark = '&lt;h1&gt;'+item.name+'&lt;/h1&gt;'
              ;
  
              output.append(landmark);
          });
      },
      error: function(){
          output.text('There was an error loading the data.')
      }
  });
  });
  </code></pre>