简体   繁体   English

在iframe中使用jquery-mobile调用html页面

[英]call html page with jquery-mobile in a iframe

I'm calling html5 page inside a iframe. 我正在iframe内调用html5页面。 To prevent the cache I call the page thus: 为了防止缓存,我这样调用页面:

... not irelevant code... ...不是无关的代码...

<iframe  id="contentframe1" name="contentframe1" frameborder="0" scrolling="No"   src="" height="432" width="100%"> </iframe>   

... not irelevant code ...不是无关的代码

Javascript code for call html5+jquery-mobile page... 呼叫html5 + jquery-行动网页的Javascript代码...

$("#contentframe1").attr('src',urlVista);
var d= new Date();      

var urlVista="usuarios/"+parent.parent.Nb_Global_usuario+"/aplicaciones/"+parent.parent.Nb_Global_aplicacion+"/appfiles/vistas/"+LinkTab[aux]+".html?"+d.toString();

How you can see i call this page with uncached mode.The problem: 您如何看待我以未缓存模式调用此页面。问题:

In the html5+jQuery-Mobile page I have a multipage. 在html5 + jQuery-Mobile页面中,我有一个多页页面。

PageA calls PageB..correct!! PageA呼叫PageB ..正确!

But when PageB does back button action the next error appear: 但是,当PageB执行后退按钮操作时,将出现下一个错误:

Uncaught Error: Syntax error, unrecognized expression: 0200%20(Hora%20de%20verano%20romance]') 

The solution is remove uncached mode...but I need that the page load without cache. 解决的办法是删除未缓存的模式...但是我需要页面加载而没有缓存。

any solution? 有什么办法吗?

您应该将字符“(”,“)”,“”替换为空,d = d.toString()。replace('(',')。replace(')','')。replace('' ,'');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM