Use HTTPService to access php : HTTPService « Data Model « Flex






Use HTTPService to access php

Use HTTPService to access php
    
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="rssRequest.send()" layout="absolute">
    <mx:HTTPService id="rssRequest" url="http://server.com/proxy.php" />
    <mx:Panel width="500" height="500" layout="absolute" title="{rssRequest.lastResult.rss.channel.title}">
        <mx:VBox width="100%" height="100%">
            <mx:DataGrid width="100%" height="200" id="datagridBooks">
                <mx:columns>
                    <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
                </mx:columns>
            </mx:DataGrid>
            <mx:TextArea width="100%" height="200"/>
            <mx:LinkButton label="Book"/>
        </mx:VBox>
    </mx:Panel>
</mx:Application>

   
    
    
    
  








Related examples in the same category

1.Access returning value from a HTTPService
2.Request response data communication with HTTPServiceRequest response data communication with HTTPService
3.Pass parameter to HTTPService
4.Use HTTPService to call Php page and pass parameter with requestUse HTTPService to call Php page and pass parameter with request
5.A url property on the HTTPService componentA url property on the HTTPService component
6.Convert returning value from HTTPService to ArrayCollectionConvert returning value from HTTPService to ArrayCollection
7.Feed returning value from HTTPService to a DataGridFeed returning value from HTTPService to a DataGrid
8.Use HTTPService to call a jsp pageUse HTTPService to call a jsp page
9.Add ItemResponder for HTTPServiceAdd ItemResponder for HTTPService
10.Use HTTPService to load an image fileUse HTTPService to load an image file
11.HTTPService fault event and result eventHTTPService fault event and result event
12.Read binary resource from HTTPService
13.Set result format of HTTPService to E4XSet result format of HTTPService to E4X
14.Use an ArrayCollection, convert the HTTPService result to an ArrayCollectionUse an ArrayCollection, convert the HTTPService result to an ArrayCollection
15.Define XML file as a URL for an HTTPService component, and bind HTTPService result directly to the chart's data provider
16.Calling HTTP services in ActionScript
17.Default Proxy Destination
18.Named Proxy Destination CompleteNamed Proxy Destination Complete
19.Atom serviceAtom service
20.RSS feed client
21.Rss readerRss reader
22.Two ways to call an HTTP service using the send() method with a parameterTwo ways to call an HTTP service using the send() method with a parameter