mobile.changePage Problem - next id

mobile.changePage Problem - next id

Hello

unfortunately I can not get past have the following problem .

I want to leave with "$ . mobile.changePage " show a new page , the URL should be replaced dynamically. So I go get the id that I pass via $ _GET, out of the database and thus give you $ . Mobile.changePage the new URL known. This works well so far flawlessly. But if I have then wiped 2x to the right works $ . Mobile.changePage again all id from which have been passed .

My example  - (Works 2x then really no more) :

<?
$ pagen_id = $ _GET [ 'id '] ;
$ next = $ pagen_id +1;
? >

<script type="text/javascript">
$ (' div.ui -page ') . live ( " swipeleft " , function () {
       $ . mobile.changePage ( " show_foto.php id = <? echo $ next ? > " {
       transition: " slide" ,
       reverse : true ,
       changeHash : true ,
       cache : false,
       reload page : true
   }) ;
 }) ;
</ script>

this works then 2x , then all other ' id displayed .. and again after running . Heavy explain. Maybe someone can help after all , would be delighted.

I use jquery.mobile-1.3.1.js 

greeting
Mike