I know this has already been answered but surely the correct answer why it wasn't working is that the syntax is incorrect ?
$.mobile.changePage requires the DOM object (for displaying pages within the same HTML file using the hash syntax) and not just a string. So the correct syntax for the example given would be:
$.mobile.changePage($("#xxx"));
That should work a treat !
Hope this helps