view raw
rj tubera rj tubera - 11 months ago 77
Ajax Question

Jquery Mobile Replace Page Dynamically Using AJAX

Hello Is it possible to use $(result_div).html(data).enhanceWithin();

Why Am I having an error

VM398:148 Uncaught TypeError: $(...).html(...).enhanceWithin is not a function

Answer

Use .trigger('create') in 1.3.x (and below) instead of .enhanceWithin()