uot;") _lc.send("cartConnection", "addItemToCart", {name: name.text, orderno: orderno.text}); } /mx:Script
mx:VBoxmx:Text id="name" text="Prod 1" /mx:Text id="orderno" text="#0011"/mx:Button label="Add" click="addRow()"
hai, i have a flex appl that would call a jsp page. in the jsp page i have an embedded mxml witha button "add". when i trigger that it must get added to my mxml page outside jsp page. how to do this? my code is as below:
mxml:
?xml version="1.0" encoding="utf-8"?
mx:Application
cart; var _lc:LocalConnection;
function
onAppInit()
{ _lc =
new
LocalConnection();
} function
addRow() {
//if (name.text != "") cart.addItem( {name: name.text, orderno: orderno.text}
);
if(name.text != "") _lc.send("cartConnection", "addItemToCart", {n
3 matches
Mail list logo