Problem CSS in loop when I using $.getJSON from external website

Problem CSS in loop when I using $.getJSON from external website

Hello, 

I can't resolve this problem since 2 weeks... 

After the get JSON I retrieve the data from the webService but when I try to display it,  the css of Jquery mobile CSS doesn't work IN THE LOOP. And after the loop its works. 

You can test this example, all is here.  You will  easily  undertand  the problem. 

  1. <!DOCTYPE html>
  2. <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  3. <script src="http://code.jquery.com/jquery-migrate-1.1.1.min.js"></script>
  4. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
  5. <script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
  6. <script type="text/javascript" src="javascript_code.js"></script>

  7. <body>

  8. <div data-role="page" >
  9. <div data-role="content" data-theme="c" id="content_">
  10.     <script>
  11. $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?",
  12.         function(data){
  13.           $.each(data.items, function(i,item){
  14.  /********function which execute code*******/
  15.             //$("<img/>").attr("src", item.media.m).appendTo("#content_");
  16.           });
  17. //When the loop is finished
  18. $('<p>Probleme of css  :<input type="text" id="mail" /></p><p>password :  <input type="password" id="password"/></p>').appendTo('#content_');
  19.         });
  20. $('<p>Form ok :<input type="text" id="mail" /></p><p>password :  <input type="password" id="password"/></p>').appendTo('#content_');
  21. </script> 
  22.  
  23. </div>

  24. <!-- /footer -->
  25. </div>
  26. </body>
  27. </html


Look the result, one work but not the second : 




Very thanks for your help !!