Buttons call to action with Google

Hello
My landing page for mobile works great buttons call to action with the Safari browser.
But with Google Chrome and Google mobile search, do not work, have to leave your finger for several seconds, you see a menu with buttons to open, copy and cancel. But do not call!
Here the URL.
http://www.hotelruacuernavaca.com/phone/hotel-ejecutivo-en-cuernavaca.html
Thanks
Héctor
[email protected]

You can surely create a popup on your page :
https://www.youtube.com/watch?v=Ufsz0V_CRLw
Not an exact solution , but you can use a little tweak and use in similarly way.
Thanks,
Sanjit

Similar Messages

  • WebObjects 5.3 WOHyperlink can't call an action with more than one argument

    Hi there,
    I recently upgraded from WebObjects 5.2.3 to 5.3.
    I used WOHyperlink with more than one ?<ARG> binding to build http requests...
    It used to work in 5.2.3, but not anymore in 5.3. The problem stems from the ampersand character that separates args, because it is now replaced by &.
    I found a similar issue dealing with WOSubmitButton that was resolved in 5.2.3:
    http://docs.info.apple.com/article.html?artnum=107873
    Thanks for helping me out...

    Sorry about that...
    problem stems from the ampersand character that
    separates args, because it is now replaced by &.
    Please read: the problem stems from the ampersand character that separates args, because it is now replaced by &amp;
    iMac G5 Mac OS X (10.3.9)

  • Can we perform two actions with one button with two clicks one after other?

    Sir,
    can we perform two actions with one button with two clicks one after other?
    I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
    Regards
    Tanvir

    In code it should be easy.
    The following code adds a button called butman with a text "ADD".
    It then registers a listener that will be called if the button is clicked.
    This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
    Therefore it will swap the button's functionality between ADD and CLEAR on every click.
    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});I hope this is what you wanted.
    Some extra food for thought.
    You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
    I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed.

  • Trying to use Dynamic Action with button - no #BUTTON_ID#

    I saw this post: Issue with apex  dynamic action
    and I'm having exactly the same issue. I'm using the Blue and Tan Theme and the button's "normal template" looks like the following:
    <table class="t2Button" cellspacing="0" cellpadding="0" border="0"  summary="">
    <tr>
    <td class="t2L"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_2/button_left.gif" alt="" /></a></td>
    <td class="t2C"><a href="#LINK#">#LABEL#</a></td>
    <td class="t2R"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_2/button_right.gif" alt="" /></a></td>
    </tr>
    </table>Can someone help me get the #BUTTON_ID# tag in the correct spot?
    (PS. This application was originally built using APEX 3.2 and upgraded to 4.1. Don't know if that matters or not.)

    The button calls a procedure which can take several minutes to complete. It calculates and stores values for display. I'd like to open up a modal window so that the user has more concrete feedback that the calculation process is underway. I'd also like to tie it to the refresh of a particular region on the page that shows a list of the stored calculations.

  • Button action with onclick in a jsp page using Jscript

    hi,
    I am facing a problem in setting an action with a button in a jsp page the error is object does'nt support this function,kindly send me reply as soon as possible.
    Santhosh

    hi,
    I am facing a problem in setting an action with a button in a jsp page the error is object does'nt support this function,kindly send me reply as soon as possible.
    Santhosh

  • SSRS 2008 R2 - Using Action to call a report with MultiValue Parameters

    I have a report uses project names as parameter(Multi value) and display some data. I want to call this report from some other report on a click (drill down). This report has a program row where it aggregates the data, underneath Programs, I have
    list of projects(group). When I use Action on the individual projects, it takes me to the appropriate project ( I used
    Fields!ProjectName.Value). However, when user clicks on the program, it should pass the group of projects within that program to the called report. With expression,  Fields!ProjectName.Value, it only select one random project (may be first/last from
    the query) and display records. I tried Join(Fields!ProjectName.Value, ",") and Fields!ProjectName.Value(0) but now it doesn't select a sengle project. Can someone help please?

    use In instead =

  • I cant use the "google search" button but no proble, with internet explorer. The" feeling lucky" works.

    i cant use the "google search" button with firefox 3.6.6 or even 3.5. I have no problem with searching google on internet explorer. The" Im feeling lucky" button works. The google search tab on the top right corner of firefox browser works fine. But the main google search button on the google site doesnt work. I havent changed anything. i cant do anymore google searches.
    == URL of affected sites ==
    http://www. google.com

    When click on search, the Google search result didn't update (the google search page didn't change). BUT the url bar on top did have the Google URL updated with the new search term.
    Something like
    http://www.google.com/#hl=en&q=firefox+3.6+problem+with+google+search+button&aq=f&aqi=&aql=&oq=&gs_rfai=&fp=dd2d1939af06a5a
    So the URL is changed when I click the Google SEARCH button on the page. Just the page not changed nor updated.
    And when I click "Reload current Page", then the page is reloaded with the new google search result.

  • Where is the button called "tools" that Firefox keeps refering to when I ask for help with something?

    In order follow their directions for some help, I am told to use a button called "tools". Where is the darn thing?

    OH! There it is!! I knew it was a simple quest. Just can't get my head around everything this century requires in order to function effectively. whew. Thanks again, woof,
    Susan

  • Help with Designing a Website Call to Action Background

    Hi there,
    This is my first post here, but I am having a bit of trouble designing a background call to action background for my website. My website is a common responsive 980px site but the problem is how I should go about designing a background that will properly adjust to the reponsive nature of the site.
    If you want to have a look at what I mean here is my site, Galactic FX,
    Any help would be greatly appreciated,
    Kieren Hovasapian.

    Mazza,
    Try this VI out. It returns a boolean instead of an integer, but this is really the same thing from what you are talking about.
    You would use this VI as a subVI. It will pop up and allow user data entry. It passes the boolean out of it to see if the login was successful or not. You could also change things so that the password comparison (password in my case) is an input to the subVI as well.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask
    Attachments:
    Timed_login_panel.vi ‏29 KB

  • How to call an action when the user selects a radiobutton

    Hai
    PLease help me in providing the information.
    In my Project i have two radio buttons as
    New
    Asssessment
    when the user selects new button, i want to automatically call an action in the controller(.jpf file)
    Simalarly when he selects the other radio button i need to call a separate action in the controller.
    Remember i dont have the submit button.
    I want to dynamically call an action when the user selects the radio button.
    i dont have any field inthe radio button which actually takes action as an attribute .
    please provide me the necessary

    Hi,
    You can use JavaScript to call the action in interest upon the Radio Button Element Being Selected.Should be simple, and if your controller is part of the portlet dont forget to use the jpfScopeId to asscoiate the controller instance with the one in the portlet.
    Let me know if you have any further questions.

  • How to clear grey loading screen and animated gif (Dynamic Action with "Show Processing" on submit)

    APEX V4.2.3
    DB 11.2
    I have a classic report on page 1.  I have a region button called "Export" (defined by a submit dynamic action with "show processing=Yes") that submits the page and then via a branch directs me to page 2 which has a slightly different version of the report on page 1 (i.e. no breaks) which I want to capture as a CSV export.  Therefore I've set the report template on page 2 to " Export:CSV".
    Now when I click on the page 1 export button the grey screen and loading gif appears indicating that the report is executing and then as expected, page 2 doesn't appear but instead the standard open/save window's dialog box appears asking to open or save the generated CSV file.  All good..but the grey loading screen remains.  How do I clear this loading screen and get back to the context of page 1 ?
    thanks in advance
    PaulP

    Hi PPlatt,
    We would love to help but you left out one crucial part of the puzzle: namely how does your CSV report get exported. With the way it is setup (a redirect to another page), I'm going to assume you do that because you have some PL/SQL on that page that prints the CSV.
    Now there are two questions that are crucial here:
    - How do we stop the icon from bugging us on the screen
    - How do we communicate with the browser that it should no longer display the loading icon
    The first question is rather easy, two simply lines of codes can do that:
    $('#apex_wait_popup').hide();
    $('#apex_wait_overlay').hide();
    But when do we use this code? Quite simple when the document is downloaded. When is it downloaded? At the end of the PL/SQL code that prints the document to the browser.
    What you could do is at the end of that code give an application item a certain value. For example :AI_PRINTED := 'Y';
    Then all you need to do is let the browser ask for the value. You could do this by using JavaScript to continuously fire AJAX to the server using a JS timing event:
    http://www.w3schools.com/js/js_timing.asp
    Better would be a Server send event, but since you left out another crucial piece of information: your browser, I will not go deeper into this.
    Start this timing event when someone asks for the document, and end it as soon as the process returns that :AI_PRINTED equals 'Y'.
    Despite the lack of information, I hope I have given, or at least inspired you to get to the solution.
    Regards,
    Joni

  • Custom Store - Call to Action

    Does anyone have any experience with using "a call to action" "buy now" button inside a DPS Free Issue within a custom store?
    What I have in mind is a button on the pages of the sampler free issue of a magazine, that when touched, triggers a buy now for the full issue in the custom store using iTunes purchase method.
    Would appreciate any insight from all.
    I was sent the following URL:
    http://digitalpublishing.tumblr.com/post/26564811021/cross-publication-linking-bonus-qr-co des
    Has some hints as to what may or may not be possible.
    Bob Bringhurst - would you care to comment?
    Message was edited by: Fraser Crozier

    You can surely create a popup on your page :
    https://www.youtube.com/watch?v=Ufsz0V_CRLw
    Not an exact solution , but you can use a little tweak and use in similarly way.
    Thanks,
    Sanjit

  • Plz tell me BDC  CALL TRANSACTION steps with simple example

    hi,
    plz tell me the steps
    BDC  CALL TRANSACTION steps with simple example

    Hi,
    BATCH DATA COMMUNICATION
    About Data Transfer In R/3 System
    When a company decides to implement the SAP R/3 to manage business-critical data, it usually does not start from a no-data situation. Normally, a SAP R/3 project comes into replace or complement existing application.
    In the process of replacing current applications and transferring application data, two situations might occur:
    ? The first is when application data to be replaced is transferred at once, and only once.
    ? The second situation is to transfer data periodically from external systems to SAP and vice versa.
    ? There is a period of time when information has to be transferred from existing application, to SAP R/3, and often this process will be repetitive.
    The SAP system offers two primary methods for transferring data into SAP systems. From non-SAP systems or legacy system. These two methods are collectively called ?batch input? or ?batch data communication?.
    1. SESSION METHOD
    2. CALL TRANSACTION
    3. DIRECT INPUT
    Advantages offered by BATCH INPUT method:
    1. Can process large data volumes in batch.
    2. Can be planned and submitted in the background.
    3. No manual interaction is required when data is transferred.
    4. Data integrity is maintained as whatever data is transferred to the table is through transaction. Hence batch input data is submitted to all the checks and validations.
    To implement one of the supported data transfers, you must often write the program that exports the data from your non-SAP system. This program, known as a ?data transfer? program must map the data from the external system into the data structure required by the SAP batch input program.
    The batch input program must build all of the input to execute the SAP transaction.
    Two main steps are required:
    ? To build an internal table containing every screen and every field to be filled in during the execution of an SAP transaction.
    ? To pass the table to SAP for processing.
    Prerequisite for Data Transfer Program
    Writing a Data Transfer Program involves following prerequisites:
    Analyzing data from local file
    Analyzing transaction
    Analyzing transaction involves following steps:
    ? The transaction code, if you do not already know it.
    ? Which fields require input i.e., mandatory.
    ? Which fields can you allow to default to standard values.
    ? The names, types, and lengths of the fields that are used by a transaction.
    ? Screen number and Name of module pool program behind a particular transaction.
    To analyze a transaction::
    ? Start the transaction by menu or by entering the transaction code in the command box.
    (You can determine the transaction name by choosing System ? Status.)
    ? Step through the transaction, entering the data will be required for processing your batch input data.
    ? On each screen, note the program name and screen (dynpro) number.
    (dynpro = dyn + pro. Dyn = screen, pro = number)
    ? Display these by choosing System ? Status. The relevant fields are Program (dynpro) and Dynpro number. If pop-up windows occur during execution, you can get the program name and screen number by pressing F1 on any field or button on the screen.
    The technical info pop-up shows not only the field information but also the program and screen.
    ? For each field, check box, and radio button on each screen, press F1 (help) and then choose Technical Info.
    Note the following information:
    - The field name for batch input, which you?ll find in its own box.
    - The length and data type of the field. You can display this information by double clicking on the Data Element field.
    ? Find out the identification code for each function (button or menu) that you must execute to process the batch-input data (or to go to new screen).
    Place the cursor on the button or menu entry while holding down the left mouse button. Then press F1.
    In the pop-up window that follows, choose Technical info and note the code that is shown in the Function field.
    You can also run any function that is assigned to a function key by way of the function key number. To display the list of available function keys, click on the right mouse button. Note the key number that is assigned to the functions you want to run.
    Once you have program name, screen number, field name (screen field name), you can start writing.
    DATA TRANSFER program.
    Declaring internal table
    First Integral Table similar to structure like local file.
    Declaring internal table like BDCDATA
    The data from internal table is not transferred directly to database table, it has to go through transaction. You need to pass data to particular screen and to particular screen-field. Data is passed to transaction in particular format, hence there is a need for batch input structure.
    The batch input structure stores the data that is to be entered into SAP system and the actions that are necessary to process the data. The batch input structure is used by all of the batch input methods. You can use the same structure for all types of batch input, regardless of whether you are creating a session in the batch input queue or using CALL TRANSACTION.
    This structure is BDCDATA, which can contain the batch input data for only a single run of a transaction. The typical processing loop in a program is as follows:
    ? Create a BDCDATA structure
    ? Write the structure out to a session or process it with CALL TRANSACTION USING; and then
    ? Create a BDCDATA structure for the next transaction that is to be processed.
    Within a BDCDATA structure, organize the data of screens in a transaction. Each screen that is processed in the course of a transaction must be identified with a BDCDATA record. This record uses the Program, Dynpro, and Dynbegin fields of the structure.
    The screen identifier record is followed by a separate BDCDATA record for each value, to be entered into a field. These records use the FNAM and FVAL fields of the BDCDATA structure. Values to be entered in a field can be any of the following:
    ? Data that is entered into screen fields.
    ? Function codes that are entered into the command field. Such function codes execute functions in a transaction, such as Save or Enter.
    The BDCDATA structure contains the following fields:
    ? PROGRAM: Name of module pool program associated with the screen. Set this field only for the first record for the screen.
    ? DYNPRO: Screen Number. Set this field only in the first record for the screen.
    ? DYNBEGIN: Indicates the first record for the screen. Set this field to X, only for the first record for the screen. (Reset to ? ? (blank) for all other records.)
    ? FNAM: Field Name. The FNAM field is not case-sensitive.
    ? FVAL: Value for the field named in FNAM. The FVAL field is case-sensitive. Values assigned to this field are always padded on the right, if they are less than 132 characters. Values must be in character format.
    Transferring data from local file to internal table
    Data is uploaded to internal table by UPLOAD of WS_UPLOAD function.
    Population of BDCDATA
    For each record of internal table, you need to populate Internal table, which is similar to BDCDATA structure.
    All these five initial steps are necessary for any type of BDC interface.
    DATA TRANSFER program can call SESSION METHOD or CALL TRANSACTION. The initial steps for both the methods are same.
    First step for both the methods is to upload the data to internal table. From Internal Table, the data is transferred to database table by two ways i.e., Session method and Call transaction.
    SESSION METHOD
    About Session method
    In this method you transfer data from internal table to database table through sessions.
    In this method, an ABAP/4 program reads the external data that is to be entered in the SAP System and stores the data in session. A session stores the actions that are required to enter your data using normal SAP transaction i.e., Data is transferred to session which in turn transfers data to database table.
    Session is intermediate step between internal table and database table. Data along with its action is stored in session i.e., data for screen fields, to which screen it is passed, the program name behind it, and how the next screen is processed.
    When the program has finished generating the session, you can run the session to execute the SAP transactions in it. You can either explicitly start and monitor a session or have the session run in the background processing system.
    Unless session is processed, the data is not transferred to database table.
    BDC_OPEN_GROUP
    You create the session through program by BDC_OPEN_GROUP function.
    Parameters to this function are:
    ? User Name: User name
    ? Group: Name of the session
    ? Lock Date: The date on which you want to process the session.
    ? Keep: This parameter is passed as ?X? when you want to retain session after
    processing it or ? ? to delete it after processing.
    BDC_INSERT
    This function creates the session & data is transferred to Session.
    Parameters to this function are:
    ? Tcode: Transaction Name
    ? Dynprotab: BDC Data
    BDC_CLOSE_GROUP
    This function closes the BDC Group. No Parameters.
    Some additional information for session processing
    When the session is generated using the KEEP option within the BDC_OPEN_GROUP, the system always keeps the sessions in the queue, whether it has been processed successfully or not.
    However, if the session is processed, you have to delete it manually. When session processing is completed successfully while KEEP option was not set, it will be removed automatically from the session queue. Log is not removed for that session.
    If the batch-input session is terminated with errors, then it appears in the list of INCORRECT session and it can be processed again. To correct incorrect session, you can analyze the session. The Analysis function allows to determine which screen and value has produced the error. If you find small errors in data, you can correct them interactively, otherwise you need to modify batch input program, which has generated the session or many times even the data file.
    CALL TRANSACTION
    About CALL TRANSACTION
    A technique similar to SESSION method, while batch input is a two-step procedure, Call Transaction does both steps online, one after the other. In this method, you call a transaction from your program by
    Call transaction <tcode> using <BDCTAB>
    Mode <A/N/E>
    Update <S/A>
    Messages into <MSGTAB>.
    Parameter ? 1 is transaction code.
    Parameter ? 2 is name of BDCTAB table.
    Parameter ? 3 here you are specifying mode in which you execute transaction
    A is all screen mode. All the screen of transaction are displayed.
    N is no screen mode. No screen is displayed when you execute the transaction.
    E is error screen. Only those screens are displayed wherein you have error record.
    Parameter ? 4 here you are specifying update type by which database table is updated.
    S is for Synchronous update in which if you change data of one table then all the related Tables gets updated. And sy-subrc is returned i.e., sy-subrc is returned for once and all.
    A is for Asynchronous update. When you change data of one table, the sy-subrc is returned. And then updating of other affected tables takes place. So if system fails to update other tables, still sy-subrc returned is 0 (i.e., when first table gets updated).
    Parameter ? 5 when you update database table, operation is either successful or unsuccessful or operation is successful with some warning. These messages are stored in internal table, which you specify along with MESSAGE statement. This internal table should be declared like BDCMSGCOLL, a structure available in ABAP/4. It contains the following fields:
    1. Tcode: Transaction code
    2. Dyname: Batch point module name
    3. Dynumb: Batch input Dyn number
    4. Msgtyp: Batch input message type (A/E/W/I/S)
    5. Msgspra: Batch input Lang, id of message
    6. Msgid: Message id
    7. MsgvN: Message variables (N = 1 - 4)
    For each entry, which is updated in database, table message is available in BDCMSGCOLL. As BDCMSGCOLL is structure, you need to declare a internal table which can contain multiple records (unlike structure).
    Steps for CALL TRANSACTION method
    1. Internal table for the data (structure similar to your local file)
    2. BDCTAB like BDCDATA
    3. UPLOAD or WS_UPLOAD function to upload the data from local file to itab. (Considering file is local file)
    4. Loop at itab.
    Populate BDCTAB table.
    Call transaction <tcode> using <BDCTAB>
    Mode <A/N/E>
    Update <S/A>.
    Refresh BDCTAB.
    Endloop.
    (To populate BDCTAB, You need to transfer each and every field)
    The major differences between Session method and Call transaction are as follows:
    SESSION METHOD CALL TRANSACTION
    1. Data is not updated in database table unless Session is processed. Immediate updation in database table.
    2. No sy-subrc is returned. Sy-subrc is returned.
    3. Error log is created for error records. Errors need to be handled explicitly
    4. Updation in database table is always synchronous Updation in database table can be synchronous Or Asynchronous.
    Error Handling in CALL TRANSACTION
    When Session Method updates the records in database table, error records are stored in the log file. In Call transaction there is no such log file available and error record is lost unless handled. Usually you need to give report of all the error records i.e., records which are not inserted or updated in the database table. This can be done by the following method:
    Steps for the error handling in CALL TRANSACTION
    1. Internal table for the data (structure similar to your local file)
    2. BDCTAB like BDCDATA
    3. Internal table BDCMSG like BDCMSGCOLL
    4. Internal table similar to Ist internal table
    (Third and fourth steps are for error handling)
    5. UPLOAD or WS_UPLOAD function to upload the data from the local file to itab. (Considering file is local file)
    6. Loop at itab.
    Populate BDCTAB table.
    Call transaction <tr.code> using <Bdctab>
    Mode <A/N/E>
    Update <S/A>
    Messages <BDCMSG>.
    Perform check.
    Refresh BDCTAB.
    Endloop.
    7 Form check.
    IF sy-subrc <> 0. (Call transaction returns the sy-subrc if updating is not successful).
    Call function Format_message.
    (This function is called to store the message given by system and to display it along with record)
    Append itab2.
    Display the record and message.
    DIRECT INPUT
    Thanks &regards,
    Sravani

  • Empty camera names in Flash Player with Google Chrome

    So, it seems we got another problem with devices (cameras and microphones) in Flash Player integrated with Google Chrome (PPAPI). Many Flash developers can remember clickjacking problem and ugly fix for this issue implemented in Google Chrome. For now, if you have some application that uses camera or microphone, Google Chrome users must allow access to their devices twice: for Flash Player (small window centered in Flash-object) and for Google Chrome (gray panel with buttons under address bar).
    Until recently the whole process of granting camera access looked like this:
    Application want to attach camera to Video object or NetStream.
    Even without permission you can get camera names and populate some UI components with them.
    Flash Player show security panel with "Allow" and "Deny" buttons.
    Google Chrome show it's own security panel, so both security panels are visible at the same time.
    Users press "Allow" button in Flash Player security panel.
    Now you have false for camera.muted property, but camera show zero FPS, because access is still denied in browser.
    Users press "Allow" button in browser security panel.
    Win! You have access granted everywhere.
    Of course, that second security panel of Google Chrome is a real pain. Users just don't notice it. Flash developers handled this issue with hints inside application and FAQ pages. But now we have another big problem.
    Recently the process of granting camera access changed to this:
    Application want to attach camera to Video object or NetStream.
    You can't get camera names until access granted in browser. There will be just spaces (" ", symbol with code 32) in camera.name property.
    Flash Player show security panel with "Allow" and "Deny" buttons.
    Google Chrome will not show it's security panel until access granted in Flash Player.
    Users press "Allow" button in Flash Player security panel.
    Now you have false for camera.muted property, but camera show zero FPS and have no name, because access is still denied in browser.
    Google Chrome show it's own security panel.
    Users press "Allow" button in browser security panel (this panel shown twice for some reason).
    Now you have access granted everywhere, but devices still have just spaces instead of real names.
    Unfortunately, AS3 will not update camera names after access granted in browser. Camera names are empty event in Flash Player settings window before browser access granting. So it's impossible now to get camera names in Flash application running in Google Chrome without reloading. User need to grant access in browser first, than reload application and only after that we can get camera names in AS3. I have tried to use flash.media.scanHardware() to refresh camera names, but it seems it's not working.
    Also I have created a small example and posted it online. You can test it by yourself in Google Chrome. Just don't forget to clear your choice each time. You need to remove "http://wonderfl.net:80" entry from list on chrome://settings/contentExceptions#media-stream to clear your prevoius choice.
    Also I got similar complaints from Opera users.
    Here is my code:
    package
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.Event;
        import flash.events.TimerEvent;
        import flash.media.Camera;
        import flash.media.Microphone;
        import flash.media.Video;
        import flash.media.scanHardware;
        import flash.text.TextField;
        import flash.utils.Timer;
        public class BrowserPermissionTest extends Sprite
            private var output:TextField;
            private var timer:Timer;
            public function BrowserPermissionTest()
                super();
                addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
            private function addedToStageHandler(event:Event):void
                removeEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
                stage.scaleMode = StageScaleMode.NO_SCALE;
                stage.align = StageAlign.TOP_LEFT;
                output = new TextField();
                output.border = true;
                output.multiline = true;
                output.wordWrap = true;
                output.x = output.y = 10;
                addChild(output);
                updateView();
                stage.addEventListener(Event.RESIZE, stage_resizeHandler);
                var i:int;
                var numCameras:int = 0;
                var numMicrophones:int = 0;
                if (Camera.isSupported)
                    var cameraNames:Array = Camera.names;
                    numCameras = cameraNames ? cameraNames.length : 0;
                    if (numCameras > 0)
                        log("Cameras:");
                        for (i = 0; i < numCameras; i++)
                            var cameraName:String = cameraNames[i];
                            log((i + 1) + ". \"" + cameraName + "\"");
                    else
                        log("Camera not found.");
                else
                    log("Camera is not supported.");
                log("");
                if (Microphone.isSupported)
                    var microphoneNames:Array = Microphone.names;
                    numMicrophones = microphoneNames ? microphoneNames.length : 0;
                    if (numMicrophones > 0)
                        log("Microphones:");
                        for (i = 0; i < numMicrophones; i++)
                            var microphoneName:String = microphoneNames[i];
                            log((i + 1) + ". \"" + microphoneName + "\"");
                    else
                        log("Microphone not found.");
                else
                    log("Microphone is not supported.");
                log("");
                if (numCameras > 0 || numMicrophones > 0)
                    if (numCameras > 0)
                        var defaultCamera:Camera = Camera.getCamera();
                        var video:Video = new Video(1, 1);
                        addChild(video);
                        video.attachCamera(defaultCamera);
                        defaultCamera.muted ? devicesMutedInFlashPlayer() : devicesUnmutedInFlashPlayer();
                    else if (numMicrophones > 0)
                        var defaultMicrophone:Microphone = Microphone.getMicrophone();
                        defaultMicrophone.setLoopBack(true);
                        defaultMicrophone.muted ? devicesMutedInFlashPlayer() : devicesUnmutedInFlashPlayer();
                    else
                        log("No devices found for test.");
            private function devicesMutedInFlashPlayer():void
                log("Devices are muted in Flash Player.");
                log("Starting permission check timer...");
                timer = new Timer(100);
                timer.addEventListener(TimerEvent.TIMER, flashPlayerPermissionTimer_timerHandler);
                timer.start();
            private function flashPlayerPermissionTimer_timerHandler(event:TimerEvent):void
                var defaultCamera:Camera = Camera.getCamera();
                if (!isDevicesMutedInFlashPlayer())
                    timer.stop();
                    timer.removeEventListener(TimerEvent.TIMER, flashPlayerPermissionTimer_timerHandler);
                    timer = null;
                    devicesUnmutedInFlashPlayer();
            private function devicesUnmutedInFlashPlayer():void
                log("Devices are unmuted in Flash Player.");
                isDevicesMutedInBrowser() ? devicesMutedInBrowser() : devicesUnmutedInBrowser();
            private function devicesMutedInBrowser():void
                log("Devices are muted in browser.");
                log("Starting permission check timer...");
                timer = new Timer(100);
                timer.addEventListener(TimerEvent.TIMER, browserPermissionTimer_timerHandler);
                timer.start();
            private function browserPermissionTimer_timerHandler(event:TimerEvent):void
                scanHardware();
                if (!isDevicesMutedInBrowser())
                    timer.stop();
                    timer.removeEventListener(TimerEvent.TIMER, browserPermissionTimer_timerHandler);
                    timer = null;
                    devicesUnmutedInBrowser();
            private function devicesUnmutedInBrowser():void
                log("Devices are unmuted in browser.");
            private function isDevicesMutedInFlashPlayer():Boolean
                var cameraNames:Array = Camera.names;
                var numCameras:int = cameraNames ? cameraNames.length : 0;
                if (numCameras > 0)
                    var defaultCamera:Camera = Camera.getCamera();
                    return defaultCamera.muted;
                else
                    var microphoneNames:Array = Camera.names;
                    var numMicrophones:int = microphoneNames ? microphoneNames.length : 0;
                    if (numMicrophones > 0)
                        var defaultMicrophone:Microphone = Microphone.getMicrophone();
                        return defaultMicrophone.muted;
                return true;
            private function isDevicesMutedInBrowser():Boolean
                var cameraNames:Array = Camera.names;
                var numCameras:int = cameraNames.length;
                for (var i:int = 0; i < numCameras; i++)
                    var cameraName:String = cameraNames[i];
                    if (cameraName != " ")
                        return false;
                var microphoneNames:Array = Microphone.names;
                var numMicrophones:int = microphoneNames.length;
                for (i = 0; i < numMicrophones; i++)
                    var microphoneName:String = microphoneNames[i];
                    if (microphoneName != " ")
                        return false;
                return true;
            private function log(text:String):void
                output.appendText(text + "\n");
            private function updateView():void
                output.width = stage.stageWidth - 2 * output.x;
                output.height = stage.stageHeight - 2 * output.y;
            private function stage_resizeHandler(event:Event):void
                updateView();
    So, I wonder if it's a bug or some kind of new security feature implemented by Google Chrome team? Maybe someone already faced this problem and can share more info about it.
    For now it looks like modern browsers killing Flash with all that features and ugly solutions.
    PS: You can find some silly mistakes in my message. Sorry for my English.
    Updated code to check microphones also.

    After couple of tests I have found strange behavior of PPAPI Flash.
    The test was made with two SWFs working simultaneously on the same page. The first one was asking for device access like some regular application (by calling video.attachCamera). The second SWF was created/removed in cycle by JavaScript to avoid this thing:
    Scanning the hardware for cameras takes time. When the runtime finds at least one camera, the hardware is not scanned again for the lifetime of the player instance.
    I have made both SWFs to get all devices names and post them to screen. So I was able to see all changes regarding devices in first SWF (before and after permission granted) and in refreshable second SWF (each second). Also I have used scanHardware in both SWfs.
    I have found that second (refreshable) SWF got correct list of devices, but first one got only microphones. Camera names was empty.
    So it looks like we have another bug of PPAPI Flash here. I don't have another explanation for this. I mean, why do they need to update only microphones, but not cameras?

  • How to call navigation action?

    Hello
    I'm using JDeveloper 11g 10.1.1.3
    I need to call navigation action on double click on the row of table.
    I know how to use clientListener and serverListener, but I can't call navigation action (it is described in adfc-config.xml) from serverListener's method.
    How could I do that?
    Anatolii

    After some time spended with all this staff, now I have a problem.
    I have a page builded on a pageTemplate.
    Inside this page I have one region with the bounded task flow "users" with table of users.
    I created a button "btEditUser" and set action "toEditUser".
    When I click on this button, I go to the nested task flow "editUser" (the page of editing user).
    Next, I want to do that action after dblClick of the mouse button on the row of the table.
    So, I created a clientListener and serverListener.
    After processing some code (looking for selected row) the serverListener method processes next code:
            ActionEvent actionEvent = new ActionEvent(btEditUser);
            actionEvent.queue();(The button "btEditUser" is binded to the "btEditUser" attribute of my backing bean.)
    This code is really processes (I traced that in the debagger), but nothing happens - after all I'm still on the first page.
    I compared the logs of both variants of this action and found, that in the case with serverListener after processing this code i have next message:
    <PartialPageContextImpl><<init>> PPR is about to render without any targetsWhat could it be?
    Anatolii

Maybe you are looking for