Interaction with the browser

i know that he have no way to the applet to know if some button as been click on the browser, like a "save" button at the end of the page in the form.. but is there a way to know if the user has clicked the back or foward button on the browser?? (cause i want to do different things depend if the users has clicked the back or foward button in my destroy function in the applet)
thx a lot

here is a little demo useing javascript with java methods
first the java code
import java.awt.*;
import java.applet.*;
public class MytestApple extends Applet{
  public void sayHello() {
    Graphics g =  getGraphics();
    g.setColor(Color.blue);
    g.drawString("Hello", 10, 20);
   public void sayHi() {
    Graphics g =  getGraphics();
    g.setColor(Color.yellow);
    g.drawString("Hi", 10, 40);
   public void init() {
Now the javascript and html doc
<html>
<head>
<script language="javascript">
  function sayHello() {
   document.MyTA.sayHello();
  function sayHi() {
   document.MyTA.sayHi();
</script>
</head>
<body>
   <applet code ="MytestApple.class" name ="MyTA" width = 200 height = 200></applet>
  <form name="form1">
  <input type="BUTTON" value="sayHello" onClick="sayHello();" >
  <input type="BUTTON" value="sayHi" onClick="sayHi();" >
  <form>
  </body>
  </html>  Good luck

Similar Messages

  • Do I interact with the browser or Plug-in

    I am interested in how Flash gets displayed in a web browser
    and how much of the interaction and display is dependant on the web
    browser.
    If you interact with a flash application on a web browser are
    you really interacting with the browser first which passes on the
    message to the Flash plug-in. Or after an initial set up is all
    interaction with the Flash application directly dealt by the
    Plug-in where the browser has essentially no idea what is
    happening?
    For example when I click on a "Skip" button on a flash
    animation shown on a web page, am I clicking on the browser or the
    Flash plug-in that is installed on the browser?
    I hope explained that clearly enough,
    Thanks

    I'm assuming fireflox with an L in the name is a typo?
    If not, can you provide more detail about the plugin? Who is the publisher, where is it installed, what is it for, etc.?
    By the way, if you see plugin-container.exe in the Task Manager, that is used to isolate Flash from firefox.exe so that crashes in Flash do not kill your entire browsing session. That's normal.
    Regarding extensions, which ones did you disable that become re-enabled on their own? If you don't want an extension, you should be able to remove it. If it was installed by third party software, then usually you can remove it through the Windows Control Panel and/or options in the related software.

  • Is it possible to interact with the browser progress controls ?

    I�m programming an Applet and I want to interact with the browser transfer controls, like the animated Icon and the bottom progress bar...
    Is it possible ??

    No. Only thing it can touch is the status bar.

  • I have problem with my Yahoo mail, e-mail take a long time to open (it first opens as a bank page). The provider think is something to do with the browser

    Since a couple of weeks my btyahoo email is behaving strangely. It take a while to load when I enter, and if I click on an e-mail it opens a blank, contentless page. After a while I am eventualluy able to see the content, but it is annoying. BT (the provider) had remote access to check the problem and thinks it is something to do with the browser. They suggested I disinstall and install again. Can you advice? Will I lose all my bookmarks if I do so (I have quite a few...)

    * The first time you start up any application after turning on your computer is called a cold start, which is why Firefox takes a while to load right away. (I've noticed that future versions of Firefox start up faster on a cold start then Firefox 5.0.1.) Also, a lower amount of RAM could be slowing its start-up down since Firefox is kind of memory hungry.
    * As for the second part of your question, press ctrl,Alt, and the delete keys on your keyboard. The Windows Task Manager should start. Go to the processes tab and look for 'firefox.exe'. Right click on the firefox.exe and click 'End Process'. Hit Yes and wait for a minute.
    * Then opening Firefox again.
    Hopefully this helped somewhat!

  • Firefox has trouble initiating, and when it finally does, every time I attempt to interact with the application it stops responding.

    Firefox won’t initialize: I can open any program on my computer except for Firefox so it isn't that my computer is slow. It doesn't open at all no matter how long I wait. I've left the room and let the computer run before and it still wasn’t running when I came back. After a few clicks it finally it comes up, and I have to wait because I’ve clicked multiple times so of course it's going to open multiple times. When I'm online after successfully closing all but one Firefox window so that I don't crash my poor laptop, every time I attempt to interact with the program via clicking a link, opening a new tab, or typing something into the URL bar, the program freezes and goes into the not responding stage. Rarely, an unresponsive script message will pop up.

    See:
    * http://kb.mozillazine.org/Preferences_not_saved
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions 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.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • HT5706 I have not used my apple tv in a few years, and just got it out of the bag. I connected it up, and it cannot set date, time.  it also does not interact with the remote.  Could it be as simple as a new batter is needed for remote?

    I have not used my Apple TV in a few years, and just got it out of the bag to use on a new TV.  I connected it up to power and with an HDMI cable toTV.  It attempts to set date and time and cannot.  I cannot get the remote to interact with the box also.  Could it be something as simple as needing a new battery?

    Hi kybriar,
    Thanks for using Apple Support Communities.  This article has steps you can take to troubleshoot the remote itself:
    Troubleshooting the Apple Remote
    http://support.apple.com/kb/ht1722
    For the issue of setting the date and time, these articles may help:
    Apple TV: Basic troubleshooting
    http://support.apple.com/kb/ht1551
    Reset Apple TV by unplugging it from the power outlet, waiting about five seconds, then plugging it in again.
    Power off your TV, wait five seconds, then power it back on.
    Apple TV (2nd and 3rd generation): Troubleshooting Wi-Fi networks and connectionshttp://support.apple.com/kb/TS4546
    Ensure that Apple TV is within range of your Wi-Fi router or base station.
    Confirm that your Wi-Fi router and cable/DSL modem are connected to power and turned on.
    Make sure other devices (computers, iPhone, iPad, for example) are able to connect to the Wi-Fi network and access the Internet.
    Check your Wi-Fi network settings on Apple TV:
    Select Settings > General > Network > Wi-Fi and press the center button on the remote to display nearby networks.
    Choose your Wi-Fi network from the list.
    If your Wi-Fi network uses a password, make sure you are entering it correctly.
    Restart your Apple TV by selecting Settings > General > Restart.
    Try restarting your Wi-Fi router or modem by turning it off and then on again.
    If possible, connect an Ethernet cable and verify your Internet connection. If you can connect to the Internet using an Ethernet connection, verify that your Apple TV is using the latest software by selecting Settings > General > Software Update. If your Apple TV can be updated, install the update and then try the steps again.
    Cheers,
    - Ari

  • After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    After doing a Google search, I click on a link and go to the searched web page.  When I go back to the Google page using the back button the links I originally clicked on no longer show as "greyed out".  Any idea what is going on with the browser?

    Type '''about:config''' in the Location (address) bar and press the "Enter" key. When you see a warning, click '''I'll be careful, I promise!''' button.
    * Preferences that have been modified are shown as '''bold (user set)'''.
    * Preferences can be '''Reset to the default''' or changed via the right-click context menu.
    -> In the '''Filter bar''', type '''browser.sessionhistory.max_entries'''
    * Right click the preference '''browser.sessionhistory.max_entries''' and click '''Modify'''
    * Change value from 0 to whatever you want over 0 (Default value is 50)
    * click OK
    -> Close the '''about:config''' tab and then Restart Firefox.
    See this post:
    * https://support.mozilla.com/en-US/questions/860894#answer-229574
    Check and tell if its working.

  • I have a macbook pro from 2009 and the software is 10.5.8 how do i update it so i can have more interaction with the applications

    i have a macbook pro from 2009 and the software is 10.5.8 how do i update it so i can have more interaction with the applications

    Note some programs may not work with Lion or later
    Upgrading to 10.7 and above, don't forget Rosetta!

  • I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    Dear Ones,
    I have Firefox 10.0.2. and OSX 10.6.8. and the latest PDF adobe reader, and still can not open with the browser PDF files.Can someone help,pls?Thanx

    see if this is helpful : [http://support.mozilla.org/en-US/kb/Opening%20PDF%20files%20within%20Firefox Opening PDF files within Firefox]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Swf files that scale with the browser

    I uploaded a swf file with dreamweaver as a stand alone window and it works fine.  How do I get the swf file to scale larger or smaller as the user adjusts their browser window larger and smaller?  I would like to get the swf file to scale along with the browser window.  I posted this in dreamweaver but was told this is an action script issue.

    I found a simple solution, and I believe it is what you are looking for.
    1. In Flash, go to File>Publish Settings
    2. Click on the HTML Tab
    3. Where is says Dimensions, select Percent
    4. Though it is probably default, make sure the width and height are both set to 100.
    5. Click ok then go to File>Publish
    Now your movie should scale with the browser window.
    If you do not have Flash, then you can simple work with this sample code below:
    <object width="100%" height="100%" id="xyz" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="xyz.swf" />
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <embed src="xyz.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="xyz"
        align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash"
        pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    Notice how width and height are set to "100%"? That's all you need.

  • How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    Hi,
    Thanks for the suggestion. I've been playing around with some of the classes of the java.net package and java.io
    Using the URL class i can get the content of the data from a STATIC page and output that response to file so that is does not display to the client broswer.
    But this only works if the URL i give points to a static html page.
    So the problem i'm getting is if i'm righting in arguments in the URL, this means that server needs to process the arguments i give and its sends back a dynamic result. Because its dynamic the URL class can not handle this and throws me an exception everytime :(
    Have u ever tried to do some things like this?
    Rahul

  • Sync an object with the browser scrollbar

    Is there any way to set up a button or group of buttons to move vertically with the browser's scrollbar? I have a region that contains search options for a query and it requires the user to scroll down to access all of the fields. I'd like to cause the "Search" button to move vertically with the scrollbar so the user doesn't have to scroll to view it once he/she has entered the search criteria.
    David

    Is there any way to set up a button or group of buttons to move vertically with the browser's scrollbar? I have a region that contains search options for a query and it requires the user to scroll down to access all of the fields. I'd like to cause the "Search" button to move vertically with the scrollbar so the user doesn't have to scroll to view it once he/she has entered the search criteria.
    David

  • Weblogic security authentication; question to interact with the realm

    Hi, I have a quick question about weblogic security authentication....
    We are using weblogic 81sp3. We have user-group info in an Novell eDirectory LDAP server.
    Currently, a Novell Authenticator provider is configured under : Security > Realms > myRealm > Providers > Authentication This tells Weblogic from where to get the user and groups. Weblogic caches this information of the logged on users for certain time ( example : 60 secs ) after which it cleans the cache for all inactive users. We want to interact with the Weblogic cache. Add more user profile information to this cache and use it in our application .
    Does somebody know how to programmatically interact with Weblogic user-group cache - read , write , update and delete user-group info in cache and control time to live for the cache ?

    already checked
    TTLCache class which weblogic provides. But they seem to depracetd it
    help ?

  • Trying to collect rewards from a survey site. told problem may be with the browser. I don't know what to do.

    trying to collect rewards from a survey site. told problem may be with the browser. I don't know what to do.

    Hi,
    Please [https://support.mozilla.org/en-US/questions/911441 see this.] You may also want to check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode.]

  • Problems with the browser

    Hello,
    I make an aplication where I manage projects, accesing a apex as developer and run my application and it works well.
    Then I access to the application as final user and when I modify any data, the aplication does not save the values changed.
    What Can I do?

    What Can I do?
    1. Please tell us your first name and include it in your handle and/or profile to help us.
    2. Tell us why the subject of this post is "Problems with the browser".
    3. Check your authorization schemes, maybe they enable/disable certain functionality based on who is logged in. But if you developed the app you should already know this, so that's just a wild guess.
    4. Show a detailed example, preferably by putting the application on apex.oracle.com to show one of the pages that doesn't do what you want.
    Scott

Maybe you are looking for