ive been getting this

Severity and Description    Path    Resource    Location    Creation
Time    Id
Parse error at '<mx:HTTPService>'.    test/src    test.mxml    line 36
1206558734203    125

and i moved the code for httpservice around with no luck keeps pointing
to line that has
<mx:DataGrid id="dgUserRequest" x="21" y="50"
dataProvider="{userRequest.lastResult.users.user}" width="1008"
height="443">

I just cant understand what its complaining about


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="send_data()">
     <mx:Script>
         <![CDATA[

             import mx.controls.Alert;
             import mx.controls.ComboBox;

             public function send_data():void {
                 userRequest.send();
             }



             [Bindable]
             public var tmp: Array = [ {label:"", data:0},
{label:"Linux", data:1},  {label:"Oracle", data:2}, {label:"Networking",
data:3} ];

         ]]>
     </mx:Script>

     <mx:HTTPService id="userRequest" url="http://10.108.111.182/xml.php";
useProxy="false" method="POST" showBusyCursor="true">
         <mx:request xmlns="">
             <searchbox>{searchbox.text}</searchbox>
         </mx:request>
     </mx:HTTPService>

     <mx:Label x="10" y="10" text="Welcome to the Blog" width="822"
height="37" alpha="1.0" id="header1"/>

     <mx:TabNavigator width="1048" height="577" y="55">

     <mx:Canvas label="Search" width="100%" height="100%">
     <mx:ComboBox x="21" y="10" width="280" id="searchbox"
editable="true" enabled="true" dataProvider="{tmp}"></mx:ComboBox>
     <mx:DateField x="401" y="10" id="datewithin" showToday="true"
enabled="true"/>
     <mx:Button x="318" y="10" label="Search" id="searchbutton"
enabled="true" click="send_data()" />
     <mx:DataGrid id="dgUserRequest" x="21" y="50"
dataProvider="{userRequest.lastResult.users.user}" width="1008"
height="443">
         <mx:columns>
             <mx:DataGridColumn headerText="User Name"
dataField="username" width="70" />
             <mx:DataGridColumn headerText="Date" dataField="datefield"
width="150" />
             <mx:DataGridColumn headerText="Description"
dataField="description"/>
         </mx:columns>
     </mx:DataGrid>
     </mx:Canvas>
     <mx:Canvas label="Details" width="100%" height="100%">
     </mx:Canvas>

     </mx:TabNavigator>



</mx:Application>




Reply via email to