Objective: Load HTML content via $.ajax
, insert it into the DOM, have jQuery Mobile apply theme styles to it.
Problem:
For others searching for an answer for this, as of 6/9/2011 the jQuery mobile team has implemented this feature in a development branch. According to this issue, it will work in this manor:
$(".ui-content").append( ... lots of HTML ...).trigger( "enhance" );
https://github.com/jquery/jquery-mobile/issues/1799