开发者

jQuery mobile changePage issue

开发者 https://www.devze.com 2023-04-12 07:31 出处:网络
This开发者_JS百科 may be a simple problem but it is being stubborn. I am trying to load a php page that does a mysql query based on the data that is in the url via the get array.

This开发者_JS百科 may be a simple problem but it is being stubborn.

I am trying to load a php page that does a mysql query based on the data that is in the url via the get array.

    $.mobile.changePage("./info.php", {
    transition: "slideup",
    type: "get",
    data: 'diskID='+diskID

    });

It appears to go to the info.php page with the correct data in the url but only says "undefined".

If i refresh the page it reads the data out of the get array, and everything works fine.

What am I doing wrong.


Have you tried loading info.php directly with that data?

Whenever that issue came up, it was usually due to a php error.

If that isn't the issue. Try this instead:

$.mobile.changePage("./info.php?diskID="+diskID, { transition: "slideup" });
0

精彩评论

暂无评论...
验证码 换一张
取 消