Applet navigator to open a page in another frame.

Hello to the Java gurus out there,
I was wondering if someone could give me a pointer as to how I can get an applet navigator to open a page in another frame of the web browser?
Say for example, I have two frames in the main HTML page where one frame contains an Applet navigator, and the other page can be loaded based on where the user clicks on the applet navigator.
Capturing the mouse click event is all good, but then how do I load a page in another frame ??
Any help would be much appreciated.
J. Park

In your applet class do the following
getAppletContext().showDocument(new URL("somepage"), "Target");
See the AppletContext class in http://java.sun.com/j2se/1.3/docs/api/index.html for more information.

Similar Messages

  • Is there a keyboard shortcut to open the presently open web page in another tab? It used to be Ctrl + N.

    Is there a keyboard shortcut to open the presently open web page in another tab? It used to be Ctrl + N. This shortcut now opens a Tab with the home page instead of duplicating the web page I'm on.

    Firefox has always opened new tabs in a blank page, so I'm guessing that the way you had it before was added by an extension.
    If you to to Tools > Add-ons > Extensions, are there any extensions disabled?
    In any case, you can still do this with a mouse shortcut. Hold down the Ctrl key as you drag a tab to an empty area on the tab bar.

  • Using jump menu in one frame to open page in another frame - works in IE but not Firefox

    Hi,
    I'm a beginner designer. I've been working to create a template for a website in which there is a banner in a frame across the top and three frames beneath - left for navigation and middle and right for content that can be compared.
    I have created two jump menus in the left frame using Dreamweaver's option for it (insert/forms/jump menu): one menu to load pages in the middle frame (in the code this is 'left') and one menu to load pages in the right frame (in the code this is 'right'). Both menus use a go button.
    Using Internet Explorer and allowing active content to run it works fine. In Firefox clicking 'go' does nothing however I have links in this navigation that will open a page in the middle or right ('left' and 'right') frames and if I use these the jump menus will now work.
    How can I get it to work straight off?
    Any feedback is welcome (except regarding not using frames!).
    Ian
    Code for this navigation page is below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script type="text/javascript">
    <!--
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
      eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0;
    function MM_jumpMenuGo(objId,targ,restore){ //v9.0
      var selObj = null;  with (document) {
      if (getElementById) selObj = getElementById(objId);
      if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0; }
    //-->
    </script>
    </head>
    <body>
    <h1>Navigation</h1>
    <p><a href="../Something/Pages_One/Alabama.html" target="left">Example</a></p>
    <p><a href="Left Frame 01.html" target="left">Left Frame 1</a></p>
    <p><a href="Left Frame 02.html" target="left">Left Frame 2</a></p>
    <p><a href="Right Frame 01.html" target="right">Right Frame 1</a></p>
    <p><a href="Right Frame 02.html" target="right">Right Frame 2</a></p>
    <p>Select a page to view in the left frame</p>
    <form name="form" id="form">
      <select name="jumpMenu" id="jumpMenu">
        <option value="Left Frame 01.html">Left frame 01</option>
        <option value="Left Frame 02.html">Left frame 02</option>
        <option value="Left Frame 03.html">Left frame 03</option>
      </select>
      <input type="button" name="go_button" id= "go_button" value="Go" onclick="MM_jumpMenuGo('jumpMenu','parent.frames[\'left\']',0)" />
    </form>
    <p>Select a page to view in the right frame</p>
    <form name="form2" id="form2">
      <select name="jumpMenu2" id="jumpMenu2">
        <option value="Right Frame 01.html">Right frame 01</option>
        <option value="Right Frame 02.html">Right frame 02</option>
        <option value="Right Frame 03.html">Right frame 03</option>
      </select>
      <input type="button" name="go_button2" id= "go_button2" value="Go" onclick="MM_jumpMenuGo('jumpMenu2','parent.frames[\'right\']',0)" />
    </form>
    <p> </p>
    </body>
    </html>

    Geronimo23 wrote:
    Given that it doesn't work initially in Firefox then it does once I load a page in the destination frame I decided to create a page with a link to the frameset. Using the link to get to the frameset the jump menu now works perfectly. Must be one of the wonders of using frames. Well I guess that's solved but out of curiosity, any ideas for why it wouldn't work when the frameset is loaded on its own?
    It might be due to the fact that you're using XHTML 1.0 Transitional, a DOCTYPE that does not support framesets. Try converting to HTML 4.01 Transitional or HTML 4.01 Frameset if you do not need or understand XHTML. Or use XHTML 1.0 Frameset if you really need XHTML.
    Refs: http://www.w3.org/TR/html401/present/frames.html ; http://www.w3.org/TR/xhtml1/#h-A1 ; http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Frameset
    Mark A. Boyd
    Keep-On-Learnin' :-)

  • I log out properly but when i log back in a message appears basically saying it cant open my page due another one being not closed properly before. WHY?

    I log out correctly every time making sure all windows are closed but every time i log back in a window appears saying "well this is embarrassing, we are having trouble opening your page (or something close to that, i cant remember the exact words) then at the bottom it says"this is usually due to a window being open (or close to that) then it asks me if i want to close or restore the session and it has a list of the last 2 pages i opened.
    But i ALWAYS close them before logging out. Why does it keep doing this? Do we have a clever hacker or something?

    hello lexi, this is currently a problem in firefox when you first close all open firefox windows and then close the application afterwards - the bug should be addressed in a later version of firefox.
    as a workaround in the meanwhile you could close firefox (through firefox > quit) while the browser window is still running or try this: enter about:config into the firefox location bar (confirm the info message in case it shows up) & search for the preference named '''browser.sessionstore.resume_from_crash'''. double-click it and change its value to '''false'''.

  • How to call BSP page in one frame from a webdynpro page in another frame?

    Dear experts,
    I have a scenario as follows:
    A BSP application which contains 5 frames. in the first frame I am calling a web Dynpro application. This is a tree and it is displayed correctly. on click of an item (node item) in the tree, a bsp page should be displayed in the second frame. I am not able to display this in the second frame. When I call the BSP page, it is getting displayed in the same frame (i.e, the first frame).
    Kindly help me out.
    Thanks & Warm Regards,
    Jenny

    From WDA you can't force the navigation of a different frame. Nor should you really be building an application with WDA running within a frame.  You will have session management problems. 
    SAP recommendation is to use the NetWeaver Portal. You could then place the WDA and BSP applications into separate iViews.  They can communicate with each other using Portal Eventing.

  • Opening a page as a frame

    Hi All,
    I am using a menu (zhtmlb) and the items are linked with the corresponding controllers.
    If i click the menu item the page is opening in a seperate window..but i want it to be opened in that same menu page itself as a frame...
    Please help.

    specify the link target as the name of the target frame. check htmlb_samples/sampleList.htm to how its done.

  • Error when opening portal page-inner desktop frame work image error

    Hi,
    I have installed EP-6.0.Ima getting an error when i log in to portal.
    An exception occurred while processing a request for :
    iView : pcd:portal_content/every_user/general/defaultDesktop/frameworkPages/frameworkpage/com.sap.portal.innerpage/com.sap.netweaver.coll.CollaborationDetailedNavigation
    Component Name : null
    Page could not create the iView.
    See the details for the exception ID in the log file
    Pls help me its urjent.
    Rajesh.

    Below is the default trace errr log.
    61,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Error##Plain###   at java.
    util.TimerThread.run(Timer.java:382)#
    Why this i view error coming.Is this really a problem?
    or some authorisation issue??

  • When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.

    When I click on an active link from another application, it opens the firefox application, but won't open open the page - it just opens Firefox or takes me to Firefox. No new tab or window is opened and the link is not displayed.

    Firefox sent an email to me to confirm that I had asked the above question. The email had a link to click. When I clicked it from Firefox, nothing happened. Then I opened IE, signed into Comcast, opened the email, clicked the link, and it brought me here.

  • Unable to open a Page document on another computer

    I used Page to create a document and then emailed it to my home to continue working. I have Page on this computer, but when I try to open I get the message -- Unable to open “Gardiner List.pages” because it isn't a valid Pages document.

    I have just had the same problem. Another Mac user sent me a Pages 09 file that had been saved in Pages 08 format, but I could not open with my Pages 08. Then he sent me a Pages 08 file he created and I could not open that either. He also sent me a DOC version of the file, which I could open in Pages 08. Also, he had no problem opening a Pages 08 document that I sent him. Help.

  • When I click my home page icon the tab this is open goes to my home page BUT another new tab opens.

    when I click my home page icon the tab that is open goes to my home page BUT another new tab opens. How do I stop the new tab from appearing?

    It's easy to add extra tabs to your set of home pages. You can use the Options dialog to make sure there is only one. These articles point the way:
    * [[Startup, home page and download settings]]
    * [[How to set the home page]]
    Because the space is short, you may want to select the whole home page URL (Ctrl+A) and paste it into a document or into a larger textbox like the one I'm typing in now. You're looking for a vertical bar (|) that is followed by a second URL.
    If it's not part of your home page setting, the most likely cause for this change is a bad add-on that rode along with some free software.
    I suggest starting here:
    Open Windows Control Panel, Uninstall a Program. Click the "Installed on" column heading to group the infections, I mean, additions, by date. This can help in smoking out undisclosed bundle items that snuck in with some software you agreed to install. Take out as much trash as possible here.
    Then, in Firefox, open the Add-ons page using either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable (or Remove, if possible).
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Does that shut down the extra tab?

  • When i clink a given link in google than that webpage open in another window. How i can open that page in the same tabe ?

    when i clink a given link in google search than that webpage open in another window. How i can open that page in the same tabe ?

    Hello gogotutu
    In the [https://support.mozilla.org/en-US/kb/awesome-bar-find-your-bookmarks-history-and-tabs#os=win7&browser=fx17 Location bar], type [http://kb.mozillazine.org/About:config about:config ]and press '''Enter'''.
    The about:config "This might void your warranty!" warning page may appear. Click I'll be careful, I promise!, to continue to the about:config page.
    In the Search field, type [http://kb.mozillazine.org/Browser.link.open_newwindow browser.link.open_newwindow]
    double-click and put as a value '''1''' , click OK to save it.
    do the same with '''browser.link.open_newwindow.override.external''' , again put '''1''' as a value(it is -1 by default).
    check also, always in about:config, the [http://kb.mozillazine.org/Browser.link.open_newwindow.restriction browser.link.open_newwindow.restriction] and put as value''' 0''' .
    thank you

  • Opening a page inside of another

    Just wondering if anyone has or can open a page they have made inside of another page already loaded- like making the one page stay while another opens in a frame? I see it all the time just not sure if iWeb can do it?

    iWeb can't do it directly, but you can add the <iframe> technique like any other html code after publishing with iWeb. This technique can be used to incorporate flash presentations or other items that iWeb typically doesn't support directly.
    Jabberwock has done me a great favor by summarizing things in the following thread with an example of his flash presentation...
    http://discussions.apple.com/thread.jspa?threadID=535537&tstart=0
    You can also see what I have done with <iframes> on my GuestMap page...
    http://www.dirtdoog.com
    This page actually consists of two frames using the <iframe> tag. The map itself as well as the messageboard are usually two separate windows that open up, but here I have them open "into" the same page using iframes. <Hey, why don't you sign the guestmap while you're there???>
    The code to do so can be viewed in my page source. It's basically the following with mods to fit the URL and the width and height needed...
    <iframe src="http://homepage.mac.com/yourname/nameofflashfolderyoudroppedinsites/" width="550" height="400" scrolling="no" border="0" style="border:none;" frameborder="0"></iframe>
    My Gallery page is also iframes, with randomly selected URLs for three different possible flash photo galleries.

  • Opening html page with in the applet

    I want to open an html page in the applet. If i use showDocument() of applet, it opens the html page in the browser, but i want to open the html page with in the applet(i.e., applet should display the html page). Is there any way which i can do the above thing.
    Thanks in advance

    Use a JEditorPane to display HTML (supports version 3.2 though)
    check API (that's for JDK 1.4.1 so check for version you use)
    http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JEditorPane.html
    Sky

  • Recent update OS10.5 to 10.6 to Lion. Using Pages (4.1) only some documents won't open. At Genius bar loaded new copy Pages; reloaded Lion clean install. Still won't open although will on another computer. What now?

    Pages question: recent update OS10.5 to 10.6 to Lion. Using Pages (4.1) only some documents intermittently
    won't open. At Genius bar loaded new copy Pages; reloaded Lion clean install. Still won't open although will on another computer. On the other Mac (running Lion), saved a copy of a document with a new name and sent it back to first computer. At first it would open, but now it as well as multiple other Pages documents won't open. What now?

    yes;
    I got Pages to work now- there were two versions, one Universal, and one Intel- by moving the Universal to trash ( although I can't delete it) and moving Intel version to iWorks folder in Applications, it is now working. Doesn't explain why it didn't work though- the other MacBook pro 17 inch that could open all the Pages documents also has two copies of Pages as I see now....
    I still however can't open Numbers documents on the MacBook pro 15 inch.... it is a Universal version of Numbers.

  • When i try to open any site, the another site page is open

    when i try to open any site, the another site page is open, and after several try i could open the site what is this???

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

Maybe you are looking for

  • DoSubmit in javascript

    I have a form in APEX, the html items are generated through HTP.P. On submit button, I capture the form values in javascript and submit the page, so that the PROCESS gets called to insert the captured data on the form. But the process never get calle

  • Site Studio fails to start

    I have the same issue as a previous posting (which is unanswered): When you start the site studio it attempts to get the fragments and fails. I have been unable to locate any settings that could potentially resolve this. This is the 10gR3 version of

  • PXI system cannot be identified by the PC

    PC doesn't see the PXI system. When I tried to install the service platform for chassis and controller ver 2.5. A message states that a higher version is already installed.

  • No summarization result is selected

    Hi all, When Iam trying to fill up setup tables for QM, its giving the error as "No summarization result is selected". I have initailly deleted the setup tables before running the set up. Pls give ur Valuable suggestions.Its urgent. Thanks in advance

  • Really Weird Problem

    Just a few days ago, I realized I couldn't drag files anywhere. On the desktop, I couldn't drag files around or into any folder. I also can't reorganize anything in the dock. I can't even copy and paste files from one location to another. I never cha