欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
PRB: Permission Denied Error Message When Scripting Across Frames

PRB: Permission Denied Error Message When Scripting Across Frames

Article ID:167796
Last Review:September 1, 2005
Revision:1.1
This article was previously published under Q167796

SYMPTOMS

Script code that attempts to access a script or an object in a different frame may get the following script error message:
Permission denied: ‘Parent.RemoteFrame.RemoteObject‘

CAUSE

Internet Explorer 4.0 implements cross-frame security. A script or object in one frame is not allowed to access scripts or objects in another frame when the documents referenced by the SRC attribute of the frames specify Web servers in different second-level domains. This corresponds to the "domain- name.XXX" portion of the full server name syntax "server.domain-name.XXX".

The Internet Explorer 4.0 Dynamic HTML object model allows a certain subset of safe actions to be scripted. For example, the window.location property of a frame of the remote server can be set to allow navigation, but it cannot be read to prevent one frame from snooping on the contents of another frame.

For example, it is valid for a document retrieved from "http://test.microsoft.com" to manipulate another document retrieved from http://test.microsoft.com." It is not valid for a document retrieved from "http://server1.some-domain-name.org" to manipulate a document located retrieved from "http://server2" or "http://server3.microsoft.com."

The intention of cross-frame security is to prevent one Web page designer from potentially misusing or snooping on the trusted objects authored by a different Web page designer. Only those pages hosted in the same domain can be trusted to safely script the contents of a particular page. This should also prevent unwanted communication between documents on opposite sides of a corporate firewall.

RESOLUTION

To prevent this error, documents that interact with each other must be hosted by servers on the same domain.

To allow two documents hosted on the same second-level domain to interact, both documents must set the document.domain property to their shared second-level domain. For example, one document on "http://example.microsoft.com" could script and access another document on "http://test.microsoft.com" if both documents used the following line of script code:
<SCRIPT LANGUAGE="VBScript">    document.domain = "microsoft.com"</SCRIPT>				
Under Internet Explorer 4, if the page with the cross-frame script resides on a different server from the frameset source, the above script that sets document.domain needs to be included in the framset source as well.

STATUS

This behavior is by design.

MORE INFORMATION

For example, given the following FRAMESET:
<FRAMESET COLS="50%, *" FRAMEBORDER=1>   <FRAME SRC="http://server1/server1.html" ID="Server1Frame">   <FRAME SRC="http://server2/server2.html" ID="Server2Frame"></FRAMESET>				
Script in the "Server1Frame" frame is not permitted to access script or objects in the "Server2Frame" frame, and vice versa.

The following example script code in server1.html causes the "Permission Denied" error, given that RemoteTextBox is an object created on the server2.html document:
<!-- From server1.html --><SCRIPT LANGUAGE="VBScript">    Sub CommandButtonLocal_Click()        Parent.Server2Frame.RemoteTextBox.Text = "Changed Text"               ‘Server2Frame has SRC on different server    end sub   </SCRIPT>				
Cross-Frame Security uses the concept of a "security context" to make cross-frame scripting decisions. Security context takes into account the protocol, domain, and zone of Internet documents. Any differences in these three between the document containing the script and the document in another frame or window that the script is trying to manipulate causes a cross-frame security violation. For example, HTTP documents cannot script HTTPS documents, and sites in the Restricted Sites zone cannot script sites in the Local intranet zone.

Internet Explorer ultimately appeals to the Security Manager when script attempts to access another document. Technically, Internet Explorer uses the IInternetSecurityManager::GetSecurityId() function to help it make security context decisions. The security identification returned must match exactly for both URLs in a cross-frame situation. See the following references for more information on the Internet Security Manager.

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
http://msdn.microsoft.com/library/default.asp?url=/workshop/entry.asp (http://msdn.microsoft.com/library/default.asp?url=/workshop/entry.asp)

http://msdn.microsoft.com/ie/ (http://msdn.microsoft.com/ie/)

http://support.microsoft.com/iep (http://support.microsoft.com/iep)

- Dynamic HTML; DHTML Object Model; Cross-Frame Scripting and Security
- RFC 1591: "Domain Name System Structure and Delegation"
- RFC 1034: "DOMAIN NAMES - CONCEPTS AND FACILITIES"
- Security & Cryptology; Networking protocols & Data formats

APPLIES TO
Microsoft Internet Explorer 4.0 128-Bit Edition
Microsoft Internet Explorer 4.01 Service Pack 2
Microsoft Internet Explorer 5.0
Microsoft Internet Client Software Development Kit 4.0
Microsoft Internet Client Software Development Kit 4.01
Keywords: 
kbfaq kbprb kbscript KB167796
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
Online 申請study permit/Work Permit DIY詳解
iframe HTML元素
一些DOS命令和JAVASCRIPT屬性
網(wǎng)站安全響應頭缺失和php配置漏洞
Introduction to HTML Applications (HTAs)
三種方式獲取SSMS連接密碼
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久