How to avoid the focus problem when browsing via browser back button

Hello

I am facing a problem in setting focus on the buttons.
Please see application: http://apex.oracle.com/pls/otn/f?p=47869:2

login details:
Workspace: vsanthanam
user: vijay
PSWD: apex_demo

In this application, I have 2 pages.
#2 has the "submit" button
Page no. 3 contains the Cancel button

The two buttons are basic HTML and can be accessed using access key ALT + s and ALT + c.

The problem is:
When I go back to the previous page (pgid #2) of the application using back button of the browser pgid IE #3.
due to the onFocus event located in the button "submit", control returns to pgid #3.

Is there a possible way to set the focus to other elements. so that whenever IE brower back button, application would stay in
page #2.


I took approaches:
-------------------------
If we use onclick, onfocus instead and then the problem remains because we have onfocus = "this.click (); in equipping the Accesskey.
Another way is onKeyup event. If we use onKeyup, we can avoid this browser back problem, but disappears from the access keys functions.

Pointers on this would be a great help.

Thank you very much
-Vijay

PLEASE NOTE: I have created intentionally two buttons on each page. It is necessary to have HTML buttons with the key features of access,
otherwise application gives a few flaws in HTML accesskey.

Hi Vijay,

Crikey, aren't annoying browsers! It took a while to get out, but I've updated your SUBMIT1 button attributes:

class="t20Button" AccessKey="s" tabindex="-1" onclick="javascript:this.blur();doSubmit('SUBMIT1');" onfocus="javascript:this.blur();doSubmit('SUBMIT1');"

Note that I removed the spare semicolons you after each attribute - these are only required in javascript code.

The important point to note are the statements of "this.blur" () - this tells the browser to move away from the current item to the next. On your page, only for this purpose, I have added a text element of Temp - I am assuming that your actual page will have at least one other element on the page that will accept the focus? Everything gets focus of the call "this.blur ()", should be the element with focus when the Back button is used.

Andy

Tags: Database

Similar Questions

  • How to avoid the u letter when you type ' u?

    Hello community,

    I need to write ' u , but it automatically replaces these two letters by u on selection of keyboard we International PC.

    Can you suggest me how to avoid it?

    Thanks in advance,

    Gomez

    What exact keystrokes you type?

  • How to run the SWF file when I click on a button

    Dear friends!

    I did three and kept SWF files in a folder, how do I make a flash 8 project to execute when I click on a button. I'm going to make buttons for each SWF file

    Please help me

    use loadMovie to load in your main swf (with button).

  • Playback bar disappears from the slide content when browsing back to a question slide

    My captivate project has the PlayBar disabled on quiz questions, which works very well.  However, if I move to the back of a quiz in a content slide, the PlayBar is gone (even if it is the first time I saw the content).  I tried to adjust the cpcmndshowplaybar to 1 on this content slide to see if it would work, but no luck.

    I tried an empty project with a 1 x blade and question slides x 1 and I get the same bug, disappears from the play bar.

    Can anyone help?

    Hi all, I made a workaround for the problem as follows:

    1 to edit > Preferences > Quiz > settings: I unchecked «hide PlayBar in Quiz»

    2. in the project > Skin Editor: I unchecked «hide PlayBar in Quiz»

    3. on skiing all the content, I executed a playback show advanced action cpCmdShowPlaybar with 1 bar

    4. in the Question pool, on all the content slides I executed a PlayBar hide advanced action cpCmdShowPlaybar with 0

    That did the trick, it is not save time or probably not the right way to do it, but has solved the problem.

    Thank you

    Martin

  • How to avoid the launch of Labview VI when he invokes in Teststand environment?

    Hi, friends.

    I am a student of teststand. I wrote a few screws by Labview. Now, I want to invoke in teststand environment.

    But when I run the sequence. LabVIEW automatically launches.

    How to avoid the launch of Labview when I run the sequence?

    Thank you.

    LabVIEW programs require a runtime engine. Under the TestStand configuration drop-down, select adapters. You can change the LabVIEW adapter to select the runtime rather than the development system.

    This should prevent the main screen of LabVIEW to appear, but you will not be able to change your LabVIEW VIs while they run of TestStand using the runtime engine.

  • How to avoid the launch of Labview when called by Teststand VI

    Hi, friends.

    I am a student of teststand. I wrote a few screws by Labview. Now, I want to invoke in teststand environment. But when I run the sequence. LabVIEW automatically launches. How to avoid the launch of Labview when I run the sequence?

    Thank you.

    I'm not sure that I follow what you're saying...  But it seems that when the VI is called, the LabVIEW Development software is started and you want to avoid this.

    If you create an executable file or a dll and that any call within TestStand, she should not call the development environment.  You must have the LabVIEW runtime engine installed on the target computer.

    For several years I used TestStand with LV, if my memory does not have to be precise.  I think that the above worked for me.  However, it seems that I remember something to have the LV code in debug mode, causing to open development environment... but it's a distant memory.    You do not use breakpoints where the LV VI is called, are you?

    R

  • How to avoid the minimizin of the screen when the user down ups slide

    How to avoid the minimizin of the screen when the user ups the down slide.

    Hello

    I guess that not possible because this is a feature of the system. Be able to substitute the blow to the gesture of bottom up would mean for combat when a user can switch to another application. It is not something that an application must be able to do it at all.

  • Question CP9: HTML5: Apple: Android: how to avoid the click on the Play button / tap?

    Hello

    Captivate 9.0.0.223: HTML5 draft.

    I'm sorry to ask this question, it's a little old chestnut on HTML5 in Apple iOS and Android.

    I have searched on the internet and forums for a solution underway, but could not find something that works.

    The problem is how to avoid the PLAY button, which forces the user to click / tap on it, when the project is accessible on an Apple or Android system.

    Play_icon.png

    The project will be published on the internet for use on any Windows, Apple or Android device.

    I have no control over the Web server or devices that will use the people, so that any changes to the software server or browser is out of the question.

    I have tried both a plain HTML5 and a responsive project, but neither avoid the Play button. I put an example of 1 slide on these links.

    http://www.hoffits.com/test_responsive/index.html

    http://www.hoffits.com/test_html5/index.html

    The bottom line is: ' is it possible to remove the need for the user to click / press the Play button?

    Thank you.

    Peter

    Cardiff

    In Wales

    UK

    In your normal HTML5, there is a line (I think it's 46) with this code:

    CP. DoCPInit();

    Add cp.movie.play (); Located below.

    so:

    CP. DoCPInit();

    CP. Movie.Play ();

  • How to avoid the FDM-command being moved files from the OpenBatch folder

    Hello world

    I have a little problem with Batch Processing of the FDM - I need to stop the movement of files in the folder OpenBatch - when a batch is executed.

    The installer by using the Task Manager, a load a Batch Script and Script integration all works very well. However, the process must run every 3 hours, so I need the file "A_LedgerTransLocation_Actual_nov - 2013_RR.txt" to remain in the \Inbox\Batches\OpenBatch\ folder at any time.

    How to avoid the file is moved?


    Best regards
    Frederik




    PS: I noticed on the OTN Forum is it may be possible to script a solution such as:

    FSO1 = CreateObject ("Scripting.FileSystemObject") set
    Set File1 = FSO1. GetFile ("FDM Directory\FDM Application\Inbox\Batches\Openbatch\A_LedgerTransLocation_Actual_nov-2013_RR.txt")
    The BATCHENG value. PcolFiles = BATCHENG.fFileCollectionCreate (CStr (strDelimiter), File1)

    However this is not possible, as the controllers of the company need to edit the. TXT file themselves. They will not be able to edit the script too.

    I don't think you can prevent the FDM, move the file. I'm assuming that the file change in each period to use the last period of POV, so I think that option easiset to copy the file (based on a part of the name (location?) to a temporary location before began the FOM and write again later.)

  • Satellite Pro 4200 how to avoid the mistakes of the ACPI

    Satellite Pro 4200 how to avoid the ACPI errors after installing SP2 for windows XP Prof
    The problem is that my computer after installation service Pack 2 need about 15 minutes from time of shoutdown - what should I do to avoid this problem.
    Piotr Plecke

    Hello
    in this case it would be interesting what Type of laptop it is exactly.

    You will find this model on the bottom of your laptop. There is a review of it.

    Some models have a Bios update available, others not, for example.

    Please send additional information!

    Good bye

  • Satellite C660 - how to set the focus of the webcam?

    Hello

    Just bought this laptop, the built-in webcam looks very blurry when I use Skype. Does anyone know how to set the focus to the subject?

    See you soon
    Jules

    Hello

    to be honest, I have no idea on your model of lap... Try to update driver webcamd and play with Skype video settings.

  • Camileo S10 - how to avoid the 'information' during video playback on TV

    I just received my Camileo S10... very nice indeed... but how to avoid the track and reading data to be shown on the screen during playback on my TV...?

    Go to the movies, then before you start playing click the OK button. This also works when you save. You must do this before playing or recording.

  • How to avoid make records duplicate when you save a series?

    How to avoid make records duplicate when you save a series?

    When you schedule a recording for a TV series, Media Center automatically records episodes based on the options you set here.

    1. click the Start button, click all programsand then click Windows Media Center.

    2. on the Media Center start screen, navigate to tasks, click settings, click TV, click recorderand then click default record.

    3 scroll to the series as the default record section.

    4. do one of the following:

    ·         Under Show type, click the plus sign (+) or minus (-) button to record only new episodes, reruns or direct episodes.

    ·         Under channels, click the plus (+) or minus (-) record button present in this series on any channel, or on a specific channel.

    ·         According airtime, click the plus sign (+) or minus (-) button record shows in this series at any time, or only at a specific time.

    ·         Under the keep up to, choose how many records in this series to keep before older episodes are automatically deleted.

    5. click on Save.

  • How to avoid the report query needs a unique key to identify each line

    Hello

    How to avoid the error below

    The report query needs a unique key to identify each row. The supplied key cannot be used for this query. Please change the report attributes to define a unique key column.

    I have master-detail tables but without constraints, when I created a query as dept, emp table he gave me above the error.

    Select d.deptno, e.ename

    by d, e emp dept

    where e.deptno = d.deptno

    Thank you and best regards,

    Ashish

    Hi mickael,.

    Work on interactive report?

    You must set the column link (in the attributes report) to something other than "link to display single line." You can set it to 'Exclude the column link' or 'target link to Custom.

  • How to avoid the glossy look and brilliant nostrils?

    I just built my first character of fuse and when I import into Photoshop, its nostrils are incandescent - as if the light shines through the back of his head!

    This fuse:

    Screen Shot 2016-01-17 at 04.27.53.png

    Becomes this in Photoshop:

    Screen Shot 2016-01-17 at 04.47.21.png

    I use a brush to set the nostrils, but have no idea how fix eye - of the suggestions?

    Even better - any ideas on how to avoid the glossy look and glowing nostrils?

    Thank you very much
    Malcolm

    Hey, Malcolm.

    Best way to explain what basically rendering 3D correctly really takes a lot of time, haha.  So that you may be able to work with the real-time 3D model and make changes quickly, we use two different rendering methods.

    There is an "Interactive" mode which is not like the beautiful light/shade, but is very fast - and that's what you see when you interact with the default template.

    Then, there is a mode "Raytraced" which is much more advanced calculations and stuff to give you a proper lighting / shadow.  Raytraced rendered may take time if so we can not use it all the time.

    In order to get the lights/shadows appropriate you need to perform a path Ray would make on the document.  Best way to do this:

    • Select your 3D layer in the layers panel
    • Make a selection in the drawing area to the area that you want to make (I recommend to test rendering of area to check the lighting/shadows before committing to make the whole layer).
    • Push the button is rendered at the bottom of the properties panel (it looks like a cube in a rectangle box, right next to the delete icon).

    There are other things that you must do if you want to get the best image search quality such as the addition of secondary lights!  You can add more lights in the 3D Panel using the small icon of light at the bottom.  Have 2-3 stage lights and adjusting their colors can make a big difference with the Assembly of your character in the scene.  Here is a small image for some comparisons:

    You can see the image with two lights a look much more realistic lighting and shadows and raytraced of one and two versions are much nicer and cleaner!

    Hope that helps!

Maybe you are looking for

  • Control buttons do not work after the new installation OS on Equium A100-147

    After Installing Win XP manually, I am facing problem for the multimedia keys on the left side of the laptop work. I am able to access the first button to launch Internet Explorer and Windows Media Player but still keys Play/Stop / > /.< not="" worki

  • four beeps at startup

    I have an old laptop R50e of 3.5 year are no longer under warranty. When I boot it battery or power, I get four regularly spaced beeps and nothing else. The screen is blank and the fan is running. This happened this morning. I had used last yesterday

  • My router blew up... not really, but it does no permanent internet connection, help?

    Whenever I use my WRT160N V2 router, I'm constantly connected to the network and the internet (according to the network on my Vista Ultimate desktop icon) However, half the time I enter into a Web page or click on a link, it takes a very long time to

  • No CD/DVD drive detected in Device Manager

    I have a hp pavilion dv9925nr portable laptop, running windows vista Home premium, service Pack2.  cd/dvd driver is missing, its not even appears in the Device Manager to all, I tried to scan for it and no luck.   I know it works, I tried the fix it

  • Disable the download Anyconnect client / turn off the url connection

    Hello Is there a way to disable the Anyconnect client download when you navigate to the anyconnect url? Or just make the connection of the url is not accessibleWhile users can still connect with their client anyconnect installed in the corporate netw