Autofocus of tabs through javascript

Hi,
We have a critical concern in one of the application we are developing. The functionality works perfect on Google Chrome but it doesn’t work on Firefox (or atleast we are not able to make it work).
Below is our scenario:
1. Application is developed in ASP.NET
2. There are 4 menu items (A,B, C and D) on the application.
3. Each menu items has a parameter which displays different set of information on the page.
4. When we click on say A, it take parameter as 1 and opens a tab. When I click on B, it takes parameter as 1 and open a new tab with other set of information, and so on.
5. Now, then I am on B and already have a A tab open, if I click on A Menu on B, it should automatically redirect to A and the focus should shift on A.
6. Current, we are able to reload the A tab with new parameter, but the focus doesn’t shift on that A tab.
Is there anything we are missing? Request you to please help us here.
Jai

hello Jai, for security reasons websites cannot change focus between windows/tabs in firefox by default. you could try to work around that if you set the '''dom.disable_window_flip''' preference in about:config to '''false''', but this would have to be done manually by every user of the application...

Similar Messages

  • Date field automatcailly changing when tabbing through other scripted fields

    I have a form with a datetime field. The object is readonly. I format the field with javascript as yyyymmddhhmmss as a tracking number for the form. When tabbing through other fields with javascript the value changes to the current date time, like the code is being executed each time a scripted field is entered.
    Any ideas how to prevent that? I just want the code to execute when the form is opened.
    ----- form1.sbfDirect_Pay.dteCurrentDate::ready:layout - (JavaScript, client) ----------------------
    // Current Date in short-style date format.
    // $.rawValue = num2date(date(), DateFmt(1, "))
    var varCurrentTime = new Date();
    var varYear = varCurrentTime.getFullYear();
    var varMonth = varCurrentTime.getMonth() + 1;
    var varDay = varCurrentTime.getDate();
    var varHour = varCurrentTime.getHours();
    var varMin = varCurrentTime.getMinutes();
    var varSec = varCurrentTime.getSeconds();
    if(varMonth<10) varMonth = "0" + varMonth;
    if(varDay<10) varDay = "0" + varDay;
    if(varHour<10) varHour = "0" + varHour;
    if(varMin<10) varMin = "0" + varMin;
    if(varSec<10) varSec = "0" + varSec;
    // $.rawValue = year + "" + month + "" + day + "" + hour + "" + min + "" + sec;
    dteCurrentDate.rawValue = varYear + "" + varMonth + "" + varDay + "" + varHour + "" + varMin + "" + varSec;

    I think I just answered my own question. The code was in the layout:ready event. This area is executed each time the layout is modified. I moved the code to form:ready event.

  • How to use the index method for pathpoints object in illustrator through javascripts

    hii...
    am using Illustrator CS2 using javascripts...
    how to use the index method for pathpoints object in illustrator through javascripts..

    Hi, what are you trying to do with path points?
    CarlosCanto

  • In creating a fillable PDF in XI Pro, can I insert a table which can be tabbed through?

    In creating a fillable PDF in XI Pro, can I insert a table which can be tabbed through?

    You're in luck. Create the first field and then right-click it (in Form Edit mode) and select Create Multiple Copies. You'll be able to specify how many copies of the fields to generate, and at what intervals. The nice thing is that although the properties of the new fields will be identical to the source one, they'll each have a unique name, so you'll get an instant "table" of fields.

  • How to Call the Acrobat plug-in through javascript

    Is it possible to call the acrobat plug-in through javascript? Kindly help me with any samples.
    Thanks,
    Prabudass

    I have found the way to open the plugin menu "Documents-->OCR Text Recognition-->Recognize Text Using OCR" through javascript. Now i have to select the settings and set the values like the below options:
    1.Primary OCR Language : English (US)
    2.Pdf Output StyLe : Formatted Text & Graphics
    3.Down Sample Images : Lowest (600 dpi)
    which are listed in the "EDIT" menu of the "Recognize Text" form, and also to activate the "OK" button. Is it possible to do the above through Java Script. Please kindly provide any samples.
    Thanks,
    Prabudass

  • 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.

  • Tab through cells in a table created in Pages

    In 5.0 when I create a table I cannot tab through the cells. Is there a setting I'm missing here? Why must I use the arrow keys?
    Thanks.

    Thanks. I hadn't considered that and yes it works but not the same way it did before. Prior to the change if you made a change in the cell you could double tab to move onto the next one. Now you must use option + tab after making the change to go onto the next cell.

  • Issue tabbing through form fields on Adobe Reader 9.2

    Hello everyone.  I am having an issue that I am hoping someone can assist me with.  We are currently using IE6 and Reader 5.5 in our production environment and we are currently testing IE8 and Adobe Reader 9.2 for deployment.  Our company uses a web portal where we have many pdf forms that open within a web browser. The problem we are experiencing is that when tabbing through fields on the pdf, the cursor will eventually cycle down to the end of the form and then start cycling through to the top of the browser (toolbars, address bar, search bar,etc) before finally returning to the pdf document's fields.  Is there either a setting in the reader or maybe even IE which controls this functionality and will limit the tabbing to only the pdf form?  Or does anyone know of a method of limiting the tabbing functionality to only work within the pdf document itself when opened within a browser?
    Any help on this is greatly appreciated.  I have looked through all the reader preferences and do not see anything directly related to this.  Thank you very much in advance.

    I guess by QTP you mean HP Functional Testing 11. This is really something to take up with HP, it's the job of monitor software not to crash.

  • Tabbing through form fields in app doesn't work in Firefox.

    Is there a setting in Firefox that permits tabbing through form fields so that one doesn't have to use the mouse? This works fine in IE. for the same app without any configuration, but not in Firefox.

    Are you really still running Firefox 3.6? Since it hasn't received any security updates for nine months, you may be putting yourself at risk.
    In my experience, tabbing through forms works just fine. Have you tested in Firefox's Safe Mode to see whether the problem is caused by a custom setting or add-on.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.org/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in [http://support.mozilla.org/kb/Safe+Mode Safe Mode] by holding the Shift key when you double-click the program icon.
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    If tabbing works correctly, this points to an add-on or custom setting as the most likely cause of the problem.

  • Tabbing through PDF Forms on iPad

    I have a stupid question.
    I've built a bunch of forms in Acrobat Pro XI, and the company I work for provides everyone with iPads for ease of use.  heh.
    Our people are using external keyboards for the iPad to fill out these forms and I've been told that the Tab Key on the keyboard does NOT tab through the field.  Instead they have to use the Next button on the on-screen keyboard.
    Is there a way to get around this?  They are using Adobe Reader on their iPads.
    I do have an iPad, however, I don't have an external keyboard for it - so I can't troubleshoot this. 
    Thanks for any help.  Oh how I loathe this stupid trend.

    ZAGG make a Great KeyBoad Case combination for your iPad. Its slightly miniturized Full sized keyboad it’s a Bluethooh keyboard.  And it actually has the same feel as a Standard Laptop keyboard. It doesn't feel like a Chicklet keyboard. I have one for my iPad. The case is made out of Kevlar.  The key board uses any unversal Power brick that uses a standard USB connector at the brick ined and the micro USB in key board end. I bought the case for mine along with iPad just after the iPad3 came out I have yet to recharge the keyboard.

  • Tab through the Close File dialogue window buttons?

    In the past when closing a document or file (any app) I could Tab through the different 'Don't Save', 'Cancel' & 'Save' buttons on the close file dialogue window. And also hit the spacebar to select the highlighted button.
    But not any more. It could have stopped working when I deleted items (cleaned up?) from my home Library folder, or maybe it happened after the 10.4.10 update?
    Does anyone else have the same problem? (Can you Tab through them & hit the spacebar to select the highlighted button?) Does anyone know how to fix it?

    Select "All controls" at the bottom of the "Keyboard Shortcuts" pane of "Keyboard & Mouse" System Preference. Control-F7 will also turn it on or off.

  • Is tabbing through all the active cells of a table possible?

    hi...
    i need to tab through the active cells which are already not seen on the table. i mean i can only tab through the cells which i see, i need to use the horizontal scrollbar to move to the cells which are not already seen.
    can i programmatically change this behaviour?
    i used the example program below to disable a part of the table.
    http://zone.ni.com/devzone/cda/epd/p/id/2163
    then i noticed this behaviour. hope its the same with arrays also.
    please reply with your valuable suggestions
    thanks in advance
    Renn 
    Kudos always welcome for helpful posts

    Please hav a look at the VI
    Kudos always welcome for helpful posts
    Attachments:
    disabletablecells_test.vi ‏74 KB

  • Set MaxLength in h:inputTextarea through javascript

    hi,
    There is no maxlength attribute in <h:inputTextarea> for JSF. So how can i set the length through javascript ?
    Is it possible?
    Thanks,

    It is possible but not straightforward. Try a JavaScript forum.

  • "Text Boxes" (comments) in my form are included in "tabbing" through fields while filling in a form

    I have included several text boxes (not text fields) in my form. They are adjacent to the fields that are being filled in and serve various comment functions that I do not want in the printed form at the end.
    If the user "tabs" through the fields to enter data in the next field the 'text boxes' (comments) are included in the tab stops... I can not see where to turn that off. I want the tab order key to ignore the comment fields - the text boxes. They are not even listed in the tab order menu.
    Also - is there a way a field that shows up multiple times in a form (duplicate field) can be skipped by the tabbing through IF it aleady has data in it?

    I'm not aware of any app that will translate the form fields from Word to the iPad. My guess is that you're going to have to recreate the forms on the iPad.  The best app that I've found for doing this is FormConnect http://http://itunes.apple.com/us/app/formconnect/id432653695?mt=8&ls=1. It's a very simple app for creating check boxes and text fields.

  • Trying to open a page in IE-tab using javascript, script type="text/javascript" window.location.href="chrome://coralietab/content/container.html?url=0,myurl" /script Error:Component returned failure code:0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]

    I am trying to open a page in IE-tab using javascript like this, <script type="text/javascript"> window.location.href = "chrome://coralietab/content/container.html?url=0,myurl" ;</script>.Error occured : [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.href]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::myurl :: load :: line 234" data: no] I have IE-Tab plug-in installed..when I open the same link manually in mozilla,it works fine and page gets opened in Ie-tab.

    The only way this might be possible is by using the HostContainer object
    to access the HTML page and do it from there.

Maybe you are looking for

  • LPX + NI 80s Drummer - snare triggering problem

    Hi Guys, I would be grateful for any help on this one... I've been struggling with a specific problem with Logic and Native Instruments "80s Drummer" (and some of the other NI drummer products as well). I am using a Roland TD12 V-Drums kit, and runni

  • ITunes deleted my iPad drivers while updating software

    If anyone can offer any insight into my problem, I would be so appreciative! I apologize for my lack of computer-savvy in advance. I plugged my iPad2 into my computer (Windows Vista OS) to sync it, since I hadn't done that in about a month. iTunes in

  • German Language Special Characters not retrieved Correctly

    I am using a rpc base apache axis web service receiving a vector /** creating object for calling the web service */ Call call = (Call) service.createCall(); /** setting the web service address by URL */ call.setTargetEndpointAddress(new java.net.URL(

  • Error of certificate

    I have a coexistence of Exchange 2010 ang Exchange 2013 and i migrated mailbox,  but when i open this mailbox in outlook i see this error: The name on the security certificate is invalid or does not match the name of the site. Please help

  • Java to exe (eclipse)

    hello there . I am using eclipse and i have created a host card application. When i run it from eclipse i dont have any problem. How i can compile my project to executable? I try excelsior jet but nothing.... Thank you in advance. Linos