views:

688

answers:

4

It has worked for over a year and started opening in a new window. I am not aware of anything changing.
I made it following the guide at Stunnware.

The code in the page is:

<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>

A: 

I know this is an old question now. Don't know if its solved. Are you allowing cross-frame scripting on the CRM Form? If not, your page is in the restricted zone and that would explain the page opening in a new window.

benjynito
This is not on a Form. This page is opened from a hard link in the left navigation menu.
kaimerra
Got ya. Feel free to post your Site Map xml for this node and I'll take a look. Or is it the left-navigation of an entity (ISV.config XML)? I have both and am not experiencing this with IE7 or 8.
benjynito
A: 

I finally figured it out after trial and error. I added the line below to my HTML page, right after the form.

<iframe id='resultFrame' ></iframe>
kaimerra
A: 

Well the web page was opening in the new window because forms target property is set to resultframe, but specified frame it is not there on the page. So as a default action page is getting opened in the new window. Just remove the frame's target property and you are done. Now frame will open in the same window. You can specify target as '_self" as well.

Sumit Mishra
A: 

You also may try:

From the Iframe properties window, make sure that the "restrict cross frame scripting" check box is de-selected.

This solved a problem of mine that was similar to the one above.

thanks,

lgados