1

它已经工作了一年多,并开始在新窗口中打开。我不知道有什么变化。
我是按照Stunnware的指南完成的。

页面中的代码是:

<html>
<head/>
<body class='stage' onload='resultRender.submit()'>
    <FORM id='resultRender' method='post' action='/ALI/AdvancedFind/fetchData.aspx' target='resultFrame'>
    <INPUT value='<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"><entity name="account"><attribute name="websiteurl"/><attribute name="accountnumber"/><attribute name="new_geocat"/><attribute name="new_contracttype"/><attribute name="name"/><attribute name="accountid"/><order attribute="name" descending="false"/><filter type="and"><condition attribute="parentaccountid" operator="null"/><condition attribute="statecode" operator="eq" value="0"/></filter></entity></fetch>' type=hidden name=FetchXml> 
    <INPUT value='<grid name="resultset" object="1" jump="name" select="1" preview="1" icon="1"><row name="result" id="accountid"><cell name="name" width="200"/><cell name="new_contracttype" width="125"/><cell name="new_geocat" width="100"/><cell name="accountnumber" width="100"/><cell name="websiteurl" width="100"/></row></grid>' type='hidden' name='LayoutXml'> 
    <INPUT value='account' type='hidden' name='EntityName'> 
    <INPUT value='{00000000-0000-0000-00AA-000000666000}' type='hidden' name='DefaultAdvFindViewId'> 
    <INPUT value='{B444C27F-FC37-DD11-BDAA-000C292407C5}' type='hidden' name='ViewId'> 
    <INPUT value='1039' type='hidden' name='ViewType'> 
    <INPUT value='name' type='hidden' name='SortCol'> 
    <INPUT value='false' type='hidden' name='SortDescend'> 
    </FORM>
</body>

4

3 回答 3

1

经过反复试验,我终于弄清楚了。我将下面的行添加到我的 HTML 页面中,就在表单之后。

<iframe id='resultFrame' ></iframe>
于 2009-06-08T19:54:31.113 回答
1

您也可以尝试:

在 Iframe 属性窗口中,确保取消选中“限制跨框架脚本”复选框。

这解决了我的一个与上面类似的问题。

谢谢,

于 2010-02-16T13:09:11.557 回答
-1

好吧,网页正在新窗口中打开,因为表单目标属性设置为结果框架,但指定的框架不在页面上。因此,默认操作页面正在新窗口中打开。只需删除框架的目标属性即可。现在框架将在同一个窗口中打开。您也可以将目标指定为“_self”。

于 2010-01-28T11:03:35.593 回答