Hi,

 

Is there a way I could pass a whole SelectedItem of DataGrid from FLEX(1.5) to _javascript_?

Code snippet--à

 

<script language="_javascript_">

function transferObject ( )

{

            // Print the Entire Row in HTML

}  

</script>

</HEAD>

<BODY bgcolor="#FFFFFF">

 

<mm:mxml border="1" id="flexApp" name="flexApp">

<mx:Script>                   

            <![CDATA[

 

                function transport()

                {

                                    var test5:String = dg.selectedItem;

                                    getURL("_javascript_:transferObject(test5)");// I have to pass entire row of the datagrid

                }                  

 

            ]]>       

            </mx:Script>

 

    <mx:Model id="employeeModel" source="employees.xml"/>

    <mx:DataGrid id="dg" width="100%" height="100%"

        dataProvider="{employeeModel.employee}" change="transport();">

        <mx:columns>

            <mx:Array>

                <mx:DataGridColumn columnName="name" headerText="Name"/>

                <mx:DataGridColumn columnName="phone" headerText="Phone"/>

                <mx:DataGridColumn columnName="email" headerText="Email"/>

            </mx:Array>

        </mx:columns>

    </mx:DataGrid>

 

 

Thank you,

 

Shahnavaz Alware

Software Engineer

Office: 760-929-2300 ext 140

www.visiprise.com

 

It is our company policy not to accept email of any data controlled by the International Traffic in Arms Regulations (ITAR).  Please contact our Security Officer, Alexander Houtzeel, for instructions and authorization to transmit such data.

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to