Jquery mobile Jquery移动限制到角色页面?

Jquery mobile Jquery移动限制到角色页面?,jquery-mobile,limit,webpage,Jquery Mobile,Limit,Webpage,我正在jqm中开发我的第一个应用程序。 我有一个独特的index.php,其中包含许多类似这样的代码块 <div data-role="page" id="scheda7"> <div data-role="header" class="ui-bar-b"> <h1><?php $qry_nomeScheda7 = "select * from nomeScheda where id='7'"; $rs_nomeScheda7 = conne

我正在jqm中开发我的第一个应用程序。 我有一个独特的index.php,其中包含许多类似这样的代码块

<div data-role="page" id="scheda7">
  <div data-role="header" class="ui-bar-b">
    <h1><?php $qry_nomeScheda7 = "select * from nomeScheda where id='7'"; $rs_nomeScheda7 = connetti($qry_nomeScheda7); $valore7 = mysql_fetch_array($rs_nomeScheda7); echo $valore7[nomeScheda];
       ?></h1>
  </div>
       <?php include 'scheda7.php'; ?>
       <?php include 'footer.php'; ?>
</div>

我申请的每一页一张

对于每个页面,我都有一个单独的schedaN.php,其中包含自己的html和javascript。现在发生在我身上的是,一些页面加载正确,而另一些页面仍然停留在加载状态(旋转轮不停地转动)。没有加载的页面永远不一样。。。也许我只是在索引中向上或向下移动一页,它就开始工作或停止工作。
所以我猜测:我注意到页面在小于7页时似乎可以工作。。。应用程序中可以包含的数据角色页的数量有一定的限制???

而不是像这样执行多个数据库查询

<?php $qry_nomeScheda7 = "select * from nomeScheda where id='7'"; $rs_nomeScheda7 = connetti($qry_nomeScheda7); $valore7 = mysql_fetch_array($rs_nomeScheda7); echo $valore7[nomeScheda];?>

而不是像这样执行多个数据库查询

<?php $qry_nomeScheda7 = "select * from nomeScheda where id='7'"; $rs_nomeScheda7 = connetti($qry_nomeScheda7); $valore7 = mysql_fetch_array($rs_nomeScheda7); echo $valore7[nomeScheda];?>

问题解决了!有一些html行不应该出现在那里。
有趣的是,包含错误的页面(一个未关闭的div)被正确加载,而下一个未被正确加载。所以我了解到,当没有javascript或php错误时,最好使用一些html验证工具。

在这个特定的例子中,我用来验证html并得到错误所在。谢谢大家,希望这对其他人有用。

问题解决了!有一些html行不应该出现在那里。 有趣的是,包含错误的页面(一个未关闭的div)被正确加载,而下一个未被正确加载。所以我了解到,当没有javascript或php错误时,最好使用一些html验证工具。
在这个特定的例子中,我用来验证html并得到错误所在。谢谢大家,希望这对其他人有用。

我怀疑您还有其他问题,您是否遇到任何JavaScript错误?据我所知,你可以包括的页数没有限制。我在一份文件中肯定有超过七页的内容。那将很高兴。。。真正的问题是没有引发错误。。。不在chrome控制台上,不在firebug上,不在DreamVever上,我认为HTML也是正确的…我怀疑还有其他问题是你的问题,你有没有收到任何JavaScript错误?据我所知,你可以包括的页数没有限制。我在一份文件中肯定有超过七页的内容。那将很高兴。。。真正的问题是没有引发错误。。。不在chrome控制台上,不在firebug上,也不在DreamVever上,我认为HTML也是正确的…做了,问题还在这里。。。firebug没有指出错误??做了,问题还在这里。。。firebug没有指出错误??