Javascript not woking in IE and Chrome

Hi All,
I have simple javascript function in my application that set focus in button. The code is below:
<script type="text/javascript">
function setfocs()
$('#add_row_id').focus();
</script>
This function is working in Firefox only, but not working in Chrome and IE. Please tell me how to solve this?
Thanks

Hi,
I have simple javascript function in my application that set focus in button. The code is below:
<script type="text/javascript">
function setfocs()
$('#add_row_id').focus();
</script>This function is working in Firefox only, but not working in Chrome and IE. Please tell me how to solve this?
>
Please use the &#123;code&#125; tags when posting code.
See http://www.mkyong.com/javascript/focus-is-not-working-in-ie-solution/
Cheers,

Similar Messages

  • JQuery/Javascript not working on Firefox and Chrome

    Hi guys, I've had this Jquery/Javascript on my page for a long time. This has stopped working. If the user clicks on buttons on the Apex page, nothing happens.
    It works on IE but doesn't work on Firefox and Chrome. It used to work fine.
    Is there anything I can change to make it work on all 3 browsers?
    Firefox error console shows a syntax error at this point in the script:
    $allButtons.click(function(){
    itemChanged = false;
    var toDo = $(this).attr('data-submitval');
    eval(toDo);
    Please can someone help?
    This is the full script:
    <script type="text/javascript">
    //<![CDATA[
    var itemChanged = false;
    $(document).ready(function(){
    var $items = $(':input');
    var $htmlButtons = $(':button[id]');
    var $templateButtons = $(':button[class]');
    var $allButtons = $($htmlButtons).add($templateButtons);
    $items.change(function() {
    itemChanged = true;
    $templateButtons.attr('data-submitval', function(){
    return $(this).attr('onclick').toString().split('\n')[2];
    $htmlButtons.attr('data-submitval', function(){
    return this.id;
    $allButtons.removeAttr('onclick');
    $allButtons.click(function(){
    itemChanged = false;
    var toDo = $(this).attr('data-submitval');
    eval(toDo);
    $('a').click(function(event){
    if ($(this).children('img[id="P&APP_PAGE_ID._DATE_PICKER_IMG"]').length > 0) {
    event.preventDefault();
    eval($(this).attr('href'));
    window.onbeforeunload = function() {
    if (itemChanged) {
    return 'You have made changes to data on this page. If you navigate away from this page without first saving your data, the changes will be lost.';
    //]]>
    </script>
    Thanks
    Sam
    Edited by: sam on 29-Jan-2013 03:50

    JavaScript doesn't work on any site at all? If particular sites are the issue, or you get specific error messages, please let us know.
    Usually the only two ways to disable JavaScript in Firefox are:
    (1) Options dialog > Content tab<br>
    (2) NoScript add-on (or other security-related add-ons)
    Normally Safe Mode bypasses issues caused by add-on problems or non-default settings, so it's worth considering external issues.
    Does JavaScript work normally in any other browsers you have installed?

  • Flash buttons not working in IE7 and Chrome

    Here's my website where the problem is occuring www.bakercreative.co.uk
    As you can see the Flash buttons animate, but when clicked they should go to a new html page.
    I've tested it in IE8 and Firefox without any problems but it's not working in IE7 and Chrome.
    Does anyone know what the problem is? Could it be the html code or the flash file itself?
    Thanks

    Hi, Glad you were able to solve that issue with the buttons and Chrome. Any small thing can cause big problems!! LOL
    I'm sure IE7 will test out ok, IE6 did Your website is very nice and has a variety! I hope it all comes together for you.
    Thanks,
    eidnolb

  • Richtextbox tools bar menu is not display for Firefox and chrome. Any idea why this is happening?

    Hello,
    I have added RichTextField in custom webpart. I have added tag like below
    <SharePoint:InputFormTextBox ID="RichTextField1" runat="server" TextMode="MultiLine" RichTextMode="FullHtml" Columns="20" Rows="10" RichText="true"  />
    We are able to see Richtextbox tools bar menu in IE browser but it's not working for other browser like chrome and Firefox.
    Can anyone suggest us why this is happening?
    Any help would be appreciable.
    Thanks,
    Lovkesh Patel

    Hi,
    According to your description, my understanding is that the richtextbox tool bar menu not display in non_IE browser.
    The richtext box not supported in Non-IE browser, it leads to the issue.
    Here are some similar thread for your reference:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/c6482efb-72e1-4536-a3cb-153d838744a4/sharepoint-rich-text-editor-not-working-in-firefox-and-chrome
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/8133e762-d996-4672-a176-aa37f45c46c0/sharepoint-text-control-with-rich-text-edit-tools-on-ribbon
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Flash not working in Safari (and Chrome and Firefox) - possible solution

    Yesterday my Mac crashed (actually when I was away from it) and when it rebooted, Adobe Flash would freeze any web browser it ran in (Safari, Firefox and Chrome - which surprised me as I thought it used a different version of Flash). Great with so many live-blogs happening in the world of news right now.
    I tried all the usual suspects:
    * Deleted browser caches;
    * Uninstalled Flash (Adobe have an uninstaller available) and reinstalled the same version;
    * Uninstalled Flash and reinstalled the newest version;
    * Made sure I had no duplicate fonts (I did) as I'd experienced problems with this with an iPhoto upgrade;
    * Checked recent upgrades (iWeb and Camera updates) to see what they installed (nothing dangerous);
    * Fixed permissions (they needed it);
    * Tried running Safari under 32-bit (didn't think that would work as I hadn't updated Flash itself);
    * Signed in as another user.
    None worked.
    As a last resort, I downloaded the latest version of the Onyx utility (freeware) and ran the Maintenance scripts, then, under Cleaning, deleted System cache, User cache, Internet stuff (left the cookies), and Font caches (you'll need to Close all the dialog boxes then Restart at the end). Expect a long reboot.
    That worked.
    It may not work for everyone but may for someone.
    Scott

    I was having the same issue. I logged into another account, a plain no add-ons account and found that I could view flash content with Safari OK. That mean that there was some preference file in my primary account that was the culprit.
    Here's how to cull out the bad apple (pun intended):
    Trouble Shooting Preferences
    Go to HD/Users/Your_name/Library. Move the Preferences folder (in its entirety) to the Desktop and make a second copy of it so you have Copy A and B. Now try the the process again and determine if problem is fixed.
    If the problem IS fixed, then go to the new Prefs folder that the OS will have created and open it up.
    Open Copy B on the Desktop and select all of the items inside. Drag them into the open new library folder. When the Copy window comes up check the Apply to All check box and then click on the Don't Replace button as seen here. That will keep the new files created and bring back all of the others.
    If the problem is NOT fixed, trash the new Prefs folder and move the intact Copy A folder back to the Library folder .
    This cleared it up. I ended up with 16 items that were not put back in the preference folder.
    Hope this will work for some of you.
    Do you Twango?

  • Embedded swf in pdf does autoplay in IE(9), does not play in Firefox and Chrome.

    I created a pdf with swf embedded. Set it to autoplay.
    Does play fine in IE9.
    In Firefox and Chrome video shows up (initial picture) with a play button.
    Will not play, not auto nor when I click the play button.
    Firefox and Chrome I just downloaded, so the newest versions.
    Windows 7 professional.

    Found the solution for Firefox.
    In firefox, goto tools/options.
    Look for Portable Document Format (PDF).
    Select it and in drop down choose Use Adobe Acrobat (in Firefox) instead of Use Firefox (Default)
    Thanks but no thanks, Acrobat team.

  • Videos run by flash player not working on IE and chrome

    First, upgraded new adobe flash player, videos did not work so I deleted it and downloaded the flash player again.
    Also videos were not running, Repeated downloading and unistalling 7 times.
    I checked add-ons and enabled shockwave, disabled active X filtering,
    deleted flash player folder in Adobe and Macromedia folder...
    How can I make the videos run?

    Please try the troubleshooting steps in this FAQ:
    How do I troubleshoot and report problems with Flash Player Video?

  • Flash video not loading in IE and Chrome

    Hi,
    I have published a simple flash video page and uploaded it to my website.
    It works fine in Firefox but in IE and Chrome it seems to load the first 10 seconds i.e the loading bar goes grey for a small section, Then the buffering comes up and the video doesn't load.
    I've upgraded my flash player to the latest one. Cleared my history and opened my browser again.
    Can anybody help me?
    Thanks

    i see the same problem with all three browsers:  that video won't play unless the an initial portion has already been cached.
    to remedy, play and pause your video.  after a 3 seconds * bitrate of your video has cached, play your video

  • Javascript Not Loading on IE9 and above

    Hi,
    We are working on SharePoint Online 2013 (Office 365) and created Javascript(.JS) files using SharePoint JSOM. The javascript files get loaded on IE8, however when we are testing on IE9 and above browsers, the JS files are not getting loaded, and our functionality
    is not working.
    Please suggest what could be the possible issue with browser compatibility OR Is there any issue in our javascript file ?
    Vipul Jain

    HI Vipul,As you said the Java Script loaded in IE8.so,It would nt be the issue with Script.Please try access by firefox,Chrome and Use 32 BIt IE9,Since SharePoint 2013 fully support IE 32-bit version above 7, there might be compatibility issue with other
    browsers. I’d recommend you use IE 8,9,10 32-bit for optimal Performance and let me know the results.
    Anil Avula[MCP,MCSE,MCSA,MCTS,MCITP,MCSM] See Me At: http://expertsharepoint.blogspot.de/

  • External Javascript not working with C# and XAML windows phone app

    I've added a WebView into my project. If I navigate to the html file that contains external javascript files they don't work. Bit if I write the javascript code hardcoded into the html file it works properly.
    Here is the html portion:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta charset="utf-8" />
    <title></title>
    <script type="text/javascript" src="testjs.js"></script>
    </head>
    <body>
    <div id="abcd"></div>
    <br/>
    hello! this is a simple html block.
    </body>
    </html>
    Here is the javascript portion:
    document.getElementById("abcd").innerHTML = "New text!";
    When I open the webview it shows
    hello!
    this is a simple html block.,
    but if the javascript code worked it would show
    New
    Test! hello! this is a simple html block.
    And in the C# code the uri is called this way:
    url = onlineTestWebView.BuildLocalStreamUri("myUrl", "problem_page/test.html");
    StreamUriWinRTResolver myResolver = new StreamUriWinRTResolver();
    onlineTestWebView.NavigateToLocalStreamUri(url, myResolver);

    I assume this is because you are using NavigateToString. Please see
    http://blogs.msdn.com/b/wsdevsol/archive/2014/06/20/a-primer-on-webview-navigatetolocalstreamuri.aspx
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Create pdf extension not working in FF and chrome.

    I have the latest versions of FF 37.0.2, chrome (Version 42.0.2311.135) and acrobat 11.0.10. Chrome plug in gives an error saying use 11.0.9 version or higher and FF plug in is enabled yet it doesnt appear on the toolbar.

    Hi
    For Firefox:
    1. Please click on the below icon in Firefox and click on "Customize" option.
    2. A screen similar to this will open:
    3. If you are able to see the Acrobat - Create PDF icon here, then you can drag and drop it to the above toolbar and click on "Exit Customize".
    If you are not able to see the add-on, can you please share the screenshot of the same window?
    For Chrome:
    Can you please tell which Windows OS version you are using?
    Thanks
    Tanvi

  • Look& fill is not right in IE and Chrome for OAF page

    hi all,
    I have some doubts:
    1.I have added one custom RN to one oracle standard page. it is working fine in Google Chrome browser but the look & fill is not coming right in IE.
    2. I have 4 dropdown lists in my RN, when i will select any values from them PPR should fire..it is working fine but first the validation on the standard page is firing then only my cutom RN is coming.
    I hav etried by changing: super.processRequest and super.processFormRequest methods up and down....even i have removed this methods from my custom CO but still the standard page validations are firing first, please suggest me how i can supress it.
    Thanks in advance
    Mahesh

    Hi all,
    This problem is solved...it is strange in OAF.
    I just changed the id to some other name and imported the page....it is working
    Thakns all

  • Oracle BAM Web Applications not supported by Firefox and Chrome browsers

    Hi,
    1) To enable Oracle BAM in a BPM project, when a project data object is marked as a business indicator, the Process Engine stores
    its value in the BAM and DataMart databases, as explained in the documentation. So, How can we use this information to monitor the process activity? Is there any detailed documentation or a sample?
    2) Does Oracle BAM Web Applications still not supported by the browsers Firefox (3.5 and 3.6) and Google Chrome?
    Tahnks. Regards,
    Hanine

    Hanine,
    The business indicators can be used when creating your data objects in BAM Architect and BAM Active Studio.
    The BAM tools still require Internet Explorer only.
    Heidi.

  • Javascript not working in Safari and Firefox

    in stead of rendering the html generated by javascript, the html code itself is displayed in both Safari and Firefox.
    The strange thing is that this is only for one of my accounts. This account was transferred using the migration tool from my previous computer, where I also had this problem.
    A brand new generated user account does not show this problem.

    HI,
    In the affected account...
    From the Safari Menu Bar click Safari/Preferences then select the Security tab.
    Make sure: Enable plug-ins and Enable Java and Enable JavaScript are selected.
    Since you are running Snow Leopard, make sure Safari is running in 32-bit mode, not 64. Right or control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode. Also, (in that same window) *make sure Safari is NOT running in Rosetta.*
    Relaunch Safari.
    Carolyn

  • My password  not woking on mac and iPhone all of the sudden

    My mac book and my iphone are have trouble keep saying password not good  but it is the right on and it works on icloud.com just fine. I was working fine yesterday morning and then in the evening it started this

    Hello Jodi216,
    It sounds like you are unable to access your email in the mail account becuase you are being told the password is incorrect, and you have removed the email account and re added it. I recommend starting by deleting the mail account as you had before. Then close the open apps on your phone:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that and restart the phone and test the issue by signing back into the account in Settings, and testing the issue again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If it persists, I would next backup your device to iTunes with this article:
    iOS: How to back up and restore your content
    http://support.apple.com/kb/HT1766
    And restore it from your backup with this article to delete the current iOS 7 installation and install a fresh copy:
    Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

Maybe you are looking for

  • Captions in other languages

    This question was posted in response to the following article: http://help.adobe.com/en_US/captivate/cp/using/WS3B748FDE-83F6-401f-A420-72CC2D2F5214.html

  • T-code SUIM taking much more time for generating output for profie change.

    Hi All We want to extract report for profile addition and deletion for Users in ECC 6. While executing the the t-code SUIM it is taking much more time (taking more than 20 hrs). This problem is coming after patch application Please give the solution/

  • Change Dynamic Memory

    hyper-v 2012 r2. Is there a way to change the dynamic memory in a vm via a cmdlet?

  • How do I unstick the hour when entering a new event?

    Suddenly, when I enter a new event, I cannot change the hour from the default 1:00. I can change the minutes but not the hour. Any ideas on how to solve this on my IMac?

  • No F11 - OS: Win 7

    Hey all, I got my Ideapad S10e some days ago and just installed windows7. Everything is working fine, except for the fact that I can't set my screen resolution above the native resolution (as I could in winXP) Now that I want to restore the old origi