Applet persistance question (basic?)

All:
Forgive the ignorance, but I am not a Java programmer at all... but am looking for some info.
What is the scope of a (untrusted) java applet in regards to IE browser sessions? For instance, if a web page initiates an applet load, does the applet stay in memory and continue to run after the user navigates away from the original page?
We are trying to find out if it is possible for a page to load a particular applet that records the URL string of IE browser windows, and have this applet persist throughout the user's browser session, even if they leave the original page, and if they open new browser windows. Is this possible, or is it just crazy?
Thanks for any help!
phong

We are trying to find out if it is possible for a page
to load a particular applet that records the URL
string of IE browser windows, and have this applet
persist throughout the user's browser session, even if
they leave the original page, and if they open new
browser windows. Is this possible, or is it just
crazy?And then make the user crazy trying to download anti spyware and adware and stuff. The question is why do you want the applet to be running once the user has left the page and would you ask for his permission to do so. Just as there is a law for the telemarketing guys there should be another one for these spyware guys who want to run there own agenda on the clients machine without his concent.

Similar Messages

  • Applet size question

    <applet code="file.class" height=400 width=300>
    </applet>
    This is my html file related to a generic "file.java".
    If I wanted that size to remain unaltered while the applet is running (basically if I want to fix the height and width of the applet, so that once it is displayed I cannot resize the window), I guess there is an instruction to handle this... Is there?
    Tnx

    The Java applet is an embedded object in your HTML page. This means that Java does not have direct controll over the browser window. In other words: there's no easy way to make Java stop people from resizing the browser window. There are two solutions for your 'problem'.
    You could make your applet pop up a Java window (either AWT or Swing). Java has full controll over its own windows, so that will allow you to allow and disallow users any particular action. The downside is that -especially when using Swing- this is going to increase the filesize of your applet (and when using Swing, you also need to make sure visitors have the Swing libraries).
    The other solution is making JavaScript pop up a child browser window in which you load the HTML page containing your applet. You can make JavaScript prevent people from resizing the child window.

  • How to use java applets inside visual basic

    hi everyone,
    i am new to programming specially java so please bear with me.
    having said that i am looking for a way to embed java applets in visual basic. so
    1) is it possibele?
    2) if yes(which i believe) then how?
    we are supposed to use VB but i hate it so looking for this way .
    any suggestions and help is whole-heartedly welcome.
    kindly help me.
    you can post ur replies here or mail me directly at my e-mail id
    [email protected]

    thanx
    i have 2 more queries.
    1) is this IE ACTIVE-X CONTROL present by default in VB or do i have to download some add-ons?
    2) how do i write a concurrent server in java . i mean is there any thing equivalent to the UNIX system's FORK()?what if i have to implement this in an applet?
    thanx again.

  • 2 Questions: Basic Shape / Go to Master Page

    Hi. My questions revolve around InDesign CS4 for Mac.
    Specs: PowerMac G5, 1.8Ghz, 4GB ram, 435GB hd, OSX 10.5.8, IDCS4, Suitcase Fusion 2 (if any of that matters).
    I have a basic shape question that is perplexing me. I'm a 12 year QuarkXPress user who converted to ID CS4 last year by choice (to gain the experience under employ) so there are things here and there that cause me confusion.
    In any case my question is this. How can I convert a rectangle frame to a perfect square frame?
    Specifically, if I drop in an image, and the frame is rectangular how can I make it a perfect square using keyboard shortcuts? I realize I can create a new frame and constrain proportions as I draw it to get a perfect square, then cut and then paste the image into that, or I can transform the frame by entering equal values in the transform panel or control palette. Which would answer my question if this was not something XPress can do effortlessly.
    If you draw a shape (box) in XPress and then hold down the SHIFT key XPress will immediately transform the shape into either a perfect square or circle depending on which tool you are using. Release and you have a perfect square or circle. But you cannot seem to do this in ID after you have already drawn an rectangle?
    Is there any way around this that does not involve multiple keystrokes or drawing a new frame?
    Second question. Anyway to go direct to master pages without having to use CMD+J and then enter the MP letter? In XPress OPTN+F10 will take you directly there and directly back.
    P.S. Not trying to start an XPress/ID discussion. Just trying to learn this program and XPress is the only reference I have.
    Thanks for any advice/tips in advance.

    Keyboard shortcut for these operation , you already know the standard method , but if you want some kind of one step procedure then scripting can help.
    Post your query on the Indesign scripting forums , someone may come up with the script to select the master page and change the rectangle to square.
    and you can define the keyboard shortcut to run this scripts ,,,one step procedure.

  • Simple applet jar question

    I'm sure this is an easy question, but how do you access subdirectories in your applet's jar file?
    For instance the contents of MyApplet.jar jar would be:
    * META-INF
    * images
    * net
    Say the main class is MyApplet.class in net/mydomain/myproject
    How in the main class would I get at images/MyImage.jpg?
    Obviously I did not get this code to work:
    ImageIcon upIcon = new ImageIcon("images/MyImage.jpg");
    Thanks alot!

    Actually now I am using:
    ImageIcon upIcon = new ImageIcon(MyApplet.class.getResource("/images/MyImage.jpg"));
    This way the 'absolute' resource is found (becuase the resource name starts with a '/').
    This seems to be the best way to do it.

  • Applet installation question

    I am trying to install an applet using a non default
    applet AID. I am using the:
    register(buffer, aid_offset, length);
    Questions:
    Is the java card OS made so you can istall a base applet (package and applet download). Then later install
    more applets with just an applet create apdu command sent to the applet manger?
    [Applet package mask]
    [Applet1] (register())
    [Applet2] installed using above register function
    Constuctor for test applet:
    private TesApplet(byte buffer[],short offset,byte length) {
    if (buffer[offset] == (byte)0) {
    register();
    }else {
         register(buffer, (short)(offset+1) ,
    (byte)(buffer [offset]));
    } // end of the constructor

    In order to answer the original question:
    Yes, you can load a package and install several applets from it which means to create and register applet instances based on one or more applet classes in the package.
    Each applet instance needs a unique AID. If you do not provide AID data to the register method the applet class AID is used. Therefore you can only use the "register()" call once. But your code shows that you got that point already.

  • Applet viewer question

    Well here is my first question of what promises to be many. Nice to meet you all. Here goes:
    While doing the first applet in "Your first cup of Java", I run the applet by typing:
    appletviewer Hello.html
    The applet runs in the applet viewer and looks just like the picure says it should. But I also get this warning in the command prompt:
    Warning: Can't read AppletViewer properties file: C:\WINNT\Profiles\PURCHASER\.h
    otjava\properties Using defaults.
    Anybody know what the problem is there?
    Thanks.

    I wouldn't worry about it, I get the same errors using the computers at Uni. It's never stopped me anyway. I'm not sure what causes it, something to do with WinNT/2000 and profiles/users.
    Cheers,
    Radish21

  • Four Java Applet signing questions

    hi all;
    I'd like to ask a few quick questions about applet signing. As you know there is a "Security Warning" Gray Alert box that appears when the user tries to load your signed applet.
    1. When the alert window asks someone to accept the signed applet, is it possible to some how capture the Yes or No button click event by javascript or something like that ? I noticed that the Yes and No Response seems to be saved in an in-memory cookie? Is it possible to figure out wht the person clicked ?
    2. Is it possible to keep that "Security Warning" Alert box on top so that the user will not be able to accidentally ignore it (it goes under the browser and stays there).
    3. Is there some way to inspect the PC to determine weather your applet loaded properly - apart from seeing a properly working applet ? For example , If I want to make sure it is being cached properly.
    4. When a new version of the applet is available on the server ? how does the browser know to download something ? is that something I would code for manually or would is this automatically handled behind the scenes.
    Thanks in advance
    Stephen

    I can only reply to nr 1 but looking at java.security.AccessControl there is a method called checkPermission() you can use.

  • Applet interaction questions

    Howdy.
    I'm generating a map in an applet using a library based on swing classes.
    I need to be able to:
    -- query the db on the host server from within the applet to alter the map;
    -- save a snapshot of the map to the server (I've got code that saves a snapshot, but I need to be able to save that on the host server);
    -- if possible, receive messages from javascript controls on the browser page where the applet resides, and respond to them.
    It seems like I may need to sign the applet, but I'm not trying to do anything on the client machine; just to interact with the host server.
    Can someone point me in the right direction? I've been out of the java world for a bit, so all the details are slow coming back...
    Thanks much.

    Hi,
    I have some questions regarding to the
    HttpURLConnection implementation used in Applet.
    1. Is the connection made when I do
    URL.openConnection or when I flush/close the
    OutputStream?The local resources are taken when the openCOnnection is called. The request is made to the server when the getInputStream getContent getResponseCode or the one of the other input methods is called.
    2. Will the binaray data in content be chunked if I
    set the Content-Type to application/octet-stream
    along with Content-Length?Don't know.
    >
    3. After the OutputStream been closed can I still use
    the Connection for read?Yup (note you will have to do this to actually send the request to the server...)
    >
    4. Is it possible for me to lose any data in the Http
    request I send through the HttpURLConnection?Not sure, but my thought has always been any data sent across HTTP can be lost en route. There will be some effort from the server to recover lost packets, but I do not know the details...
    >
    Thanks,
    Michael

  • SNMP mib Persist question

    Hi All,
    I have a WS-C3750-48TS stack of 4 Members (all same type).
    I have for Monitoring purpose an Powersupply and FAN Monitor.
    The Indexi for Member 4 has been changed from 4003 to 4004 after a change of the master Switch (from SW1 to SW2) as well as a reboot of SW4 and SW1.
    Now I read that the SNMP mib Persist command is available and that the data has to be written to the NVRAM .
    the config guide says:
    Usage Guidelines
    After entering the snmp mib persist command, you must enter the write mib-data command to save MIB persistence configuration data to NVRAM.
    Here is were my question starts.
    If I write the data to the NVRAM, which NVRAM will be written?
    will this prevent the change of the index after a reboot of the non master switch?
      ciscoEnvMonSupplyStatusDescr(2) 
      1003  Sw1, PS1 Normal, RPS NotExist
      2003  Sw2, PS1 Normal, RPS NotExist
      3003  Sw3, PS1 Normal, RPS NotExist
      4004  Sw4, PS1 Normal, RPS NotExist
    Thanks
    Willem

    Thanks for your guidance, I believe I have found what I am looking for. I am unable ot locate
    OLD-CISCO-TS-MIB::tslineSesDir but using OLD-CISCO-TS-MIB::tsLineActive 18-22 by adding those 5 lines up will effectivly show me attached users via telnet. Thanks for without your guidance I would have never found this out!

  • Persistent Question Mark In Dock, How Can I Remove It?

    I deleted an app ensuring that all that app's files were deleted, using EasyFind.
    Where that app's icon existed in my dock, there now appears a question mark, and I cannot get rid of it. Anyone know how?

    HI,
    Delete this file from your Preferences folder.
    com.apple.dock.plist
    /Users/YourName/Library/Preferences. Drag that file from the Preferences folder to the Trash, empty the Trash and restart your Mac. If the ? mark is still in the Dock, try dragging it off now.
    Carolyn

  • Applet tag question

    I am working with applets and have been getting the classdefnotfounderror exception and a wrong name error.
    After pouring over the archives and messing around, I have found a
    solution to my problem, but I don't know why it works. I think it has to do with packages, but I'm not sure.
    I have two versions of Asteroids, one which has "package Asteroids" at the top
    of each file, and one that has no package.
    First with the version that is in a package: If I have the html file in the
    same directory as the class files, I cannot get the applet tag to work
    properly. If I back it up a directory (just outside the Asteroids directory), this works:
    <applet
      codebase = "."
      code     = "Asteroids/Asteroids.class"
      width    = "640"
      height   = "480"
    </applet>
    {code}
    One old post I found said that the wrong name error indicates that the qualified name is incorrect ( so my incorrect name would be Asteroids.class) and that the full name should include the package, so mine would be Asteroids/Asteroids.class, I think. Is that correct? If so, why wouldn't this code work inside the same directory as the class files?
    For the version that is not in a package, the opposite seems to work.
    {code:java}
    <applet
      codebase = "Asteroids/"
      code     = "Asteroids.class"
      width    = "640"
      height   = "480"
    </applet>
    {code}
    This code works for the version which is not in a package, but does not work for the version in a package, ( and vice versa for the code above). It seems like either code should work in either case. What am I missing?
    Thanks,
    Matt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I don't know what your understanding of packages and applet codebase is. These 2 tutorial sections should clarify your understanding, though.
    http://java.sun.com/docs/books/tutorial/java/package/index.html
    http://java.sun.com/docs/books/tutorial/deployment/applet/html.html

  • Applet graphics question(bar chart)

    im fairly new to applets and im coding one in awt that has a scrollbar that changes the height of barchart....i tried using fillRect() but when i set the height as my scrollbar value it fills down instead of up....i want to keep it as simple as possible....is there a object that will fill up when the height is set to a variable?..

    The fillRect parameters
    1. ---->
    2.      |
            |
            |
            V
    3.      ---->
    4.           |
                 |
                 |
                 V1 and 3 will therefore be constant
    4. will be the height of your value eg: bananas = 60
    g.fillRect(int,int,int,60)
    2. So, this is the vertical height of you graph display area eg = 100 - (100 - 60) ... =40
    Its a fairly straightforward algorithm to configure

  • Persistance question for conversational web services.

    I don't know if this should be posted here or on the workshop group but....
    When you create web servce that is conversational states weblogic creates a table
    that holds information about that web service. They are CG_ID, LAST_ACCESS_TIME
    , and CG_DATA.
    I assume that CG_ID is the converstation ID, LAST_ACCESS_TIME is used for timeout
    information, , but what is CG_DATA used for. I need to know if when you create
    an object inside a
    web service that supports conversation's is the column (CG_DATA) used to hold
    the internal state
    of the web service? I need to know if object persistance is handled automatically
    or if I have
    to do it myself.

    Object persistence is handled for you; all of the non-transient
    serializable state should be stored in the database.
    Tim Bounds wrote:
    I don't know if this should be posted here or on the workshop group but....
    When you create web servce that is conversational states weblogic creates a table
    that holds information about that web service. They are CG_ID, LAST_ACCESS_TIME
    , and CG_DATA.
    I assume that CG_ID is the converstation ID, LAST_ACCESS_TIME is used for timeout
    information, , but what is CG_DATA used for. I need to know if when you create
    an object inside a
    web service that supports conversation's is the column (CG_DATA) used to hold
    the internal state
    of the web service? I need to know if object persistance is handled automatically
    or if I have
    to do it myself.

  • Applet classpath question

    I have my applet "applet.class" in my directory "." along with the html page.
    so, codebase=. code="applet.class"
    This class is in a package: this/is/my/pkg
    so we have this/is/my/pkg/applet.class
    I get an exception stating: ClassNotFound applet.class(wrong name: this.is.my.pkg.applet.class
    I have my html page and my applet.class in the pkg directory, so I use "." as code base, right?
    Well I try changing applet.class to this.is.my.pkg.applet.class like the exception says to and I get ClassNotFound again, but without the wrong name part.
    This will only work if I do this:
    codebase=../../../.. code="this/is/my/pkg/applet.class
    WHY?

    Package assumes a directory structure. So when your class is compiled it has to be in the pkg folder, int the my folder etc. (this/is/my/pkg)
    You still have to maintain the folder structure and put the html at the root of the this folder.

Maybe you are looking for