Javascript Foucs is not working In IE

I have tabular in in APEX page
In tabular form on one textbox onblur="setfocs();"
And i set focus on button using javascript as below.
<script type="text/javascript">
function setfocs()
document.getElementById('add_row_id').focus();
</script>
Javascript in HTML header part of the page.
'add_row_id' is button id.
That is working fine in Firefox but not working on IE and Chrome.
Can any one have idea?
Thanks

Hi,
This is a documented issue. Please see http://www.mkyong.com/javascript/focus-is-not-working-in-ie-solution/
Cheers,
PS: Many more resource on the subject here
Edited by: Prabodh on Jul 31, 2012 3:47 PM

Similar Messages

  • ExportAsFDF javascript method is not working with Reader 10.1.1

    Hi,
    I have pdf document in which I have applied all Extendend Reader Rights. And now when I am trying to exports alll annotation in fdf with Reader 10.1.1 then it is faling to export. However it is working fine with Reader 10.0.0. Looks like this is broken in later version of 10.0.0.
    Please let me know if any alternative solution is there to export all annotation in fdf file thru code.
    Regards,
    Arvind

    I would open a formal support ticket with our developer support folks.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sun, 27 Nov 2011 22:48:35 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: exportAsFDF javascript method is not working with Reader 10.1.1
    exportAsFDF javascript method is not working with Reader 10.1.1
    created by arvindg007<http://forums.adobe.com/people/arvindg007> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4049525#4049525

  • Binding to a javascript function is not working

    I am trying to use the following code to bind to a javascript
    function and it's not working. I finally had to use jQuery to bind
    the event handler, but I would like to see the CF generated stuff
    work. Am I missing something here?
    This jquery code is the workaround:
    $('.match').change(function(){
    updateSA(this);

    Binding is not restricted to flash forms. I can bind directly
    to a cfc without problems, but in this case I need to send more
    info to the cfc than a single field would provide. You're supposed
    to be able to bind to a javascript function using the syntax above,
    but it's not working properly.
    More details here:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxdata_03.html#1128486

  • Javascript block through javascript.enabled false not working as expected in newer versions, any actual way?

    Since a few versions, around 24.0 or earlier, when you toggle javascript.enabled from true to false to block javascript, doesn't work after load a page.
    Further details:
    1.- load a page with javascript enabled
    2.- toggle javascript preference to block javascript (javascript.enabled from true to false)
    3.- if you interact with javascript elements = they still work
    This wasn't this way in earlier versions.
    You can check in the following page. You'll see that the only way to actually block javascript execution is to load the page with the preference javascript.enabled set to false (A.K.A. javascript blocked):
    http://www.geocities.ws/jothache/event_listener.html
    Note: to easy change javascript preferences, for those don't want to play with about:config you can use addons like QuickJava:
    https://addons.mozilla.org/en-US/firefox/addon/quickjava/
    I find that how it works now, in the latest versions, it is a VERY HUGE SECURITY ISSUE as javascript is never actually blocked when the preference is toggled and AJAX (httpXMLrequest through javascript) still works so the possibilities of lost of privacy inreases, as for example, mouse tracking and send it to the server, not only as the example scripts I posted above.
    The question is, is there anyway to really block javascript in the latests versions or should I report this as a bug?
    Regards.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

  • Javascript Date() function not working

    Hi,
    I'm experiencing some problems with the Date() function in javascript. The problem is that the function doesn't seem to work. For example when I do "var date = new Date(); xfa.host.messageBox(date);" in the enter event of a date field, I get "Date is not a function" error message in de javascript debugger.
    Is there anyone out there who knows how why the Date function is not working in LiveCycle Designer. Am I using the Date function in an improper way or maybe I am using the wrong function?
    Please can anyone help me out?

    Hi Paul,
    Thanx for you reply. It worked fine.
    I also found out that following works as well:
    var MyDate = util.scand("dd-mm-yyyy",new Date());
    console.println("this date: "+util.printd("dd-mm-yyyy", MyDate));

  • Javascript focus() is not working anymore in firefox 22, thank You

    With this sample code, focus() is not working
    <pre><nowiki>Name <input name=cName id=cName size=50 onblur=chkName(); />
    <br>
    Last Name: <input name=cLastName id=cLastName size=50 onblur=chkLastName(); />
    <br>
    Another Field:
    <input name=cAnother id=cAnother size=15 />
    <script>
    function chkName() {
    var cName = document.getElementById('cName').value;
    if ( cName == '' ) {
    alert("ERROR");
    document.getElementById('cName').focus();
    function chkLastName() {
    var cLastName = document.getElementById('cLastName').value;
    if ( cLastName == '' ) {
    alert("ERROR");
    document.getElementById('cLastName').focus();
    </script></nowiki></pre>

    Yes of course.
    The function example I posted would be called by the onblur event and not by a submit. as has been stated previously, I also remember that it used to work. Perhaps I am wrong.
    Since that is not working, I am suggesting that the OP will be forced to use the onsubmit and validate at that time to solve the problem as was also previously suggested. Using the onSubmit and returning false on invalid does work for me.
    Since my last post I did determine that I can pass the id to a window.settimeout and have it work correctly, but this still does not stop the form from being posted in FireFox. Whereas an onblur navigation cancellation does prevent posting in Chrome and IE.
    this is important to note because if you are depending on your javascript to validate your data you can get betray because not all the browsers treat it the same way. This is by no means a FireFox only problem. they all have their quirks.
    I just wish there was a standard that we could depend on.

  • JavaScript alert() is not working in mozilla 19.0.2.Why?

    I have created a .aspx page in it i have added gew javascript function containing alert(). But niether the functions nor the alerts are invoking.why? i have created a javascript function on keypress event as:
    function isSpaceKey(evt) {
    // debugger;
    var charCode = (evt.which) ? evt.which : event.keyCode
    if ((charCode < 47 || charCode > 57) && charCode != 8) {
    alert("Enter Numeral Values only!");
    return false;
    return true;
    and added validation summary in .aspx page enabling its message box if user validation fails . But it is also not working. Before using Firefox i was using IE on which it was working fine. What is the problem? Thanks.

    See:
    *https://developer.mozilla.org/en-US/docs/Web/API/event.which

  • JavaScript in form not working on webpage

    With the help of this forum, I was able to create a PDF form that had javascript.  The javascript was basically if then statements. The the person selects "A" in dropdown one then they get "B" or "C" in dropdown two; if the person selects "D" in dropdown one they get "E" in dropdown two etc...  It works perfectly on my desktop.  However, I tried to upload it to our website and the javascript is not working.  It allows the person to select a choice in dropdown one but regardless of what they select dropdown two does not have anything to select.  Do I need to do something special to make PDFs with javascript work on a website?
    Donna

    The users of the form need to download Adobe Reader and adjust Chrome to use Adobe Reader and not Google Chrome's PDF viewer.
    For those using mobile devices, not all apps for mobile devices have the same ability as a computer nor do they all have the same ability. For iPads your best choice would be PDF expert and for android qNotes or ezPDF Reader. Note that most mobile apps do not understand document level functions and the JavaScript date object. Since apps are frequently updated and new features are constantly being added it is nearly impossible to keep up with the revised apps features.

  • Javascript time counters not working with Safari 5.1.4

    New Safari 5.1.4 made my website javascript time counters frozen and not working. I am using jQuery library on my site.
    You can see the preview of the problemhere: http://headiil.ee/
    What is the problem with this new Safari update and how can it be solved?

    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.
    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 FileVault in Mac OS X 10.7 or later, then you can’t enable the Guest account. 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.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.) Post the results of steps 1 and 2.

  • JavaScript popup code not working 4 me

    Hi,
    I am to trying to open pop windows in Flash through
    JavaScript. Now I found a number of ways to do this on the forums
    but none is working for me. When I click the swf button containing
    the pop code (embedded in html), nothing happens. I do not have pop
    windows blocked, and when I click the button in stand alone swf
    file (i.e. not embedded in html), I receive the following error
    message:
    Macromedia flash player has stopped a potentially dangerous
    operation. The following application on your computer or network
    <name of file>
    is trying to communicate with this internet-enabled location
    <unknown>
    To let this application communicate with the internet, click
    settings.
    /********** FIRST CODE ****************/
    The first was from kirupa.com. The code on the button is:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "
    http://www.google.com";
    target_winName = "google";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //sends data back to the function
    _root.openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    The code on the root timeline is:
    _root.openWinCentre = function (url, winName, w, h, toolbar,
    location, directories, status, menubar, scrollbars, resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    /********** SECOND CODE **************/
    The code on the button is:
    btn.onRelease = function()
    getURL("javascript:window.open('
    http://www.google.com','newWin','width=300,height=200,left=0,top=0,toolbar=No,location=No, scrollbars=No,status=No,resizable=No,fullscreen=No')");
    Nothing on the root timeline.
    Anyone got a clue what’s happening? I was wondering
    whether there was problem with settings on my computer? Also, I do
    not want to embed JavaScript code in the HTML file.
    Many thanks,
    Essaeyu

    What I want to achieve is something very basic, done n times
    on the web, but its strange that its not working on my machine. I
    am getting popups through getURL function and on HTML links but not
    from swf/javascript links. This includes linking both to the
    webpages on the internet e.g. google and pages on my machine. I
    have tried three different ways of achieving this and am attaching
    thecode. Can someone look at the files please and see what’s
    wrong/spot something I overlooked? I will be extremely grateful.
    Here is the code in the fla's (and html in one case). No
    facility to attach files else i would have done so. Though the
    flas/swf/html files can be downloaded from:
    http://www.actionscript.org/forums/showthread.php3?p=623694#post623694.
    These are three zip files posted by user essaeyu today.
    Many thanks,
    Essaeyu
    /*************** Code in the first file ****************/
    The code on the button is:
    btn.onRelease = function()
    getURL("javascript:window.open('
    http://www.google.com','newWin','width=300,height=200,lef
    t=0,top=0,toolbar=No,location=No,scrollbars=No,sta
    tus=No,resizable=No,fullscreen=No')");
    Nothing on the root timeline.
    /*************** Code in the second file ****************/
    /*Taken from kirupa.com*/
    The code on the button is:
    on (release) {
    //customize the window that gets opened
    // 0 equals NO.
    // 1 equals YES.
    address = "
    http://www.google.com";
    target_winName = "google";
    width = 400;
    height = 300;
    toolbar = 0;
    location = 0;
    directories = 0;
    status = 0;
    menubar = 0;
    scrollbars = 1;
    resizable = 0;
    //sends data back to the function
    _root.openWinCentre(address, target_winName, width, height,
    toolbar, location, directories, status, menubar, scrollbars,
    resizable);
    The code on the root timeline is:
    _root.openWinCentre = function (url, winName, w, h, toolbar,
    location, directories, status, menubar, scrollbars, resizable) {
    getURL ("javascript:var myWin; if(!myWin ||
    myWin.closed){myWin = window.open('" + url + "','" + winName +
    "','" + "width=" + w + ",height=" + h + ",toolbar=" + toolbar +
    ",location=" + location + ",directories=" + directories +
    ",status=" + status + ",menubar=" + menubar + ",scrollbars=" +
    scrollbars + ",resizable=" + resizable +
    ",top='+((screen.height/2)-(" + h/2 +
    "))+',left='+((screen.width/2)-(" + w/2 + "))+'" +
    "')}else{myWin.focus();};void(0);");
    /*************** Code in the third file ****************/
    Code in the html header
    <script language="JavaScript">
    <!--
    function spawnWindow(URL , u_name)
    var my_vin;
    my_vin = window.open(URL , u_name);
    //-->
    </script>
    Script in flash root timeline:
    btn.onRelease = function()
    getURL ("javascript:spawnWindow('
    http://www.google.com','newwin')");
    }

  • Javascript tree menu not working in portal

    We are evaluating the possiblity of providing javascript tree menu in a portal page, which should work in both IE and Netscape browsers. The javasript tree menu ("COOLjsTree" at http://javascript.cooldev.com/) is working properly in all the browsers when accessed directly as a simple jsp file from the server. But when we create a java portlet of the same jsp file and try to access it from all the browsers, we are not able to see the menu in Netscape 4.75, while it is fuctioning properly in IE 5 and above and Netscape 6 and above.
    We have gone through the note:136120.1 on Supported browser versions for oracle portal.
    The question is why is the javascript not working when put as a portlet in portal on Netscape 4.75, whereas the same piece of code works properly on Netscape 4.75 when accessed as a simple jsp file?
    We want to achieve this functionality and any help/clarification on this particular issue would be greatly appreciated.
    Regards
    Vikram

    I had a similar problem using a different Javascript menu. If you take a look at the HTML generated by the portal and break it down into smaller sections you may find the HTML that is causing your Javascript not to load. It's a tedious task, but not all Javascript is the same. Note, if your javascript is using or manipulating the <div> tag. It must be relative positioned to an image or div or you may run into the problem of the javscript loading and displaying relative to the browser as opposed to your portlets.
    Laith E.H.

  • Javascript For loop not working within a function

    Hi all,
    I'm a beginner to LiveCycle and I cant seem to get a loop working within a function.  The function is being called successfully because when I manually create the code it works but I am trying to clean things up.
    So here is my working example:
    function hideContent() {
            MainFlowedSub.LevelsSub.Table1.presence = "hidden";
            MainFlowedSub.LevelsSub.Table2.presence = "hidden";
           ... and so on....
             MainFlowedSub.LevelsSub.Table8.Row1.presence = "hidden";
            MainFlowedSub.LevelsSub.Table8.Row2.presence = "hidden";
           ... and so on....
    However when I try and creat a loop instead of listing every sing table/row nothing happens. this is important to my project as there will be alot of different rows depending on radio button selections earlier in the form.  Below is the current state of my code:
    function hideContent() {
        var i=0;
         for (i=1;i<=5;i++)
             MainFlowedSub.LevelsSub.Table[i].presence = "hidden";
        var j=0;
         for (j=1;j<=23;j++)
             MainFlowedSub.LevelsSub.Table8.Row[j].presence = "hidden";
        var k=0;
         for (k=24;k<=88;k++)
             MainFlowedSub.LevelsSub.Table8.Row[k].presence = "hidden";
    this will then continue as there will be hundreds of rows.
    Any help will be greatly appreciated and I am sure I am making a basic error  so thanks in advance.
    j

    thanks for your help paul.  Again, really appreciated as I know very little about all this.
    Unfortunately its still not working... One thing I am sure of is that I am doing something very basic wrong. So here is my code, I have applied your suggestion above which will cover all my data:
    To give an understanding, I have 5 tables of content, each has i amount of rows. and I am running this script to clear/remove all items being displayed.
    function hideContent() {
        for (var i=1;i<=5;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table[" + i + "]").presence = "hidden";
        for (var i=1;i<=71;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table8.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=93;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table9.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=99;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table10.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=101;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table11.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=87;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table12.Row[" + i + "]").presence = "hidden";
    It has to be something to do with my For loops because if I manually insert each line it works perfectly.
    Thanks again,
    johnny

  • Adobe Javascript buttons does not work after deploying by ADS

    Hi,
    I have a dynamic PDF with adobe javascript " addInstance (1) ". In the preview of Adobe Lifecycle the PDF works like it should. However when I deploy the PDF in Developer studio the button is working anymore. It looks like the PDF isnt dynamic after deployment.
    I have tried to add the following code , but it isnt working:
    IWDInteractiveForm iForm1 = (IWDInteractiveForm)view.getElement("InteractiveForm1");
    iForm1.setDynamicPDF(true);
    Also, the properties of the PDF is set to Interactief Form, and XDP preview format is Dynamic PDF.
    Does anyone know what the problem is?
    Thank in advance.
    Thaibinh
    Application details:
    Acrobat Reader 7.0.9 and higher
    Adobe Live cycle 7.1
    Developer studio S 7.0.13
    AdobeControl version  6.3018.0.1
    Type browser Internet Explorer 6.0
    Operation system Linux
    Type of interact form ACF
    Netweaver 2004s

    Hi Harman,
    Am i inserting the code at the correct spot?
    //@@begin javadoc:wdDoModifyView
    Hook method called to modify a view just before rendering.
    This method conceptually belongs to the view itself, not to the
    controller (cf. MVC pattern).
    It is made static to discourage a way of programming that
    routinely stores references to UI elements in instance fields
    for access by the view controller's event handlers, and so on.
    The Web Dynpro programming model recommends that UI elements can
    only be accessed by code executed within the call to this hook method.
    @param wdThis Generated private interface of the view's controller, as
           provided by Web Dynpro. Provides access to the view controller's
           outgoing controller usages, etc.
    @param wdContext Generated interface of the view's context, as provided
           by Web Dynpro. Provides access to the view's data.
    @param view The view's generic API, as provided by Web Dynpro.
           Provides access to UI elements.
    @param firstTime Indicates whether the hook is called for the first time
           during the lifetime of the view.
      //@@end
      public static void wdDoModifyView(IPrivateInfosessieenqueteView wdThis, IPrivateInfosessieenqueteView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
         if (firstTime) {
         IWDInteractiveForm iForm1 = (IWDInteractiveForm)view.getElement("InteractiveForm");
         iForm1.setDynamicPDF(true);
        //@@end

  • Downloading a pdf file from javascript() window does not work

    PDF download/view works fine where the link points to actual pdf file. But I have problem downloading/viewing pdf files that are loaded using javascript(), e.g. bank statements and such. When I click a link FF downloads a file which either has no extension or has a different one (not .pdf).
    Later I realized that I can manually rename the downloaded file to insert .pdf extension and open it in reader.
    How can I solve this? I don't have this problem when using IE or Chrome.
    Thanks

    Could you try a new profile?
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be cautious not to copy corrupted files to avoid carrying over the problem.
    http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    If it still happens with a new and clean profile then the most likely cause is that you have security software that is blocking this JavaScript.

  • Some javascript code does not work out in a .jspx page

    To the experienced:
    I am trying to improve some pages in my application. In one of the pages, there are only two elements in the form: an input box (for user to put in his username) and a submit button. What I am trying to do are:
    1. Make the input box be in focus when the page is loaded, so that the user can start typing right away without having to fumble for the mouse and than click the input for it to get focus.
    2. After the user has typed the username, pressing the Enter key to submit the form instead of fumbling for the mouse again and click hte submit button.
    These are not difficult to do. I wrote a test page, and the following are the snippets from the test page:
    <pre>
    &lt;body <b>onload="document.getElementById('username').focus();"</b>&gt;
    &lt;form method="post" action="http://host.domain.edu/pages/staffLogin.jspx"&gt;
    &lt;table&gt;
    &lt;tr&gt;&lt;td&gt;UID:&lt;/td&gt;&lt;td&gt;&lt;input <b>id="username"</b> type="text" name="LoginName"&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;input type="submit" value="Submit"&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;/table&gt;
    &lt;/form&gt;
    &lt;/body&gt;
    </pre>
    This page does the two things that I want to accomplish, in both Internet Explorer and FireFox. I do not need to add any code for the Enter key to act for the submit button - it behaves that way by default.
    But not in the page of my application, with the snippets here:
    <pre>
    &lt;f:view&gt;
    &lt;afh:html ...&gt;
    &lt;afh:head ...&gt;
    &lt;script type="text/javascript"&gt;<b>self.resizeTo(900,1000);</b>&lt;/script&gt;
    &lt;meta .../&gt;
    &lt;/afh:head&gt;
    &lt;afh:body binding="#{staffLogin.body1}" id="body1" <b>onload="document.getElementById('inputText1').focus();"</b>&gt;
    &lt;af:inputText binding="#{staffLogin.inputText1}" secret="true" <b>id="inputText1"</b>
    required="true" requiredMessageDetail="Password required."
    value="#{staffLogin.submittedPassword}"
    <b>onkeydown="if(event.keyCode == 13) document.getElementById('commandButton1').click();"</b>/&gt;
    &lt;af:commandButton text="Submit"
    binding="#{staffLogin.commandButton1}" <b>id="commandButton1"</b>
    action="#{staffLogin.commandButton1_action}"/&gt;
    </pre>
    What do I do not right? Is DOM recognized in .jspx? Note that the <code>self.resizeTo(900,1000);</code> part works.
    Many thanks!
    Newman

    Hi,
    use af:document instead of afh:html (etc.)
    http://download.oracle.com/docs/cd/B25221_05/web.1013/e18745/tagdoc/core/document.html
    initialFocusId       
    the id of the component to which you want the focus to be when the full page renders. The accessibility-mode must be set to "inaccessible" for this feature to be on. This attribute is not supported on the following agent types: pda, phone, voice.
    Use af:form to define the form
    http://download.oracle.com/docs/cd/B25221_05/web.1013/e18745/tagdoc/core/form.html
    defaultCommand       
    The id attribute of the command button whose action would be invoked by default for form submit on hitting enter on any of the input fields of the form.
    You don't need JavaScript at all!
    Frank

Maybe you are looking for

  • TTReclaim and using a different TMP dir in UNIX

    Running out of space in the /tmp. Documentation states the following: Unable to write to the temporary file used to spool the headers of reclaimed log records. Make sure there is enough space on the disk where your temporary directory resides or chan

  • What's wrong with my ipad2? I just can't bear it always restart again and again when I just play a simple game!

    What's wrong with my ipad2? I just can't bear it always restart again and again when I just play a simple game! What's wrong with the apple without Jobs?!

  • INV.MTL_ONHAND_QUANTITIES

    This is an Oracle Apps specific question. I am not sure if this is the right forum. I need to move some inventory from one location to another in the mtl_onhand_quantities table. I belive that I should be using the mtl_transactions_interface to do so

  • Production order - Components

    Hello I have the following components in the production order : 0000     A005.A06182     CC 0,6X669X2074 S280GD+Z275MC POL RR109F     71      M2 0001     B002.S00004     Colour Coated Sheet                                               68,531-     M2

  • CS4 Lightroom Memory

    thinking about the following purchase: Windows Vista Home Prmium SP 1 (64-bit) Intel Core 2 Duo Processor E7500 [2.93GHz,  3MB L2, 1066MHz FSB] 8GB DDR3-1066MHz SDRAM [4 DIMMS] 512 MB ATI Radeon HD 4350 [DVI, HDMI, VGA] will this be enough to run bot