How to Detecting Network Connectivity(internet is on or off) in Flex web application?

Hi
Detecting Network Connectivity in Flex web application not in AIR Application.
how to check wheather internet is on of off in PC via Web appliaction in Flex?
Thanks
Sunil

Thank You  very much  yancaoshi

Similar Messages

  • How to upload pdf file in a canvas in flex web application?

    how to upload pdf file in a canvas in flex web application?

    Hey saif.antri,
    You can view PDFs and more using iBooks on your iPhone:
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch
    http://support.apple.com/kb/HT4227
    Have a great day,
    Delgadoh

  • How to create and save a file in flex web application ?

    Hi,
          I want to create and save a file form flex web application. Is it possible ?
    I have done some googling and found that its only possible through file referece, which needs some serverside implementation be called.
    Is it not possible with file reference to create and save file directly ?
    Can any one suggest how to over come this.
    Thanks in advance.

    Alex,
    code written with the Flex Builder 3 libraries will certainly run in Flash Player 10. However, what you need is not so much the capabilities of FP10 but the library functionalities of the Flex 4 package. And I think that Flex 4 code will only run in FP10 and not 9 (but haven't tested this as at work we have not yet been permitted to upgrade, so there is not a lot of point going for Flex 4!).
    Richard

  • Detecting network connection

    I'm developing an app for IOS which stores data on a web server and thus does not work offline. So I need to detect if connection is available (also required for app approval). I've found some solutions for AIR by googling but they don't seem to be available for IOS.
    So how can I detect connection on IOS?
    I've set UIRequiresPersistentWiFi in the app's xml to YES but it doesn't do the job, it only detects if airplane mode is on.

    The below function is used to check for Internet Connection in Flex for all devices.
    You also have to listen to change event of NetworkInfo so that in middle of the application if internet is disconnected then that case is handled.
    private function checkInternetConnection():Boolean
                var interfaces:Vector.<NetworkInterface> = NetworkInfo.networkInfo.findInterfaces();
                if(interfaces.length==0)
                    return true;
                for(var i:uint = 0; i < interfaces.length; i++)
                    if(interfaces[i].name.toLowerCase() == "wifi" && interfaces[i].active)
                        trace("WiFi connection enabled");
                        return true;
                    else if(interfaces[i].name.toLowerCase() == "mobile" && interfaces[i].active)
                        trace("Mobile data connection enabled");
                        return true;
                return false;

  • How to detect device connected to Ethernet

    Hi,
    How do I detect devices connected to Ethernet using LabVIEW.
    My requirement is:
    I need to detect all devices connected to ethernet in my network.Need to list down all IP of the devices.
    Can anyone help me in this...

    Found it. However its written a long time ago when I still created spagetti diagrams that give you eye diarrhea, and its bad coding. If someone should use it and cleans it up, please post the cleaned up version
    It uses the arp command. prob. other ways to solve this too
    Attachments:
    IPMAC_scanner.vi ‏33 KB

  • Can't detect Network Connection?

    I'm using a wireless connection at the library, and as long as I connect through Firefox it works fine (Safari gets picky about it), but I have trouble with both Mail and iChat AV. Neither can detect the connection at all. I ran connection doctor, and it just told me I have no network connection. I pinged the servers through Network Utility and it worked perfectly.
    Any tips or tricks to get this running? Did Bill screw up our wireless? Do Linksys WAP54G not work with Mail and iChat?
    At least my browsers work, but it would be nice to use some other programs...

    Hi Emi,
    You would like to thinks so.
    Go to System Preferences.
    Then Network.
    Choose the connection method from the second drop down.
    Choose the TCP/IP tab
    Does this read "Using DHCP" ?
    What is the IP below that for your computer ?
    Further down what is the "router" IP ?
    Also make and model is your modem ?
    If the Linksys is the "router" as shown in the IP above then it should be shown as 192.168.1.254
    If you see this IP type it into a web browser.
    (just the Numbers not www or http bits)
    After you hit enter you should get a pop up asking for User ID and password. If the WAP54G is still in default settings then these should both be admin in lower case.
    Can you tell us what the connection method says at the top of the Setup page please ?
    4:05 PM Saturday; December 16, 2006

  • How to handle network connection error to bussiness service on OSB

    Hello everyone.
    Thank for your attentions. I need some help for error handling in OSB 11g. I have a proxy service that route to a business service to check profile status. I'm using java client to consume proxy service and return result to customers. The problem that I'm face to is the handling network connection fail.
    I want to get some message (or any useful information) from proxy service to report that connection to Business service is unavailable when that connection fail. I tried to add Error Handling but I cannot found that action from option list.
    Can you review my proxy service and tell me some resolutions?
    Any suggestion is appreciated.
    Thank in advance
    <?xml version="1.0" encoding="UTF-8"?>
    <xml-fragment xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:env="http://www.bea.com/wli/config/env" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://www.bea.com/wli/sb/pipeline/config" xmlns:con1="http://www.bea.com/wli/sb/stages/transform/config" xmlns:con2="http://www.bea.com/wli/sb/stages/config" xmlns:con3="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con4="http://www.bea.com/wli/sb/stages/logging/config">
      <ser:coreEntry isProxy="true" isEnabled="true">
        <ser:binding type="SOAP" isSoap12="false" xsi:type="con5:SoapBindingType" xmlns:con5="http://www.bea.com/wli/sb/services/bindings/config">
          <con5:wsdl ref="Test/resources/wsdl/PortalSide"/>
          <con5:port>
            <con5:name>PortalSideSOAP</con5:name>
            <con5:namespace>http://www.example.org/PortalSide/</con5:namespace>
          </con5:port>
          <con5:selector type="SOAP body"/>
          <con5:WSI-compliant>false</con5:WSI-compliant>
        </ser:binding>
        <ser:monitoring isEnabled="false">
          <ser:aggregationInterval>10</ser:aggregationInterval>
          <ser:pipelineMonitoringLevel>Pipeline</ser:pipelineMonitoringLevel>
        </ser:monitoring>
        <ser:reporting>true</ser:reporting>
        <ser:logging isEnabled="true">
          <ser:logLevel>debug</ser:logLevel>
        </ser:logging>
        <ser:sla-alerting isEnabled="true">
          <ser:alertLevel>normal</ser:alertLevel>
        </ser:sla-alerting>
        <ser:pipeline-alerting isEnabled="true">
          <ser:alertLevel>normal</ser:alertLevel>
        </ser:pipeline-alerting>
        <ser:ws-policy>
          <ser:binding-mode>wsdl-policy-attachments</ser:binding-mode>
        </ser:ws-policy>
      </ser:coreEntry>
      <ser:endpointConfig>
        <tran:provider-id>http</tran:provider-id>
        <tran:inbound>true</tran:inbound>
        <tran:URI>
          <env:value>/Test/proxy-services/DnICT_WSDL_PS</env:value>
        </tran:URI>
        <tran:inbound-properties/>
        <tran:all-headers>false</tran:all-headers>
        <tran:provider-specific>
          <http:inbound-properties/>
        </tran:provider-specific>
      </ser:endpointConfig>
      <ser:router>
        <con:pipeline type="request" name="GetRequestInfo_pipeline_pair_request">
          <con:stage name="InputProcess_stage">
            <con:context>
              <con2:varNsDecl namespace="http://www.example.org/PortalSide/" prefix="por"/>
              <con2:varNsDecl namespace="http://www.example.org/PortalSide_Test/" prefix="por1"/>
              <con2:varNsDecl namespace="http://www.example.org/OutputSchema" prefix="out"/>
            </con:context>
            <con:actions>
              <con1:assign varName="docId">
                <con2:id>_ActionId-2456490176600649155--723117a.130d7d91065.-7b86</con2:id>
                <con1:expr>
                  <con2:xqueryText>$body/por:checkStatus/documentId/text()</con2:xqueryText>
                </con1:expr>
              </con1:assign>
              <con1:assign varName="depId">
                <con2:id>_ActionId-2456490176600649155--723117a.130d7d91065.-7b69</con2:id>
                <con1:expr>
                  <con2:xqueryText>$body/por:checkStatus/departmentId/text()</con2:xqueryText>
                </con1:expr>
              </con1:assign>
              <con1:assign varName="srvId">
                <con2:id>_ActionId-4566721321360037228--34ba1746.13170e34dc9.-7d41</con2:id>
                <con1:expr>
                  <con2:xqueryText>$body/por:checkStatus/serviceId/text()</con2:xqueryText>
                </con1:expr>
              </con1:assign>
            </con:actions>
          </con:stage>
        </con:pipeline>
        <con:pipeline type="response" name="GetRequestInfo_pipeline_pair_response">
          <con:stage name="ErrorHandling">
            <con:context/>
            <con:actions/>
          </con:stage>
        </con:pipeline>
        <con:flow>
          <con:pipeline-node name="GetRequestInfo_pipeline_pair">
            <con:comment>Lay cac thong tin trong form search</con:comment>
            <con:request>GetRequestInfo_pipeline_pair_request</con:request>
            <con:response>GetRequestInfo_pipeline_pair_response</con:response>
          </con:pipeline-node>
          <con:branch-node type="condition" name="branching_public_services">
            <con:context>
              <con2:varNsDecl namespace="http://www.example.org/PortalSide/" prefix="por"/>
            </con:context>
            <con:branch-table variable="depId">
              <con:branch name="SoTTTT">
                <con:operator>equals</con:operator>
                <con:value>1</con:value>
                <con:flow>
                  <con:branch-node type="condition" name="DnICT_dept_services">
                    <con:context/>
                    <con:branch-table variable="srvId">
                      <con:branch name="DichVu_1">
                        <con:operator>equals</con:operator>
                        <con:value>1</con:value>
                        <con:flow>
                          <con:route-node name="RouteToDnICT_BS">
                            <con:context>
                              <con2:varNsDecl namespace="http://www.example.org/PortalSide/" prefix="por"/>
                              <con2:varNsDecl namespace="http://www.example.org/PortalSide_Test/" prefix="por1"/>
                              <con2:varNsDecl namespace="http://www.example.org/OutputSchema" prefix="out"/>
                            </con:context>
                            <con:actions>
                              <con3:route>
                                <con2:id>_ActionId-4566721321360037228--34ba1746.13170e34dc9.-7b4c</con2:id>
                                <con3:service ref="Test/busines-services/DnictServiceBS" xsi:type="ref:BusinessServiceRef" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
                                <con3:operation>selecttrangthai</con3:operation>
                                <con3:outboundTransform>
                                  <con1:assign varName="username">
                                    <con2:id>_ActionId-4566721321360037228--34ba1746.13170e34dc9.-7b4b</con2:id>
                                    <con1:expr>
                                      <con2:xqueryText>fn:string('stttt')</con2:xqueryText>
                                    </con1:expr>
                                  </con1:assign>
                                  <con1:assign varName="password">
                                    <con2:id>_ActionId-4566721321360037228--34ba1746.13170e34dc9.-7b4a</con2:id>
                                    <con1:expr>
                                      <con2:xqueryText>fn:string('123456')</con2:xqueryText>
                                    </con1:expr>
                                  </con1:assign>
                                  <con1:replace contents-only="true" varName="body">
                                    <con2:id>_ActionId-4566721321360037228--34ba1746.13170e34dc9.-7b49</con2:id>
                                    <con1:expr>
                                      <con2:xqueryText><![CDATA[<soap:selecttrangthai       xmlns:soap="http://soapinterop.org/">
         <username       xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">{$username}</username>
         <password       xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">{$password}</password>
         <masohoso       xsi:type="xs:string" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">{$docId}</masohoso>
    </soap:selecttrangthai>]]></con2:xqueryText>
                                    </con1:expr>
                                  </con1:replace>
                                </con3:outboundTransform>
                                <con3:responseTransform/>
                              </con3:route>
                            </con:actions>
                          </con:route-node>
                        </con:flow>
                      </con:branch>
                      <con:default-branch>
                        <con:flow/>
                      </con:default-branch>
                    </con:branch-table>
                  </con:branch-node>
                </con:flow>
              </con:branch>
              <con:branch name="SoGTVT">
                <con:operator>equals</con:operator>
                <con:value>2</con:value>
                <con:flow/>
              </con:branch>
              <con:default-branch>
                <con:flow/>
              </con:default-branch>
            </con:branch-table>
          </con:branch-node>
        </con:flow>
      </ser:router>
    </xml-fragment>P/S:
    When connection to business service is fail, I got this soap message:
    <soapenv:Envelope       xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
         <soapenv:Body>
         <soapenv:Fault>
         <faultcode>soapenv:Server</faultcode>
         <faultstring>BEA-380002: No route to host</faultstring>
         <detail>
         <con:fault       xmlns:con="http://www.bea.com/wli/sb/context">
         <con:errorCode>BEA-380002</con:errorCode>
         <con:reason>No route to host</con:reason>
         <con:location>
         <con:node>RouteToDnICT_BS</con:node>
         <con:path>request-pipeline</con:path>
         </con:location>
         </con:fault>
         </detail>
         </soapenv:Fault>
         </soapenv:Body>
         </soapenv:Envelope>Regards.
    Cuong Pham
    Edited by: Doubt_Man on Jul 28, 2011 10:26 AM

    you could add an error handler on the route-action in your proxy service.
    in there you could investigate the $fault variable and for example check which BEA-... errorcode comes back.
    then you can decide what to reply back..for example create your own soap-fault and set your own messages.
    now the default $fault generated by the osb itself will get returned
    http://www.xenta.nl/blog/2010/07/17/oracle-service-bus-11g-handling-soap-faults/
    maybe that one helps you a bit

  • How to disable network connections for an application

    Hi to all,
    I would like to know if there is any way a user can disable network connections for a specific application.
    Thank you,
    Xwang

    Yes, but I would like to block only a specific application, not all the traffic from the PC.
    I've found this "solution" which uses iptables on the net:
    "Add a group to your system (I use nonet myself), then add a rule to your output chain like this: -A OUTPUT -m owner --gid-owner nonet -j REJECT --reject-with icmp-net-unreachable Run the program for which you know in advance that you want to block, with sg (sg nonet "your_prog your_args")."
    Do you think is it right?
    Another suggestion was to use unshare to call the program disabling the net for that program only.
    The problem is that unshare is runnable only by root so, in case, I should turn on its setuid flag in order to execute the program as a normal user, but I don't know if it is safe to do that.
    Last edited by Xwang (2014-10-11 08:06:16)

  • My Safari browser not loading...why won't software update detect network connection?

    I am using Foxfire browser, and glad I did at least download such...even though Foxfire updates are not recognized by my Lion system.  This unnerves me a bit since I'd be dead in the water...and my Foxfire is getting more outdated by the day.
    My Safari browser comes up...but then does not load...remains blank.
    I tried doing a Software Update...but my system is not finding network connection.  When I did the diagnostic, my system DID recognize my wifi connection and as good.
    What should I do...?  Would like my Safari back, but more important I suppose is getting my software updates...
    thanks
    my system is Lion OS X  10.7.2

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • How to store reports on cr server 2008 and view them from web application

    Hi, I want to store my rpt files on the crystal reports server, under "Folders", and then from my web application use  "CrystalReportViewer" control to show these reports.
    Now I setup a crystal reports server 2008 on my server, and install crystal reports 2008 on my client develp machine. I have searched some sample codes from Internet, but many Business Objects dlls they used I could not find from my computer, for example, I can not find infostore dll and  Business Objects.sdk. It seems I have to install some sdk to use these objects.
    Could you tell if which sdk I have to setup to achieve my goal, or if can give me a sample would be highly appriecatied.

    Q. From your information, it likes this function above can not be done now?
    A. At the moment, the only way you can view reports stored on CR Server 2008 are with the Java SDK or OpenDocument.
    OpenDocument may be a nice option for you, as there would not be much programming involved. Please see this documentation for information how to use this. Please note that in CR Server 2008, you will be using Java OpenDocument.
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    Q. can use CR server XI instead, this version has been a while, so certainly has .net sdk available for realize this function, does'nt it?
    A. CR Server XI has the .NET SDK. You can find .NET samples here:
    https://www.sdn.sap.com/irj/boc/businessobjects-sdklibrary
    Q.  I download CRRedist2008_x86.msi and install it on my develope machine, from the instruction said it will install lots of .net dll on my computer, but I just can not find them, do you know where they are?
    A. It should install the necessary files to C:Program FilesBusiness Objects
    You can find more information about the Crystal Reports .NET distributables in the CR .NET help file, in the deployment chapter:
    https://www.sdn.sap.com/irj/boc/crystalreports-sdk
    Cheers,
    Fritz

  • How to dynamically define a file name and its path in a web application

    Hi, I want to create a simple web application that reads from an XML file and displays the data back to the user. The xml file is created independent of my application on the same machine that the Application Server runs. How can I define my xml file name and/or path to be independent of my code and not hard-coded in my application?

    By an external configurationfile? That can be a propertiesfile, a xml file, an ini file, a plain vanilla txt file, etcetera.

  • How to create file system datagrid in flex web application

    how to create file system datagrid in flex web application

    Hi,
    Check this out:
    http://shigeru-nakagaki.com/flex_samples/FileReference/FileUploadExample2/FileUploadExampl e2.html
    Johnny
    Please rate answer.

  • How to generate PDF using selcted row from datagrid in mxml flex4 web application

    hi friends.
    i am using flex4 web application with mxml tabs.
    i am having one datagrid and one button outside the grid ,
    i   am having one datagrid in that i am having 5 records if i click a   record from the datagrid then click that button means that particular   record will save as PDF in my local PC.
    How to do that,
    Any suggession or examples.
    Thanks in advance
    B.venkatesan.

    Thanks Vibhuti,
    i got some idea abt PDF save bt please tell .i have some doubts in this code
    var bytes:ByteArray = claimPDF.save(Method.LOCAL);
    var f:FileReference = new FileReference();
    f.save(bytes,"tourdeflex-pdf-sample.pdf");
    what is claimpdf and Method? it show undefiened probery error
    and f and bytes also show the same error.
    what header files i have to import for file reference concepts;
    i am using FLASH PLAYER 10;
    tell what i will do
    Thanks
    B.venkatesan

  • How to develope a NDIS miniport driver to detect network connection

    I need to develope a NDIS miniport driver to detect the current network status of a machine. If someone know how to do it please let me know.
    Thanks in advance

    Hi,
    I think we all need a little more information to help you. Are you using any NI hardware or software? What port are you trying to connect to. Some more information would be helpful.
    Thanks
    Regards
    Krista S.
    Applications Engineering
    National Instruments

  • How to access network from internet side

    Network newbie.
    Using BEFW11SW V.4 wireless router on a DSL mosdem to ISP, on small office network - 3 puters on it running XP Pro SP2/3. That side works fine for intranet and internet, mostly. snorton Norton firewall set up OK for access out.
    But I have mental block understanding how to get into my office network from outside, i.e. home via the internet. I can find the IP address of the router and the DSL modem while at work. But from home how do I route through to the computers & printers  across the internet to the work network.  What IP address works, and what ports do I try to open from the outside on the road.  Thinking in particular of remote desktop on the road, including access to office computers and printers.
    BTW remote desktop, Win Live Messanger, netmeeting all work from the office network outbound through the wireless router and DSL to internet to home puter -
    but I want the reverse path. What address/port/redirect ??
    Thanks for the kind words.

    since you want to use the Remote desktop feature....you will need to forward port number 3389 on you work router....once done...save settings the drawback here is that whenever you want o access the work pc....you will need to know the current IP you are getting from the DSL connection.. to access the work PC , open internet explorer and in the address bar type the following syntax http://your.current.wan.ip:3389

Maybe you are looking for

  • Where to buy a ADC to VGA adaptor

    Im looking for one to pick up at a store. Does anyone know who might carry a ADC to VGA adaptor?

  • Re: Select statement query

    Hi Expert, I have one report which display employee transfer details In that report i have added two new fields i.e Action type and Reason for Action.My requirement is in the selection screen i have given date.What ever date i have given in the selec

  • App Store Opens By Itself / Intrusive Gaming Ads

    When using quite a few apps, either chat, games or even browsing via Safari, for some unknown reason the current app will switch to the App Store and prompt me to download a game, usually 'Game of War' or some other such thing. It happens without war

  • CATS Error

    In the Resource Related Billing, when I upload the time-sheet to CATS by using CAT7 I get the error as: Message ID           Message No.    Message Text E BK                      202                   Document contains errors A GB                    

  • Fading background when opening new window

    Fading background when opening new window. I would like to do a "lightbox" effect that on mouseclick opens a new window over the top of the other windows(s) that has a close button to take the user back to the previous page. I have viewed this in the