changePage() returns to previous page

changePage() returns to previous page

Hi,

I use
  1. jQuery.mobile.changePage('#pageErrorDialog');
to change to a dialog. My problem is that the page is loaded (I can see it for a few seconds), but then the previous page is reloaded and the dialog disappears.

Does anyone know a solution for my problem?

Thanks!