IE“网络标记”跨框架脚本? [英] IE "Mark of the Web" cross-frame scripting?

查看:93
本文介绍了IE“网络标记”跨框架脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我发布了一个问题,关于在我的硬

驱动器上使用文件来执行跨框架脚本编写并从服务器上提取数据

我的公司的内联网。我最终使用HTA文件

和Internet Explorer工作了。


现在我正在处理类似的问题,但确实需要保留IE菜单,

导航按钮等这一次。假设存在一个解决方案,

我猜它涉及使用IE6 SP2Web of Mark。功能。

基本上,我正在加载一个本地文件,其顶部包含几个

Javascript驱动的按钮,后跟一个iframe

声明剩余的100%x 95%的可见窗口并从我们的Intranet上的Web服务器加载页面

。本地HTML文件包括

Web of Mark。与此Web服务器匹配,服务器的域

存储在可信站点中。到现在为止还挺好。问题是当我的脚本试图访问iframe中的页面时,

,它没有工作... ... IE响应访问被拒绝 ;错误。


我还没有找到关于这里工作逻辑的非常好的文档,并且

因为我无法确定IE的确切位置陷入困境,下一步选择

是很棘手的。这有什么办法吗?这些公司

PC'部分被锁定,而且我还打算将这个HTML

文件交给同事,不能问任何人安装新软件或执行主要的OS调整
。此外,这些PC缺乏真正的Windows XP

Service Pack 2,有利于混合使用较小的更新和修补程序,所以

一些新的Internet属性安全功能缺失

(假设一个人可能有帮助)。


我会继续尝试,最终可能会遇到一个解决方案因为我

以前做过,但我会感激任何建议。我认为我自己的硬盘驱动器上的文件不能简单地按照b $ b想要的那样来it很烦恼。 :-(


谢谢,


托德

A few months ago I posted a question about using a file on my hard
drive to perform cross-frame scripting and pull data from a server on
my company''s intranet. I eventually got this working using an HTA file
and Internet Explorer.

Now I''m tackling a similar issue, but really need to keep the IE menus,
navigation buttons, etc. this time around. Assuming a solution exists,
I''m guessing it involves using the IE6 SP2 "Mark of the Web" feature.
Basically, I''m loading a local file that includes several
Javascript-powered buttons at the top, followed by an iframe that
claims the remaining 100% x 95% of the visible window and loads a page
from a web server on our intranet. The local HTML file includes a
"Mark of the Web" that matches this web server, and the server''s domain
is stored at a "Trusted Site". So far, so good. The problem is that
when my script tries to access the page in the iframe, it doesn''t
work...IE responds with an "Access is denied" error.

I haven''t found very good documentation on the logic at work here, and
since I can''t decide exactly where IE is getting hung-up, choosing a
next step is tricky. Is there some way around this? These company
PC''s are partly locked-down, and as I''d also planned to give this HTML
file to coworkers, can''t ask anybody to install new software or perform
major OS tweaks. Additionally, these PC''s lack the real Windows XP
Service Pack 2, in favor of a mix of smaller updates and hotfixes, so
some of the new Internet Properties security features are missing
(assuming one might have helped).

I will keep experimenting and may eventually stumble on a solution as I
did previously, but I''d appreciate any suggestions. I think it''s very
annoying that a file on my own hard drive can''t simply do what it
wants. :-(

Thanks,

Todd

推荐答案

您是否考虑过使用不同的方法,例如使用VB或VBA自动化IE实例(例如来自excel?)


通常不会遭受同样的影响在另一个网页中使用javascript的限制。

你想在目标页面中自动化什么类型的过程?


Tim


< ta ****** @ mindspring.com在留言新闻中写道:11 ********************* @ 75g2000cwc .googlegrou ps.com ...
Have you considered using a different approach such as automating an instance of IE using VB or VBA (eg. from excel?)

That typically does not suffer from the same restrictions as using javascript in another web page.
What type of process are you trying to automate in the "target" page ?

Tim

<ta******@mindspring.comwrote in message news:11*********************@75g2000cwc.googlegrou ps.com...

>几个月前我发布了一个关于在我的硬盘上使用文件的问题

驱动器在我公司的内联网上执行跨框架脚本和从服务器上提取数据。我最终使用HTA文件

和Internet Explorer。 br />

现在我正在处理类似的问题,但确实需要保留IE菜单,

导航按钮等这一次。假设存在一个解决方案,

我猜它涉及使用IE6 SP2Web of Mark。功能。

基本上,我正在加载一个本地文件,其顶部包含几个

Javascript驱动的按钮,后跟一个iframe

声明剩余的100%x 95%的可见窗口并从我们的Intranet上的Web服务器加载页面

。本地HTML文件包括

Web of Mark。与此Web服务器匹配,服务器的域

存储在可信站点中。到现在为止还挺好。问题是当我的脚本试图访问iframe中的页面时,

,它没有工作... ... IE响应访问被拒绝 ;错误。


我还没有找到关于这里工作逻辑的非常好的文档,并且

因为我无法确定IE的确切位置陷入困境,下一步选择

是很棘手的。这有什么办法吗?这些公司

PC'部分被锁定,而且我还打算将这个HTML

文件交给同事,不能问任何人安装新软件或执行主要的OS调整
。此外,这些PC缺乏真正的Windows XP

Service Pack 2,有利于混合使用较小的更新和修补程序,所以

一些新的Internet属性安全功能缺失

(假设一个人可能有帮助)。


我会继续尝试,最终可能会遇到一个解决方案因为我

以前做过,但我会感激任何建议。我认为我自己的硬盘驱动器上的文件不能简单地按照b $ b想要的那样来it很烦恼。 :-(


谢谢,


托德
>A few months ago I posted a question about using a file on my hard
drive to perform cross-frame scripting and pull data from a server on
my company''s intranet. I eventually got this working using an HTA file
and Internet Explorer.

Now I''m tackling a similar issue, but really need to keep the IE menus,
navigation buttons, etc. this time around. Assuming a solution exists,
I''m guessing it involves using the IE6 SP2 "Mark of the Web" feature.
Basically, I''m loading a local file that includes several
Javascript-powered buttons at the top, followed by an iframe that
claims the remaining 100% x 95% of the visible window and loads a page
from a web server on our intranet. The local HTML file includes a
"Mark of the Web" that matches this web server, and the server''s domain
is stored at a "Trusted Site". So far, so good. The problem is that
when my script tries to access the page in the iframe, it doesn''t
work...IE responds with an "Access is denied" error.

I haven''t found very good documentation on the logic at work here, and
since I can''t decide exactly where IE is getting hung-up, choosing a
next step is tricky. Is there some way around this? These company
PC''s are partly locked-down, and as I''d also planned to give this HTML
file to coworkers, can''t ask anybody to install new software or perform
major OS tweaks. Additionally, these PC''s lack the real Windows XP
Service Pack 2, in favor of a mix of smaller updates and hotfixes, so
some of the new Internet Properties security features are missing
(assuming one might have helped).

I will keep experimenting and may eventually stumble on a solution as I
did previously, but I''d appreciate any suggestions. I think it''s very
annoying that a file on my own hard drive can''t simply do what it
wants. :-(

Thanks,

Todd



Tim Williams写道:
Tim Williams wrote:

您是否考虑过使用其他方法,例如使用VB或VBA自动化IE实例(例如来自excel?)


这通常不会受到与在另一个网页中使用javascript相同的限制。

您尝试在目标中自动执行什么类型的过程?页面?
Have you considered using a different approach such as automating an instance of IE using VB or VBA (eg. from excel?)

That typically does not suffer from the same restrictions as using javascript in another web page.
What type of process are you trying to automate in the "target" page ?



我想从iframe中读取信息(对于所有意图来说,

*是*浏览器窗口,如它占据了除可用空间的前5%之外的所有空间),将其滚动到电子邮件消息(Lotus Notes)中,并将其发送给

定义的个人。(想想喜欢发送给朋友功能

您在大多数新闻网站上都可以找到。)因此,自动化IE实例不会不会b $ b工作,因为它必须是IE窗口,当前正在使用中。不过,如果我可以通过一个

导航式按钮或一个免费的,用户可配置的插件栏来启动它,那么我就可以直接开到VBA了。 br />
IE的顶部。


嗯,这甚至​​可以吗?


感谢您的快速回复,蒂姆!


托德

I''d like to read information from the iframe (which for all intents
*is* the browser window, as it occupies all but the top 5% of available
space), roll it into an email message (Lotus Notes), and send it to a
defined individual. (Think of it like the "Send to a Friend" feature
you find on most news sites.) So "automating an instance of IE" won''t
work, as it''s got to be the IE window that''s currently in use. I''m
open to straight VBA, though, if I can initiate it through a
navigation-style button or a free, user-configurable plugin bar at the
top of IE.

Hmm, is THAT even do-able?

Thanks for the quick reply, Tim!

Todd



ta ****** @ mindspring.com 写道:

几个月前我发布了一个关于使用我的硬

驱动器上的文件来执行跨框架脚本并从我公司内部网的
上的服务器中提取数据。我最终使用HTA文件

和Internet Explorer工作了。


现在我正在处理类似的问题,但确实需要保留IE菜单,

导航按钮等这一次。
A few months ago I posted a question about using a file on my hard
drive to perform cross-frame scripting and pull data from a server on
my company''s intranet. I eventually got this working using an HTA file
and Internet Explorer.

Now I''m tackling a similar issue, but really need to keep the IE menus,
navigation buttons, etc. this time around.



你真的需要多少个库存菜单?如果它主要是

导航并说,打印,那么我会写一个HTA迷你浏览器包装。

类似于图8中的示例:

http:// www。 microsoft.com/mind/0799/h...s/htmlapps.asp

Best,Kev

How many of the stock menus do you really need? If it''s mostly
navigation and say, print, then I''d write an HTA mini-browser wrapper.
Something like the example in Figure 8 at:

http://www.microsoft.com/mind/0799/h...s/htmlapps.asp

Best, Kev


这篇关于IE“网络标记”跨框架脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆