简体   繁体   English

iframe没有显示正确的页面

[英]Iframe is not showing the correct page

How comes I can't use an Iframe for the url http://www.ahv-services.ch/reschweb/rentenform.aspx ? 为什么无法将iframe用于网址http://www.ahv-services.ch/reschweb/rentenform.aspx

<iframe frameborder="0" height="600px" scrolling="no" src="http://www.ahv-services.ch/reschweb/rentenform.aspx" width="100%"></iframe>

Firefox is showing me that the URL of the Iframe is http://www.ahv-services.ch/errors/error02.htm . Firefox向我显示Iframe的URL为http://www.ahv-services.ch/errors/error02.htm This is also the page that is getting displayed in my browser but as you see in src attribute I am not looking for this page. 这也是在浏览器中显示的页面,但是正如您在src属性中看到的那样,我不是在寻找该页面。

Edit: Even when you click on that link, it redirects you to the error page. 编辑:即使您单击该链接,它也会将您重定向到错误页面。 Only when you copy & paste the link, it will show you the correct page. 仅当您复制并粘贴链接时,它才会显示正确的页面。

Presumably, www.ahv-services.ch is examining the referer header sent by the browser (no, you can't supress it) and redirecting if it looks like a third party site is linking directly to that page. 据推测, www.ahv-services.ch被检查referer通过浏览器发送头(不,你不能剿它),重定向,如果它看起来像一个第三方网站直接链接到该页面。

Look at the error message you get (via Google Translate): 查看您收到的错误消息(通过Google翻译):

The calling web server is not registered for the use of this service . 调用Web服务器未注册使用该服务 The Web services under www.ahv-services.ch were commissioned by the IGAKIS (www.igakis.ch) by Mathys & Scheitlin AG (www.ms.ch developed). www.ahv-services.ch下的Web服务由Mathys&Scheitlin AG(由www.ms.ch开发)由IGAKIS(www.igakis.ch)委托。 The IGAKIS provides the services generally after registration . IGAKIS 通常在注册后提供服务 For more information or an application for a registration, please contact www.ms.ch or www.igakis.ch. 有关更多信息或注册申请,请联系www.ms.ch或www.igakis.ch。

As you said in your question clicking on the link redirects you to the error page, I can confirm this happens for me too. 正如您在问题中所说的那样,单击链接会将您重定向到错误页面,我也可以确认这种情况也会发生。

This means that there is not a problem with your iframe or any of the code on your page, it is the page at http://www.ahv-services.ch/reschweb/rentenform.aspx which is broken. 这意味着您的iframe或页面上的任何代码都没有问题,位于http://www.ahv-services.ch/reschweb/rentenform.aspx的页面已损坏。

If you have access to this website then I would recommend you look into debugging this to see if there is an error in the code. 如果您可以访问该网站,则建议您进行调试以查看代码中是否有错误。 If you do not have access to this then I recommend you get in contact with an admin who does. 如果您没有访问权限,那么我建议您与有此权限的管理员联系。

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

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