JavaScript and "Open In New Window" not working.

I've been using Safari 5 since it came out and there were no problems. But recently my JavaScript has stopped working. Whenever I click on a link that is supposed to run a script nothing happens. Similarly when I click a link that is supposed to open automatically in a new window, nothing happens. I've tried reseting Safari but that did not help. I had this same issue with Safari 4 and the update to 5 solved it, but now I do not know what to do.

HI and welcome to Apple Discussions...
From the Safari Menu Bar click Safari/Preferences then select the Security tab.
Make sure Java is enabled.
And, from a Finder window select your Home Folder in the Sidebar on the left. Then open the Library folder, then the Caches folder, then the com.apple.Safari folder. Move the cache.db file to the Trash.
Relaunch Safari. If you still have problems, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop.
Relaunch Safari and see if that makes a difference. If not, move the .plist file back to the Preferences folder. If Safari functions as it should, move that .plist file to the Trash.
I had this same issue with Safari 4 and the update to 5 solved it, but now I do not know what to do.
If nothing above helps, install the v10.6.4 Combo Update
Then repair permissions.
Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and *restart your Mac*.
Carolyn

Similar Messages

  • HTML-DB OAE Javascript to close current window and open a new window

    Hi everybody,
    We work with 1.6.
    What we want is to close the current window and open a new window with the URL mentionned in the window.open('http://www.cf.qc/pls/portal/PORTAL.....,'newwindow').
    The new window opening fires only once although we call it many times.
    Our javascript is:
    function closeTest()
    { alert('closeTest');
    if('&REQUEST.'=='QUITTER2'){     
    w = window.self;
    w.opener = w;
    w.close();
    window.open('http://www.cf.qc/pls/portal/PORTAL.home','newwindow','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
    We call it on our application attributes :
    OnLoad="closeTest()"
    Thanks. Bye.

    Try this on for size:
    I have included two functions.
    windowRebuild() - opens a new window, maximizes it based on the screen size, removes all toolbars, and then closes the old window.
    myLocation(appName, pageName) - builds a url referencing an HTMLDB application, specfic to what server you are currently on. Very useful when you have an application on 3 different servers(dev, test, prod servers), you wouldn't want the server name hardcoded if you plan to export the app to another server.
    Also, you need to be careful when using &APP_ID. I am not completely certain how that is resolved at runtime, but I've found it only works when the javascript is in the HTML Header of a page and not stored in the template of the page.
    <script language="JavaScript1.1" type="text/javascript">
      This functions is for internal application use.
      Examples of myLocation:
      url = myLocation('&APP_ID.', 'APP_PUBLIC_PAGE');
      url = myLocation('MY_APP_ALIAS', 'MY_PAGE_ALIAS');
      url = myLocation('184', '10');
    function myLocation(myApp, myPage){
      var myHost = location.host;
      var newURL;
      newURL = 'http://'+myHost+'/pls/htmldb/f?p='+myApp.toString()+':'+myPage.toString();
      return newURL;
    /*  Function windowRebuild()
    *   This function will open a new window and close the old window.
    *   This function will also maximize the new window and remove all toolbars.
    function windowRebuild(){
       if(window.name != 'myAppWin'){
        var url = myLocation('&APP_ID.', 'PAGE_ALIAS');
        var myWin = window.open(url,'myAppWin','toolbar=0,scrollbars=1,menubar=0,status=1,resizable=1,location=0');
        window.opener = 'x';
        window.close();
       if(window.name == 'myAppWin'){
        window.moveTo(0,0);
        window.resizeTo(screen.availWidth,screen.availHeight);
    </script>Let me know if that works or you need some more explanation.
    Chris

  • Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started. How do I set FF back to open tabs in 1 window

    Tabs only open in a new window. Ctl T opens a new window NOT a new tab help-last update this problem started 2 days ago. How do I set FF back to open tabs in 1 window?
    There is no plus sign and going into optins and changing settings has not worked. I have uninstall FF and reinstall-keeping my personalization-and that was no help.
    Right clicking on FF Icon to open a new tab, or going up to FF drop down tab and clicking on new tab both do not work.
    Help everything opens a new window not a new tab. there seems to be no way to reset this or to chose a different optin. I just downloaded new tabs at end addon and it didn't do a thing.

    as a first troubleshooting step - does it work like normally when you open & run firefox in [[Safe Mode|safemode]] by pressing the shift key while you open firefox (all other instances have to be closed before)...

  • SRW.SET_HYPERLINK - Handle SPACE in filename AND open in NEW WINDOW

    Report 10g (10.1.2.3.0 - 32bit on Windows 7 64bit)
    Issue #1:
    using srw.set_hyperlink to get a handle on *.pdf file on remote server. Report is launched as PDF. PDF that is opened via the URL launches in same window as report. I need run report as PDF, click hyperlink to get handle on another file which should launch in New Window.
    SRW.SET_HYPERLINKATTR only useful with HTML and HTMLCSS. Javascript? If so, sample code?
    Issue #2:
    possible that file retrieved will have spaces in its name. Hyperlink defaults %20 in the spaces of the name, but the link does not successfully retrieve file. Tried replacing spaces w/ %20, but like defaults does not retrieve document; due to actual file name not having the %20 in its actual name. Is there are way to account for the spaces in the URL then "remove" them to find the correct file and open in new window?
    Tried using virtual path as well as physical path.
    Help with either or both issues is truly appreciated,
    Thanks!!

    Hello,
    When you set the property "Hyperlink", the property "Additionnal Hyperlink Attributes (HTML)" is displayed. Set this property to :
    target="_blank"
    Regards

  • Links browser and open in new window

    I have 2 problems with links and elinks. All time when I type "open in new window" it work but it open always in xterm, not in the same terminal I`m using at that moment for example mrvxt
    Second problem is that I can`t open new tab normal or in background in elinks or links-g
    Last edited by yellowfox (2008-03-20 19:39:16)

    I tried to change variable TERM in .bashrc  or in /etc/profile but I saw in console only
    Error opening terminal: mrxvt.
    When I set this variable to "xterm" I had`t see any message as above
    I read too some about infocmp, this commned show some info included in /usr/share/terminfo about terminals but I found only info about xterm
    infocmp Terminal
    infocmp: couldn't open terminfo file /usr/share/terminfo/T/Terminal.
    infocmp mrxvt
    infocmp: couldn't open terminfo file /usr/share/terminfo/m/mrxvt.
    infocmp xterm
    # Reconstructed via infocmp from file: /usr/share/terminfo/x/xterm
    xterm|xterm terminal emulator (X Window System),

  • When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs

    When I open a new window, the current window is closed. I would like to keep the current window and open the new window without losing my current window. I checked "Open new window in a new tab instead" under tabs
    == This happened ==
    Every time Firefox opened
    == Noticed yesterday, June27, 2010

    i just went into preferences, deleted what was in the home page, and entered a new home page address which solved the problem, 

  • Problem with Javascript and opening a new page

    Hi,
    I'm developping a website with Java Server Faces.
    I've a problem with JavaScript.
    I have a table, and each row of that table, has a button, to display more information about that specific row. I want to display this information in a new window. For this I want to use JavaScript.
    The new window, of course, needs some information of the other window, to show the right data.
    The first time I click the 'more-information-button', it works perfectly, but from than on, he keeps showing the same information...
    Here is my jsp-page of the first page (the one with the table):
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
             <f:loadBundle basename="languages.MessageBundle" var="bundle"/>
            <html>
                <head>
                    <meta content="no-cache" http-equiv="Cache-Control"/>
                    <meta content="no-cache" http-equiv="Pragma"/>
                    <title>- UCV-Period -</title>
                    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
                </head>
                <body style="-rave-layout: grid">
                        <h:dataTable binding="#{UcvPeriod.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd" rows="5"
                            style="left: 24px; top: 168px; position: absolute" value="#{UcvPeriod.dataTable1Model}" var="currentRow">
                            <h:column binding="#{UcvPeriod.column1}" id="column1">
                                <h:outputText binding="#{UcvPeriod.outputUcvPeriod}" id="outputUcvPeriod" value="#{currentRow['UCVPERIOD']}"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText2}" id="outputText2" value="#{bundle.ucvPeriod_columnHeader_ucvPeriod}"/>
                                </f:facet>
                            </h:column>
                            <h:column binding="#{UcvPeriod.column11}" id="column11">
                                <h:commandButton action="#{UcvPeriod.btnDetails_action}" binding="#{UcvPeriod.btnDetails}" id="btnDetails" value="+" onclick="window.open('Details.jsp')"/>
                                <f:facet name="header">
                                    <h:outputText binding="#{UcvPeriod.outputText21}" id="outputText21" value=""/>
                                </f:facet>
                            </h:column>
                        </h:dataTable>
                    </h:form>
                </body>
            </html>
        </f:view>
    </jsp:root>Here is my action, when someone clicks on the 'more-information-button':
    public String bthnDetails_action() {
       Object s = outputUcvPeriod.getValue();
       BigDecimal ucvPeriod = (BigDecimal)outputUcvPeriod.getValue();
       this.getSessionBean().setUcvPeriod(new Integer(ucvPeriod.intValue());
       return "detail_ucvperiod";
    }Here is my constructor of the Detailspage.
        public Details() {
             this.txtUcvPeriod.setValue(this.getSessionBean().getUcvPeriod());
        }Here is the navigation part for this part of my faces-config.xml .
    <navigation-rule>
       <from-view-id>/UcvPeriod.jsp</from-view-id>
       <navigation-case>
           <from-outcome>detail_ucvperiod</from-outcome>
           <to-view-id>/UcvPeriod.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>Thx a lot....
    Anneke

    See the tutorial "Sharing Data Between Two Pages" at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/data_sharing_twopages.html and the FAQ "How can I pass data between pages without creating SessionBean variables in Creator?" at http://devservices.sun.com/premium/jscreator/standard/reference/faqs/technical/javasource/passing_data.html. Since you can open a new window when your button is clicked, the tutorial and FAQ will explain ways to pass your data to the new window.

  • Firefox opens the old browsing window (previous session) every time i try and open a new window, how do I change this back?

    Every time I go to open a new window, the old one will come up instead. For a while it was working fine, then I kept needing the old window and would use the 'restore previous session' feature to access this. However, even after I didn't need it anymore (and without me selecting the feature, it would still open the previous session.

    Tools > Options > General > Startup: "When Firefox Starts": "Show my home page" "Show a blank page"
    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js [2] and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js

  • Open in New Tab and Open in New Window have switched places, how to revert?

    I was glad to find as i logged in today that Firefox had a update ready. I was even more excited when i learned that the browser itself has been updated. And while all these new and exciting things make Firefox an amazing choice for a browser, im at my wits end on this little change that is annoying the hell out of me.
    Apparently between 3.6 and the new Firefox, when you right click on a link, you see Open in New Window in the spot where Open in New Tab was. This may not seem like a big deal, but to a person who has been opening windows in tabs since tabbed browsing came out, i absolutely hate having multiple windows open.
    When i right click on a link, its an automatic reflex for me to open it in a new tab, but now i cant. Each time i end up opening a window instead. Is there an easy fix to this little problem that's driving me insane?

    Opening order of Tabs in 4.0.1
    To make TABS open to the right within each browser window in the same order as you opening them:
    What to do:
    Open a second window so you can read these instr.
    Enter "about:config" in URL address bar.
    Get a warning - 'Are you sure / advanced settings...blah, blah. '
    Click YES
    Scroll down the page until you find the described line:
    "browser.tabs.insertRelatedAfterCurrent"
    Find it a ways down, then right click on the line to then TOGGLE the menu pop-up option to "FALSE" DONE !
    It worked immediately, no need to restart.
    My tabs now all open to the right in order of them being opened.
    Nice.
    Thank you 'Platon' from a different Mozilla help site.

  • Back button in new window not working

    When opening a new window and navigating to further pages the back button is still grey and does not work.
    When opening a new tab in the same window and navigating to further pages it works correctly.
    Therefore the problem is only when opening a new page.
    This is different to problems other people are having on this forum as they have problems on all tabs/pages.
    Mac OSX 10.4.11
    Firefox version 3.6.17

    Thanks cor-el for the reply. Your reference to Add-on was very helpful.
    It was the add-on called Image Tweak that was causing the problem.
    Just as a side point and this is aimed at Firefox, as usual the instructions within the help section of Firefox are for PCs and not Macs. The basic instruction for Safe Mode does not seem to apply to Macs even the 'Hold down shift key' instruction.
    Putting in 'Start with Safe Mode Mac' in the search facility comes up with 294 results - none about starting in safe mode.
    Thanks again cor-el.

  • AF Table-CommandLink and Open in New Window issue

    I am using af:table to display the result set and inside the af:table i use af:commandLink to display the link to users. When the user clicks the individual link , user will go to the correponding detail page which is working fine.
    But the problem is if i right click the commandLink from the browser and click "Open in New Window" in IE or "Open Link in New Window" . it opens a new window and displays the same page instead the detail page.
    My requirement is when user click the link user should see the corresponding detail page - which is working fine now.
    But when user clicks open in new window from browser in the new window user should see the corresponding detail page. How do i accomplilsh this scenario.
    Any help would be highly apprciateable..

    Hi Frank, thanks for the quick reply. But if u think of the end user, most of user always right click and click open in new browser to see the details. so that they can stay the results page. ..
    Do you mean, any link navigation in ADF faces, dont work if we click "open in new window"?

  • Go Recent Folders opens in new window, not the current one

    I noticed with Mavericks, when I use Finder>Go>Recent Folders, it opens a new window instead of changing the contents of the currently open window.
    Is there a way to get it to work the way it used to?
    Also, I thought you could open folders in new tabs automatically.  I have to right click for that option.
    In Finder Preferences, I have tried Open folders in tabs instead of new windows both turned on & off.  Nothing changes.
    thanks in advance

    Surebrec,
    '''Update:''' I found this, which you might want to try out before continuing reading: http://www.techsupportalert.com/content/how-stop-firefox-stealing-window-focus.htm
    Basically that would mean the reverse for you.
    If that didn't work:
    Does this problem appear without you having many applications running at the same time and/or if you have pinned a lot of applications to your Taskbar in Wondows 7?
    Some users have reported that this problem manifests itself if the row of icons in the Taskbar simply can't make room for any icons expanding (i.e. new windows in for instance Mozilla Firefox or Internet Explorer).
    If so, you might want to take a look at: http://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems

  • I can no longer hold down the Safari icon on the dock and open a new window

    I noticed after installing Snow Leopard that I am unable to hold down the icon for Safari on my dock and choose the option to open a new window. I have had to revert to (Command-Tabbing) through my open applications to get to Safari, then (Command-N).
    I found it much more convenient to do it the other way. Am I missing something, or is this something that has been removed with the new Snow Leopard operating system?
    Please help. Thanks!

    Thank you. What a pain though. Why would they make it a separate command now. It would be so easy to have kept it in the pop-up that shows when you hold the cursor down on it.

  • New windows not working/becoming active

    when i click on a link that open a new window, it appears, but when i click on it it clicks through it. i have to reopen the window to then use it. it should just become the new active page when opened, but isn't anymore. any way to fix this?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Can't get "Open in new window" to work

    Having my Macbook Pro on service I had to setup my good old Powerbook G4 again. The only stupid problem I have is that how ever I make the settings in Safari 5.0.1 it wont open any links in a new window. They always open in a new tab.
    Even is the link is "open in new window" or what ever. What do I miss here?!? Is there other settings for Safari then the preferences in Safari?

    Maybe my plist file is corrupted?
    Could be. Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder. Move the com.apple.Safari.plist file from the Preferences folder to the Desktop.
    Relaunch Safari. If Safari functions as it should, move that .plist file to the Trash.

Maybe you are looking for