Is it possible to detect browser information directly from FLEX????

Hi All,
Can we detect our browser information (Browser Name, Version
etc) directly from FLEX? I don't want to use External Interface for
this purpose. Pease reply me soon.
Thanks,
Amit

Hi Amit,
The replies from Gnomann are correct.
Following the logic that Gnomann cited in his second post
(suggesting using ExternalInterface to execute browser JavaScript),
following are some examples.
These examples also demonstrate how JavaScript methods can be
written in-line directly in the ExternalInterface.call() execution:
var appName:String =
ExternalInterface.call( "function getAppName(){ return
navigator.appName; }"
var userAgent:String =
ExternalInterface.call( "function getUserAgent() { return
navigator.userAgent; }"
var appVersion:String =
ExternalInterface.call( "function getAppVersion(){ return
navigator.appVersion; }"
I have posted a different, runnable example here:
http://flexflashvideo.com/codesamples/flex/flex3/browserinfo/
You can right-click on the swf at the link above for "
View
Source"
btw ... an advantage of writing the JavaScript methods
in-line in the ActionScript ExternalInterface.call() executions is
that all of the code can be encapsulated in the Flex logic. That is
you do not have to write the JavaScript separately in the HTML
wrapper. You can if you want, of course. Certainly no harm in that
;-) Since your original question was how to detect the browser
information "directly from FLEX", I suspect you might like being
able to write the JavaScript methods in-line ;-)
Please post back regarding whether the above answers your
question, and if you find it helpful :-)
Best regards,
g

Similar Messages

  • Detect browser version & type from a servlet

    How can I detect browser version & type from a servlet ?
              jo
              

    Jo,
              Pls refer SnoopServlet.java(weblogic_home/examples/servlets) which
              comes with weblogic installation.
              Kumar
              Jan-Olav Eide wrote:
              > How can I detect browser version & type from a servlet ?
              >
              > --
              > jo
              

  • How to detect browser close event in flex ?

    How to detect browser close event in flex ?

    This link may help:
    http://cookbooks.adobe.com/post_Close_event_of_browser_or_browser_tab-18211.html
    Best,

  • Is it possible to control a Mac directly from an iOS device without being connected to a WiFi network, i.e. an airport or similar.

    I would like to control my MacMini (Late 2012) 2.3GHz Intel Quad Core i7 processor directly from my iOS device, either my iPhone 6 or my iPad G3. By directly I mean without having a wireless or wired network in place.
    I know there are a number of iOS apps that utilize VNC technology but I believe they all require the Mac to be connected via WiFi to an Airport or similar wireless networking device. I would like to control my MacMini remotely without having it already connected to a WiFi network and wondered is it possible? The iOS device and Mac would be in close proximity to one another.
    Has anyone had any experience with this? Thanks.

    Guys, thanks but I did not mean to control it by infrared. I know only too well that iOS devices do not have that capability. However they and the Mac both can send and receive WiFi signals so is there any reason they can't talk to each other directly.
    When I am in my home I have an airport but I would like to take the Mac Mini out on music gigs with my Apollo interface which serves as my mic preamp and mixer as it does in my studio but the Apollo needs to be connected to the mac via thunderbolt to download the plugin software that provides reverb and eq, etc. I would like to do this without the need of a monitor and keyboard, hence my dilemma. The only thing I basically need to do is start the mini and the rest happens automatically but I need to also shut down (which I know can be accomplished a couple of ways) but with out having a visual interface you can't make any changes or verify what setting are being used.

  • Power Mac G5 Information Direction (From Desktop to Server)

    I have a Power Mac G5 Desktop computer. It has USB and Firewire ports. I am currently using it as a home computer, but with the recent purchase of two laptops, I've decide to use this computer as a web server. I don't necessarily need to bother everyone here with the "how to's of this", but if someone can lead me in the right direction. I have some computer skills, but I am new to the mac. I love it by the way. There is also the problem my dad and I are facing with a recipe database on Filemaker Pro. We want to publish that on the web. I have many questions and so few answers. Thanks
    Hold That Thought    

    Thanks so far for writing. My questions are pretty
    general.
    I know Macheist is offering a web page creator
    program right now in their special bundle offer. Is
    this something I should use to create a web page for
    the macintosh platform?
    I can't offer any advice on RapidWeaver that's in that bundle - I've never used it. I'm maybe a bit old-fashioned; I prefer to hand code my web pages.
    What FTP program, firewall, automatic restart
    hardware, switch should I use?
    For FTP, my personal favorite is Transmit. There are other fine FTP programs such as Fetch and Interarchy.
    If you have a DSL or cable router hooked up, many of them have built-in firewalls. I have one from Belkin. The Linksys ones are also very popular. The DSL or cable routers will usually have a 4-5 port switch built-in.
    I have no knowledge of automatic restart hardware, so I can't recommend anything there. On a related note, I'd strongly recommend getting a UPS (uninterruptible power supply) for the G5. In the event of a power failure, the computer won't immediately shut off, which is bad for it and your files. Instead, it'll run on the UPS's battery for a little bit, giving you the chance to shut it off properly, or the OS can shut the computer down when the battery runs low. UPS's also work as surge suppressors and line conditioners in many models. The model you'll need will depend on which G5 you have, how much battery runtime you'd want, and what peripherals you need to run as well.
    Is the software firewall protection in OS X
    sufficient enough for the software firewall?
    Probably. It wouldn't hurt to use the firewall in your router at the same time, though.
    My dad is in WY and I'm in OH. I want to be able to
    use a database he has and have that database update
    on his database, when we tried using the public web
    sharing today, we were able to see each other, but
    not our files? Why?
    When you're using the webserver, only files in /Library/WebServer/Documents/ or ~/Sites/ will be visible. These would be accessed at http://youripaddress/ and http://yourip_address/~your_username/, respectively. Of course, there are default pages in both of those locations, so you won't be able to get a directory listing unless you rename or delete the index.html file.
    Browsing through the other computer will only give you read access, so you won't be able to update his database via your web browser, unless you setup FileMaker to interface with Apache, and I have no experience with that.
    OS X also ships with an FTP server which would allow you to upload changes to your dad's computer. I don't recall how to set it up, but I'm sure you could find instructions on how to do that elsewhere. If you go with this route, turn on both FTP Access and Remote Login. This will allow you to use Secure FTP (SFTP) and Secure Copy (SCP), both of which will encrypt your data transmissions.
    I bought the PowerMac from a friend, how do I find
    out exactly what is in this machine? I have two
    other laptops, should I call apple and beg them to
    look up the serial number?
    Go to the Apple Menu and choose 'About This Mac'. There's a button on there for More Info. This launches System Profiler (or you can just go to /Applications/Utilities/System Profiler), which gives you a very detailed report of your computer.
    I have many more questions, but i'll start with
    these. Again, thank you.

  • Possible to extract R3 attributes directly from portal?

    To get an IUser object the following code can  be used:
    IWDClientUser wduser = WDClientUser.getCurrentUser();
    IUser result = wduser.getSAPUser();
    The IUser has several methods like getCIty() & getEmail(). Is it possible to retrieve custom attributes for this object?
    What does the method getTransientAttribute() do?
    Thanks

    Hi,
    Object getTransientAttribute(String namespace,String name)
    Generic get method to access additional transient attributes.
    These attributes are contained in separate namespaces, and
    are accessible via their names. Attributes that are in no
    distinct namespace are formally located in the namespace
    null.
    Note: the transient attributes are instance specific.
    Parameters:
    namespace - namespace the attribute is in (may be null)
    name - name of the attribute
    Returns:
    the values of the respective attribute, or null if this namespace
    or attribute within this namespace does not exist
    regards
    Surender Dahiya

  • Is it possible to use Lightroom/Photoshop directly from a external hard drive?

    As a beginner at Lightroom and Photoshop and still having a large amount of old photos I want to work with, can I leave them on the external hard drive or do I have to import them to work on them?  My constraint of course is space. Thanks, Wyndon

    Your photos can reside on any hard drive or even a network drive that is connected to your computer. The import process doesn't put the image "in" Lightroom, but rather simply creates a pointer in the database so that Lightroom can keep track the adjustments and changes that you make. Lightroom will create a preview image, and you can control the size of those previews making them smaller if space on your hard drive is limited. You can even move the folder containing your catalog to the external hard drive if you want. This would minimize the amount of space taken by the Lightroom program. The catalog can reside on any hard drive connected to your computer, but cannot be on a network drive.

  • Can I write a program in C/C++ and call iPlanet APIs and get the performance related information directly from iPlanet webserver ?

    Just to give an example, Microsoft IIS webserver provides the
    performance counters, which one can read from registry using
    APIs provided by Microsoft from a C/C++ program and get all the
    performance related data ... r some similar interfaces
    provided by iPlanet webserver ???

    The spell checked version...
    I really appreciate the replies. I have looked into RMI and think it might fit the bill, ,BUT, let me clarify a bit and see if there are any other ideas floating around out there.
    A user, using a web interface on machine A will click the , "I want my file" button. This flags the DB to create a file for that user. I will have multiple daemons running on other machines B,C,D whose sole job is to check the db, compile the file (This is the part that takes huge overhead so I wanted it distributed), then write the file. The trick is the file needs to be written to machine A. So I figure, using RMI, I can write a simple "write this file" object that will accept a byte stream or byte array, and a correct path to write to. Does this sound like a good methodology?
    I've never done anything like this so I am really shooting in the dark.
    Thanks again for the posts.
    Paul

  • Browser Scroll Bar from Flex

    How to get and use the Browser Scroll Bar whenever Window resizing occurs .
    Suggest me .

    I have the same exact problem. In my application, we have set HorizontalScrollBar Policy to Auto and On, but it never seems to work.
    The problem with my application is, on a smaller resolution screen, I cannot scroll over to parts of the Application, they get cut off by the browser with no way of scrolling to it.
    How can I fix that? This seems to be rather difficult. But it shouldnt be.
    We've tried to edit the HTML template and add scroll bars there. We can get them to appear but are not functional, and they do not scroll ever.
    Does anyone have a real solution to this?

  • Card Validation and Verification directly from Flex

    Hi All,
    Need your help. I want to Validate and Verify a card durectly
    from Flex. I can do it by calling a external js file but i dont
    wnat to do that all. I want to check all from Flex.
    Thanks,
    Amit

    Do you mean validate a credit card number ?
    if so, you could use the class
    mx.validators.CreditCardValidator

  • Detect browser inactivity

    How is it possible for an applet to detect if the browser window becomes passive (user changed to another window)? I've seen an applet to do this but I don't understand how it's implemented.

    Jo,
              Pls refer SnoopServlet.java(weblogic_home/examples/servlets) which
              comes with weblogic installation.
              Kumar
              Jan-Olav Eide wrote:
              > How can I detect browser version & type from a servlet ?
              >
              > --
              > jo
              

  • Exposing WebService directly from ABAP Class not from BAPI

    Hi guys,
    is it possible ti expose a Webservice direct from an ABAP OO-Class.
    I know the possebility to do it for RFC enabled Funktionmodules but I think it is no good coding style to call ABAP-OO-Methods using RFC-Module only for providing them as methods of an WebService...
    Is there anyone who has exerience on that area ?
    Thanks in advance.
    Bast regards
    André

    Hi Micky,
    thanks for your answer. But the WS-Call are OO codings and the class is OO coding. From my point of view it is not a good style using an RFC Functionmodule as "middleware" between OO-Classes.
    However, if it is not possible I have to live with the possabilities SAP provides.
    regards
    André

  • Viewing/modifying Extra information Types from self service

    Hi, Is it possible to mody extra information types from Self Service and does anyone know where I can find setup documents?

    check this - http://oracleappssol.blogspot.co.uk/2012/08/creating-extra-information-types-as.html

  • Is it possible to test Web Service operation from Browser

    Hi,
    I'm new with Web Logic and Web Service.
    Weblogic version: 10.3.5
    SOAP Web Service with RPC/Literal message format
    Created a Web Service and deployed that onto Web Logic.
    Also managed to get the WSDL page. However, when i tried to invoke one of the method from a web browser, it gives me a 404 Error. Not found.
    WSDL URL
    http://localhost:7778/self_service-self_service-context-root/self_servicePort?WSDL
    Method:
    <WL5G3N0:operation name="trivialProc">
    <WL5G3N3:operation soapAction="http://package/Self_service.wsdl/trivialProc"/>
    <WL5G3N0:input>
    <WL5G3N3:body use="literal" parts="String_1 Integer_2 String_3" namespace="http://package/Self_service.wsdl"/>
    </WL5G3N0:input>
    <WL5G3N0:output>
    <WL5G3N3:body use="literal" namespace="http://package/Self_service.wsdl"/>
    </WL5G3N0:output>
    </WL5G3N0:operation>
    Is it possible to test Web Service method through browser?
    I used Web Service on OC4J previously, and I was able to test the method directly from a web browser.
    Thanks
    Regards,
    Andi

    you can test web service using testclient option in weblogic
    for more information please check below link
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/webservices/TestAWebService.html
    http://docs.oracle.com/cd/E13224_01/wlw/docs100/guide/webservices/WSTutorial/tutWebSvcStep4.html
    Regards,
    Sunil P

  • Is it possible to get the information from the complete forms send to different email account

    When i have a paid account is it than possible to get the information from the different forms send to seperate emailaddresses.
    Who dont have a account from formscentral but just need the information directly in there own inboxes?
    Because we're looking for a good and simple way to make qoustion & complain forms. But these need to go to different people in the company.

    You can have notifications sent to multiple email addresses, but each will need to have a FormsCentral account.  They can be free accounts.  What you do is create your form and set up the email addresses that you want the information to go to to be Co-authors or Contributors.  The co-author/contributor accounts will then need to log into FormsCentral, go to the Options tab and check the email notifications checkbox. 
    I hope this helps.
    -Jeff

Maybe you are looking for