raffialexanian
01-20-2009, 02:26 PM
Hi all;
My flex popup embeds an aspx page. This popup is triggered when the user click's a certain area in a map (ESRI map API for Flex). The first popup (parcelsPopUpWindow.mxml) is triggered when the click happens. The user then selects if he/she wants to add a listing in that area for either business or real estate. So the popup has a button for each option, clicking the button launches a second popup (OrdersPopUpWindow.mxml). This all happens fine only when I launch the application locally in IE. In all other browsers, the second popup doesn’t embed the aspx page. Strange thing is I can access both aspx pages (real estate and business) directly from all browsers, so it’s hard to emagine a permission issue here, can anyone please help?
Thanks
Raffi
parcelsPopUpWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" title="Parcel Information"
fontWeight="normal"
borderColor="#970101" backgroundColor="#010000" cornerRadius="10" width="526" height="200" borderStyle="solid"
roundedBottomCorners="true" color="#E90D02" verticalScrollPolicy="auto" focusEnabled="true" activate="init();">
<mx:Style source="Voda_css.css"/>
<mx:HBox width="100%" height="20">
<mx:Label text="Parcel ID" width="100"/>
<mx:Text id="ParcelID" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
</mx:HBox>
<mx:HBox width="100%" height="20">
<mx:Label text="X Coordinate" width="100"/>
<mx:Text id="xCo" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
<mx:Label text="Y Coordinate" width="100"/><mx:Text id="yCo" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
</mx:HBox>
<mx:HBox width="100%" height="20">
<mx:Label text="Sector" width="100"/>
<mx:Text id="SectorID" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
<mx:Label text="City" width="100"/>
<mx:Text id="CityID" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
</mx:HBox>
<mx:Metadata>
[Event(name="ok", type="flash.events.Event")]
</mx:Metadata>
<mx:Script>
<![CDATA[
import mx.managers.FocusManager;
import mx.core.Application;
import mx.managers.PopUpManager;
import mx.controls.Alert;
var xCoordinate:String;
var yCoordinate:String;
var ordersWindow:OrdersPopUpWindow;
var realWindow:OrdersPopUpWindow;
private function addBusinessShowPopUp():void
{
ordersWindow = new OrdersPopUpWindow();
PopUpManager.addPopUp(ordersWindow, this, true);
ordersWindow.addEventListener("ok",closeHandler );
ordersWindow.frame.source="http://www.digitaleg.com/DigitalEg/submitBusiness.aspx?Parcel="+ParcelID.text+"_"+SectorID.text+"_"+CityID.text+"_"+xCo.text+"_"+yCo.text;
ordersWindow.x=200;
ordersWindow.y=100;
}
private function addRealEstateShowPopUp():void
{
realWindow = new OrdersPopUpWindow();
PopUpManager.addPopUp(realWindow, this, true);
realWindow.frame.label = "Submit Real Estate";
realWindow.addEventListener("ok",closeHandler );
realWindow.frame.source="http://www.digitaleg.com/DigitalEg/submitRealEstate.aspx?Parcel="+ParcelID.text+"_"+SectorID.text+"_"+CityID.text+"_"+xCo.text+"_"+yCo.text;
realWindow.x=200;
realWindow.y=100;
}
private function closeHandler(event:Event):void
{
PopUpManager.removePopUp(ordersWindow);
PopUpManager.removePopUp(realWindow);
}
private function okClickHandler():void
{
var e:Event = new Event("OK");
dispatchEvent(e);
}
]]>
</mx:Script>
<mx:HBox width="100%" height="100%" verticalAlign="middle" horizontalAlign="center">
<mx:Button id="ook1" label="Add Real Estate" color="#FEFCFC" themeColor="#FF0006" styleName="largeWidthButton" buttonMode="true" focusEnabled="true" paddingTop="5" click="addRealEstateShowPopUp();"/>
<mx:Button id="ook0" label="Add Business" color="#FFFFFF" themeColor="#FF0006" styleName="largeWidthButton" buttonMode="true" focusEnabled="true" click="addBusinessShowPopUp();" paddingTop="5"/>
</mx:HBox>
<mx:ControlBar horizontalAlign="center">
<mx:Button id="ook" label="OK" color="#FEFEFE" themeColor="#FF0006" click="okClickHandler()" styleName="popUpQuickFind" buttonMode="true" focusEnabled="true" paddingTop="5"/>
</mx:ControlBar>
</mx:TitleWindow>
OrdersPopUpWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" layout="vertical"
width="800" height="500"
verticalScrollPolicy="auto" focusEnabled="true" styleName="searchResults">
<mx:Style source="Voda_css.css"/>
<mx:TabNavigator id="tab" width="100%" height="100%">
<local:IFrame id="frame"
label="Submit Business"
source="http://www.digitaleg.com/DigitalEg/submitBusiness.aspx?Parcel=0_Generic_Generic"
width="100%" height="100%"
styleName="advancedDGrid" fontWeight="bold"/>
</mx:TabNavigator>
<mx:Metadata>
[Event(name="ok", type="flash.events.Event")]
</mx:Metadata>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.managers.PopUpManager;
private function okClickHandler():void
{
frame.visible=false;
var e:Event = new Event("ok");
dispatchEvent(e);
}
]]>
</mx:Script>
<mx:ControlBar horizontalAlign="center">
<mx:Button label="Close" color="#FEFEFE" themeColor="#FF0006" click="okClickHandler()" styleName="popUpQuickFind" buttonMode="true" focusEnabled="true"/>
</mx:ControlBar>
</mx:TitleWindow>
My flex popup embeds an aspx page. This popup is triggered when the user click's a certain area in a map (ESRI map API for Flex). The first popup (parcelsPopUpWindow.mxml) is triggered when the click happens. The user then selects if he/she wants to add a listing in that area for either business or real estate. So the popup has a button for each option, clicking the button launches a second popup (OrdersPopUpWindow.mxml). This all happens fine only when I launch the application locally in IE. In all other browsers, the second popup doesn’t embed the aspx page. Strange thing is I can access both aspx pages (real estate and business) directly from all browsers, so it’s hard to emagine a permission issue here, can anyone please help?
Thanks
Raffi
parcelsPopUpWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" title="Parcel Information"
fontWeight="normal"
borderColor="#970101" backgroundColor="#010000" cornerRadius="10" width="526" height="200" borderStyle="solid"
roundedBottomCorners="true" color="#E90D02" verticalScrollPolicy="auto" focusEnabled="true" activate="init();">
<mx:Style source="Voda_css.css"/>
<mx:HBox width="100%" height="20">
<mx:Label text="Parcel ID" width="100"/>
<mx:Text id="ParcelID" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
</mx:HBox>
<mx:HBox width="100%" height="20">
<mx:Label text="X Coordinate" width="100"/>
<mx:Text id="xCo" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
<mx:Label text="Y Coordinate" width="100"/><mx:Text id="yCo" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
</mx:HBox>
<mx:HBox width="100%" height="20">
<mx:Label text="Sector" width="100"/>
<mx:Text id="SectorID" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
<mx:Label text="City" width="100"/>
<mx:Text id="CityID" selectable="false" height="100%" textAlign="left" width="100%" color="#FFFFFF" fontWeight="bold"/>
</mx:HBox>
<mx:Metadata>
[Event(name="ok", type="flash.events.Event")]
</mx:Metadata>
<mx:Script>
<![CDATA[
import mx.managers.FocusManager;
import mx.core.Application;
import mx.managers.PopUpManager;
import mx.controls.Alert;
var xCoordinate:String;
var yCoordinate:String;
var ordersWindow:OrdersPopUpWindow;
var realWindow:OrdersPopUpWindow;
private function addBusinessShowPopUp():void
{
ordersWindow = new OrdersPopUpWindow();
PopUpManager.addPopUp(ordersWindow, this, true);
ordersWindow.addEventListener("ok",closeHandler );
ordersWindow.frame.source="http://www.digitaleg.com/DigitalEg/submitBusiness.aspx?Parcel="+ParcelID.text+"_"+SectorID.text+"_"+CityID.text+"_"+xCo.text+"_"+yCo.text;
ordersWindow.x=200;
ordersWindow.y=100;
}
private function addRealEstateShowPopUp():void
{
realWindow = new OrdersPopUpWindow();
PopUpManager.addPopUp(realWindow, this, true);
realWindow.frame.label = "Submit Real Estate";
realWindow.addEventListener("ok",closeHandler );
realWindow.frame.source="http://www.digitaleg.com/DigitalEg/submitRealEstate.aspx?Parcel="+ParcelID.text+"_"+SectorID.text+"_"+CityID.text+"_"+xCo.text+"_"+yCo.text;
realWindow.x=200;
realWindow.y=100;
}
private function closeHandler(event:Event):void
{
PopUpManager.removePopUp(ordersWindow);
PopUpManager.removePopUp(realWindow);
}
private function okClickHandler():void
{
var e:Event = new Event("OK");
dispatchEvent(e);
}
]]>
</mx:Script>
<mx:HBox width="100%" height="100%" verticalAlign="middle" horizontalAlign="center">
<mx:Button id="ook1" label="Add Real Estate" color="#FEFCFC" themeColor="#FF0006" styleName="largeWidthButton" buttonMode="true" focusEnabled="true" paddingTop="5" click="addRealEstateShowPopUp();"/>
<mx:Button id="ook0" label="Add Business" color="#FFFFFF" themeColor="#FF0006" styleName="largeWidthButton" buttonMode="true" focusEnabled="true" click="addBusinessShowPopUp();" paddingTop="5"/>
</mx:HBox>
<mx:ControlBar horizontalAlign="center">
<mx:Button id="ook" label="OK" color="#FEFEFE" themeColor="#FF0006" click="okClickHandler()" styleName="popUpQuickFind" buttonMode="true" focusEnabled="true" paddingTop="5"/>
</mx:ControlBar>
</mx:TitleWindow>
OrdersPopUpWindow.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:local="*" layout="vertical"
width="800" height="500"
verticalScrollPolicy="auto" focusEnabled="true" styleName="searchResults">
<mx:Style source="Voda_css.css"/>
<mx:TabNavigator id="tab" width="100%" height="100%">
<local:IFrame id="frame"
label="Submit Business"
source="http://www.digitaleg.com/DigitalEg/submitBusiness.aspx?Parcel=0_Generic_Generic"
width="100%" height="100%"
styleName="advancedDGrid" fontWeight="bold"/>
</mx:TabNavigator>
<mx:Metadata>
[Event(name="ok", type="flash.events.Event")]
</mx:Metadata>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.managers.PopUpManager;
private function okClickHandler():void
{
frame.visible=false;
var e:Event = new Event("ok");
dispatchEvent(e);
}
]]>
</mx:Script>
<mx:ControlBar horizontalAlign="center">
<mx:Button label="Close" color="#FEFEFE" themeColor="#FF0006" click="okClickHandler()" styleName="popUpQuickFind" buttonMode="true" focusEnabled="true"/>
</mx:ControlBar>
</mx:TitleWindow>