How do I open a new tab/new URL from a plugin's sidebar?

I have created a plugin with a sidebar. I would like to be able to change the URL of the current tab in the sidebar's window or open a new tab, given that I click a button in the sidebar (or an event is triggered in the sidebar). I am currently using the following Javascript code to go to a new URL:
content.location = newURL;
However, I have other buttons in the sidebar that open new (small) windows. If I first click one of these buttons to open a new window, then the above code fails; it changes the URL of the tab in THAT NEW WINDOW, not in the window of the sidebar. How do I change this?
This also seems to be complicated by the fact that the sidebar document does not have a parent. Any tips are appreciated!

Hi fireferret817,
Thank you for your question, however development questions are best answered in stackoverflow.com or the mozllazine.com forums.
If there are any differences made when you change the behavior of opening up a new url this option can be found in the Preferences/Options > Tab menu.

Similar Messages

  • How can I open "Place..." dialog from my plugin?

    Hello All,
    There is a "Place..." item in  "File -> ...". If we can click on "Place...",  "Place" dialog will open and asks for .ai file to place the whatever the art is there in that file in the current document. Right.
    Now what I want is, if I click on one of the button in my plugin UI, "Place" dialog will open and art will be drawn in the current document.
    I looked into the API documentation and found AIPlacedSuite::ExecPlaceRequest( ) function, but no use.
    How can I open "Place" dialog from my plugin?

    The SDK does not provide any calls to open the Place dialog directly.
    You have a few potential solutiuons, however.
    A. Implement your own file dialog box, and use the Place suite. Which I think is perhaps the most elegant solution.
    B. Programitcally create an action that opens the Place dialog. You can record an action that does this to see what file would have to be written (see "Insert Menu Item..." then type "Place", enter while recording). Then you could call the action with the Action suite.
    C. The dialog could be opened using the scripting capabilites (for instance AppleScript). Your program could then write/call the AppleScript. I know it can be done with AppleScript, and I suspect other scripting languages such as Java might be able to do it.
    Hope this helps.

  • How can i open iphoto after the new update OS X 10.9.2 (13C64) i keep getting this mac can not open this application.

    How can i open iphoto after the new update OS X 10.9.2 (13C64) i keep getting this mac can not open this application.

    This screenshow shows which previous versions of iPhoto are compatible with Mavericks.  It also indicates which versions qualify for a free upgrade to iPhoto 9.5.1 and which require a purchase:
    OT

  • How can i open RAW files in Photoshop CS4 from Canon EOS 6D camera?

    How can i open RAW files in Photoshop CS4 from Canon EOS 6D camera?

    You can't directly but can use DNG Converter to convert your files so ACR can read and process them.
    Camera Raw plug-in | Supported cameras
    Camera Raw-compatible Adobe applications

  • How can i open up my i tunes account from my iphone on my husbands mac as he already has 1 set up?

    How can i open up my i tunes account from my i phone on my husbands mac as he alraedy has an i tunes account already set up?

    Welcome to the Apple Community.
    You'd be best setting up a second user account on the computer and then set up iTunes under your user account with your ID.

  • Suddendly everytime I open a new tab it goes from Mozilla to Bablylon search. What is this and how do I get rid of it please? Using Firefox 5.

    Hi,
    When I open my Mozilla brower it opens up on the Mozilla Firefox Start Page but when I open a new tab it opens using Babylon search. This is something that has only just started happening and I don't like it and I don't want it on my machine. what can I do to get rid of it and revert back to all tabs opening with Mozilla?
    Thanks for your help.
    Pat

    See:
    *http://www.babylon.com/support/faq/usage.html#22
    *[[/questions/746530]] How do I fully remove Babylon

  • How do i open google searches in new tab?

    Until quite recently I was able to open a Google search in a new tab by just clicking on the page link. Now I can't, even though my settings are set to do this. The only way I have been able to open in a new tab is by right clicking and clicking "Open Link in New Tab". What am I doing wrong?

    For the Google website you can set your preferences on the Google.com page via the [http://www.google.com/preferences?hl=en Google Search settings] link at the top right.
    Results Window: Open search results in a new browser window.
    You need to allow cookies for Google (Tools > Page Info > Permissions) to save that setting, otherwise you have to repeat it.

  • Problems opening a New Tab in Safari from Bookmark Bar Folder

    When I am in Safari and attempt to Open a link to a new tab from the Bookmark Bar that is part of a Folder on the Bookmark bar it does nothing.
    I can change the preferences to auto-click for the Bookmark Folders, but then every link loads when I try to access the folder from the Bookmark Bar. Very cool to see lots of pages loading at once, but not what I'm after. Doesn't seem to be a way to just load 1 link from the folder
    If its a single link on the Bookmark Bar that has not been organized into a Folder it does work.

    You know what? - my Safari works just the same way.... but I'd never noticed before.
    I've used apple-click to open single bookmarks from the bar, many times. But have always ( for no particular reason) opened a new tab first ( apple-T ) if I've been looking for bookmarks within a folder.

  • I have received emails with attachments such as  .wmv  .avi etc     How do I open them on my new iMac ?

    How do I open attachments such as .

    These are the downloads and the settings you need in order to view/hear/play pretty much everything that the net can throw at you: The setup described below has proved repeatedly successful on both PPC and Intel macs running Tiger, Leopard and Snow  Leopard, but has not been tested on Lion, but nothing in life carries a guarantee!
    First read this: Adding additional media format support to Quicktime:
    http://support.apple.com/kb/HT3526
    Download and install (or re-install even if you already had them) the latest versions, suitable for your flavor of Mac and operating system, of:
    RealPlayer SP for Mac from:
    http://www.real.com/realplayer/mac
    Flip4Mac WMV Player from  http://www.telestream.net/flip4mac-wmv/overview.htm  (Windows Media Player for the Mac is no longer supported, even by Microsoft)
    Perian from  http://perian.org/
    You should read this support page  http://perian.org/#support   in case you need to delete older codecs.  In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them), particularly any DivX extension to Safari. However it should be noted that Perian is not an internet plugin and will not play DivX files imbedded on a website. For that you will need the DivX Player browser plugin available from  http://www.divx.com/en/software/mac
    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFl ash
    You can check here what version of Flash player you actually have installed:  http://kb2.adobe.com/cps/155/tn_15507.html
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS. Note that version 10,1,102,64 is the last version available to PPC Mac users*. The latest version, 10.2.152.25, 10.3.x beta, or later, is for Intel Macs only, as Adobe no longer support the PPC platform. Version 11.0.1.152 is for Lion.
    * Unhelpfully, if you want the last version for PPC Macs, you need to go here:  http://kb2.adobe.com/cps/142/tn_14266.html  and scroll down to 'Archived Versions/Older Archives'. The first one on the list, Flash Player 10.1.102.64 is the one you download. More information here:  http://kb2.adobe.com/cps/838/cpsid_83808.html
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.
    You should also consider the Shockwave Player, which displays Web content that has been created by Adobe Director, much used for multimedia:  http://www.apple.com/downloads/macosx/internet_utilities/adobeshockwaveplayer.ht ml
    Note that if are running an Intel Mac you need version 11 of Shockwave Player as previous versions only run natively on PPC Macs:
    http://kb2.adobe.com/cps/822/82216d24.html
    Now go to Safari Preferences/Security, and tick the boxes under Web Content (all 4 of them) to enable Java.
    Lastly open Audio Midi Setup (which you will find in the Utilities Folder of your Applications Folder) and click on Audio Devices. Make sure that both Audio Input and Audio Output, under Format, are set to 44100 Hz, and that you have selected 'Built in Audio'.
    Important: Now repair permissions and restart.
    You should also consider having the free VLC Player from  http://www.videolan.org/  in your armory, as this plays almost anything that DVD Player might not.
    There is an additional 'fix' you could try if you are having problems with Flash and Quicktime, depending on which type of Mac you have:
    On Intel Macs using OS X prior to Lion,, make sure that you are not running Safari in Rosetta. You can check this, and change it, in the Get Info window.
    On PPC Macs, go to the Hard Disk/Library/Internet Plug-Ins folder, and drag the file 'QuickTime Plugin.webplugin' to the desktop. Quit and restart Safari. If things have improved you can trash that file. If they haven't put it back, as the lack of this plug-in can cause QT content in some widgets to cease functioning.
    With SilverLight, Microsoft attempted to create their own version of what a replacement for Flash could be - but not to universal acclaim. You can read more about it here:
    http://silverlight.net/
    So, if you go to any sites that have been designed for this new Silverlight stuff, you can download the plug-in from here (but make certain that you are downloading SilverLight v.1.0 for OS X (10.4.8 upwards) if you are using a PPC Mac, but even this will not work with Safari 4. Version 2 only works with Intel Macs and does work with Safari 4/5. The solution is to download and install the latest version of Flip4Mac, which now includes a Silverlight component:
    http://dynamic.telestream.net/downloads/download-flip4macwmv.htm
    But the latest news is that Microsoft will probably abandon Silverlight in favour of HTML5:
    http://www.appleinsider.com/articles/10/10/29/apples_ios_pushes_microsoft_to_dia l_down_silverlight_for_html5.html  and
    http://www.bbc.co.uk/news/technology-11673384
    Recommendation: Close all applications before installing any of the above, repair permissions, reboot, and repair permissions again.

  • I want to rearange the right mouse click menu so option Open link in new tab i 2nd from the top.

    I have the new Firefox and the 2 options to open a link has changed places with each other making surfing confusing with new windows opening instead of new tabs.

    Nevermind!
    I did ad a add on called Stylish and it somehow worked!
    Now everything, almost, is normal again!

  • The "+" to add a new tab is missing from my tabs in Firefox 4. How do I restore that "+" so I can quickly add a tab to the tab bar?

    The "+" to add a new tab has disappeared after installing Firefox 4.0. How do I restore it? I am talking about the tab bar at the top of the screen

    Restore your default toolbar by going to Customize - Restore Default Set. I just found it out myself.

  • How to I open photos in the new cc?

    I have been a long time user of CS6, but today I signed up for the new Photoshop CC.  The problem is that I have absoluetly no idea how to open a photo in the new CC.  I don't even see the new CC as something I can download, only a lot of icons that I have never used before and one that is for cs6, which I already have installed on my computer.  From where do I down load the new CC program and how do I open one of my photos in it?

    Ken,
    Thanks for coming back.  Am I to believe that the CS6 on my computer which
    is the latest up dated version and the one that has been there all along is
    the one I am to use until CC is released?  If so that's fine and I then
    would assume that I will get some kind of notice when the CC version is
    released for download.
    Bob

  • The button to open a new tab is missing from each tab in Firefox 7

    I have Win 7 and Firefox 7 on my PC. I used to have the + to open a new tab on the right end of the open tab. That is gone now, though when I loaded Firefox 7 on my PC at work (Win XP) it had the = on the tab, before it crashed and would not open again. I have to run 3.16(?) on that computer.

    You can find the New Tab button showing as a '+' on the Tab bar.<br />
    You can open the Customize window and drag the New Tab button that shows as a plus sign (+) from the Tab bar on another toolbar and it will become a regular toolbar button like the New Tab button that you have in Firefox 3 versions.<br />
    If you can't find the New Tab button then click the "Restore Default Set" button in the Customize window.<br />
    If you want the New Tab button at the far right end of the Tab bar then place a flexible space to the left of it.<br />
    * New tab toolbar button: https://addons.mozilla.org/firefox/addon/new-tab-toolbar-button/

  • How to switch New TAB/New Window in click right menu link ? Firefox 4

    Hi there,
    I just installed Firefox4. I was near perfect although they switch Open in New Tab/Window position.
    I fixed yet when clicking right on a link using userChrome.css following settings :
    <pre><nowiki>
    #context-openlink {
    -moz-box-ordinal-group: 1 !important;
    #contentAreaContextMenu > * {
    -moz-box-ordinal-group: 2;
    }</nowiki></pre>
    Anyway i have still the same when right clicking on a bookmark/menu url - it show :
    Open
    Open in new Tab
    Open in new Window
    New bookmark...
    New folder...
    Anybody have an idea to set option in userChrome.ss 'cause atm i'm out.
    Thanks in advance,
    Golkran

    Try this:
    Open your userChrome.css
    <br>
    Then, insert this code:
    &#35;contentAreaContextMenu > #context-openlink { -moz-box-ordinal-group: 1 !important; }
    &#35;contentAreaContextMenu > * { -moz-box-ordinal-group: 2 !important; }
    &#35;placesContext_open { -moz-box-ordinal-group: 0 !important; }
    &#35;placesContext> menuitem[id="placesContext_open"] { -moz-box-ordinal-group: 0 !important; }
    &#35;placesContext> menuitem[id="placesContext_open:newwindow"] { -moz-box-ordinal-group: 2 !important; }
    &#35;placesContext> menuitem[id="placesContext_open:newtab"] { -moz-box-ordinal-group: 3 !important; }
    &#35;placesContext> * { -moz-box-ordinal-group: 3 !important; }
    Then restart Firefox.
    When I right click on a bookmark, I can see this order:
    Open
    <br>
    Open in new window
    <br>
    Open in new tab
    such as in Firefox 3.
    I also installed the Menu Editor add-on to change the order of this menu, but it works only with link within a page, not for bookmarks.
    With the previous code in userChrome.css file, it works also with right click on a bookmark.
    I hope this solution will be useful for many users, because I found more difficult to solve the problem.
    For Firefox Community: where can we find syntax such as the above?
    For example, for "placesContext", "placesContext_open:newtab" and so on?
    I tryed many combinations of parameters, before find the solution that solve the problem.
    Best regards.

  • Can I open bkf with my mac? I have my old file with bkf format how can I open it with my new Mac Pro?

    Can I open bkf with my Mac Pro? I have my old files with bkf format how can I open it?

    That is a Windows Backup file.  I seriously doubt that there will be any way to read that on a Mac.  Do you have a Windows machine that you can use to open those files and save the contents in a more friendly format?

Maybe you are looking for

  • How to change the Group Display Name in the UME?

    Hello experts, from time to time due to reorganisation our departments group names change. So far this was a big deal because it is not possible to change the Display Name of a group created in the Portal´s UME? So far a new group with the department

  • Satellite A500-011 PSAR0C-01100D - internal Bluetooth adapter

    I have Satellite A500-011 PSAR0C-01100D, I'm looking for an internal Bluetooth PCI adapter that slides in, on the side of the laptop into the pci card slot. without opening the computer) Can someone help me find the part number ? I remember seeing it

  • Device Advice

    I've been testing on teh Android simulator, PlayBook and iPad/iPhone but I think I need an Android device to test on but there is so many devices to chose from. What one would you recommend and what version of Android? A cheap device would be ideal.

  • Very Very Slow Macbook Pro Yosemite 10.10

    I have to say this is the slowest my Mac has been on a long time. Because the internal drive is toast right now I'm running the Mac off an external drive through a Firewire cable. Not ideal. But after I upgraded to the 10.10 patch - my machine has be

  • Home phone using up all my monthly data

    I recently purchased the home phone service and it's using all of my data.  Help me