hai,
I have a flex application with a tilelist of images. On click of each image takes me to a html page which has some details regarding the image. I have a button on each html page say"add" then it must add the particaular item to a datagri\d in my flex application.. how should i pass the data from html page to flex application.? please help me with the code to do this. i am adding the code of mine below.
Mxml application:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="*"
creationComplete="iFrame.visible=true">
creationComplete="iFrame.visible=true">
<mx:Model id="catalog" source="catalog.xml"/>
<mx:HBox width="100%" height="100%">
<mx:Panel title="Tile" width="200" height="100%" panelBorderStyle="roundCorners">
<mx:TileList id="tile"
dataProvider="{catalog.product}"
width="100%"
height="100%"
cellRenderer="Thumbnail"
itemWidth="120"
itemHeight="108" change="iFrame.source=tile.selectedItem.path"/>
dataProvider="{catalog.product}"
width="100%"
height="100%"
cellRenderer="Thumbnail"
itemWidth="120"
itemHeight="108" change="iFrame.source=tile.selectedItem.path"/>
</mx:Panel>
<mx:Panel title="Content" width="100%" height="100%" marginTop="1" marginBottom="1" marginLeft="1" marginRight="1">
<IFrame id="iFrame" width="100%" height="100%"/>
<mx:ControlBar>
<mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/>
</mx:ControlBar>
</mx:Panel>
<IFrame id="iFrame" width="100%" height="100%"/>
<mx:ControlBar>
<mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/>
</mx:ControlBar>
</mx:Panel>
</mx:HBox>
</mx:Application>
Html page which gets loaded during click of the first image in tileList is:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Product Detail</title>
</head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Product Detail</title>
</head>
<body>
<form ACTION="" name="cart/data" METHOD="post">
<input TYPE="button" name="Add to Cart" VALUE="cart">
</form>
</body>
</html>
<form ACTION="" name="cart/data" METHOD="post">
<input TYPE="button" name="Add to Cart" VALUE="cart">
</form>
</body>
</html>
Say i have a datagrid in the panel of the flex application then on click of the button "add" in the html page it must add the item(in tile list, on click of which the html page opended) to the datagrid.. how should i do it? please help.. It needs quick solution please..
thanks,
nithya
Send instant messages to your online friends http://uk.messenger.yahoo.com
Yahoo! Groups Links
http://groups.yahoo.com/group/flexcoders/
[EMAIL PROTECTED]

