Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery Mobile无法通过SSLVPN工作_Jquery_Jquery Mobile_Vpn - Fatal编程技术网

jQuery Mobile无法通过SSLVPN工作

jQuery Mobile无法通过SSLVPN工作,jquery,jquery-mobile,vpn,Jquery,Jquery Mobile,Vpn,更新以下Firebug控制台错误。感谢贾斯珀,因为我没有想到它my.url.com是我的更改,但它是通过SSLVPN引用内容的正确地址 此处的代码位于jquery.mobile-1.1.0.js init: function() { $win.bind( "hashchange", self.onHashChange ); // Handle popstate events the occur through history changes $win.bind( "popstate"

更新以下Firebug控制台错误。感谢贾斯珀,因为我没有想到它
my.url.com
是我的更改,但它是通过SSLVPN引用内容的正确地址

此处的代码位于
jquery.mobile-1.1.0.js

init: function() {
  $win.bind( "hashchange", self.onHashChange );
  // Handle popstate events the occur through history changes
  $win.bind( "popstate", self.onPopState );
  // if there's no hash, we need to replacestate for returning to home
  if ( DanaGetHash(location) === "" ) {
    history.replaceState( self.state(), document.title, DanaGetHref(location) );
  }
}
看起来像是由SSLVPN添加的
DanaGetHash
DanaGetHref

Original我使用jQuery mobile创建了一个移动页面,我遇到了一个问题,当从网络中非SSLVPN的计算机访问时,该问题运行得非常好,但当通过SSLVPN访问时,该页面被严重破坏

在IE8和IE9中,会显示首页,但通过
列表视图链接的后续页面都不会尝试显示。单击链接会显示等待的微调器,但不会显示页面

在Chrome和Firefox中,首页是空白的

我已经尝试过在jQuery中使用CDN以及在相对目录中使用本地副本

  • 我们的SSLVPN是Juniper
  • jQuery 1.7.2非最小化
  • jQuery Mobile 1.1.0非最小化

请随时询问您可能需要的任何详细信息,我们非常感谢您的帮助。

如果其他人对此感兴趣,Juniper SSLVPN如何解决这一问题是两件事

  • 我们必须使用传递方法,而不是重新写入。JQuery和重写不是朋友。因此,为了让jQuery工作,我们必须在登录后代理访问。Juniper告诉我,这在Sharepoint中非常普遍,因为Sharepoint站点上的许多重写往往会失败
  • 本地托管并引用jQuery脚本。这一点很重要,因为(根据Juniper的解释)我们不能将代理传递到外部站点,也不能通过传递代理重新编写外部站点

  • 希望有人对此感兴趣。

    任何可能遇到此问题的人, 我能够通过配置选择性重写规则来解决这个问题,避免重写特定的js文件。对于安全性,不需要通过代理

    资源
    http://my.site/lib/jquery.mobile-1.0rc1.js

    init: function() {
      $win.bind( "hashchange", self.onHashChange );
      // Handle popstate events the occur through history changes
      $win.bind( "popstate", self.onPopState );
      // if there's no hash, we need to replacestate for returning to home
      if ( DanaGetHash(location) === "" ) {
        history.replaceState( self.state(), document.title, DanaGetHref(location) );
      }
    }
    
    策略适用于所选角色:my\u mobileapp\u角色

    操作:不重写内容:不重定向到目标web服务器

    然后页面将正确加载。
    希望我帮助过别人。

    你的错误控制台对JS错误怎么说?谢谢你的建议,我不想看。我在解决方案中发布了错误消息,以便更容易看到。我在SSLVPN方面也面临类似的问题——尽管不是Juniper。Dana的东西到底是什么?是Juniper特有的吗?是Juniper特有的。不幸的是,我能想到的唯一真正的建议是下面我接受的答案。基本上,将脚本托管在一个相对目录中,如果可以的话,不最小化并防止任何SSLVPN重写。问题在于SSLVPN所做的重写和Javascript注入。谢谢这篇文章!它为我的jQuery移动应用程序节省了数小时的调试和故障排除时间,该应用程序需要通过SSLVPN提供。