How does javascript get string from applet?

hi, sir/madam:
I use an applet to deal with simulation, make the results to be a string and want to save it in a text file. Certainly, using applet to write local file is not good method (though I have some idea about it). I want that javaScript write something in browser and I save it with my mouse (manual) as a text file.
thank for your help.
xn
could javaScript write/read local file?

There is a nice JavaScript forum that you can visit if you have tough JavaScript questions:
http://forums.webdeveloper.com/forumdisplay.php?s=a23bf83c088c66ac3adde0c3c5616bae&forumid=3
I'm not implying that ppl here don't know JavaScript or anything like that.....
In answering your questions, a Java applet can read from and write to local disk if proper permissions are granted either via a signed applet or setting the Java access right. Signing an applet can be a royal pain in the butt because you have to sign it one way for IE, another way for NN4, and yet another way if you use a plugin, etc....but here is a link in case you're interested:
http://developer.java.sun.com/developer/qow/archive/167/index.jsp
A JavaScript definitely cannot read from or write to a local disk unless you get help from something like MS ASP or VB scripts. The only reason you were able to read thru the appletviewer is because it's not a true browser and it's written by Sun to work with their own product.
As far as using javascript to get information from an applet, you can try to make your applet scriptable via Netscape JSObject. I know for sure it works with IE and NN4+ but last time I tried, Sun and Netscape were still having trouble getting LiveConnect to work properly with NN6+.
And there you have it.
;o)
V.V.

Similar Messages

  • How can I get String from Bytes

    I want to get String from array of bytes but i have some trouble from byte that it's lager more than 128. How can I do ???
    Please hepl me. Thanks very much.

    This program is only to show you what the relationships are between unsigned byte, signed byte, character, and binary values. Because of the constraints that Java has, the program code is not especially clean. Run the program and see if it helps. As has been said, the character output is dependent on the encoding in use.
    Here is a sample of some of its output:
    Unsigned byte= 189 Signed byte= -67 Character= � Binary= 10111101
    Unsigned byte= 190 Signed byte= -66 Character= � Binary= 10111110
    Unsigned byte= 191 Signed byte= -65 Character= � Binary= 10111111
    Unsigned byte= 192 Signed byte= -64 Character= � Binary= 11000000
    Unsigned byte= 244 Signed byte= -12 Character= � Binary= 11110100
    Unsigned byte= 245 Signed byte= -11 Character= � Binary= 11110101
    Unsigned byte= 246 Signed byte= -10 Character= � Binary= 11110110
    public class ATest {
        public static void main(String[] args) {
            int in;
            byte by;
            String bin;
            char chr;
            for(in=0; in<256; in++) {
                // create a byte whose binary value is equal to the;
                // integer loop counter;
                by = (byte)in;
                // mask off sign extension [that I don't agree with!] and;
                // cast the resultant 8 bits to a char;
                chr = (char)(by & 0x00ff);
                // since there's no Byte.toInteger, must cast to int to get;
                // binary string and then delete unwanted portion of string;
                if(in<128) {
                    bin = Integer.toBinaryString((int)by);
                } else {
                    bin = Integer.toBinaryString((int)by).substring(24);
                // print everything;
                System.out.println(
                    "Unsigned byte= "+in+
                    " Signed byte= "+by+
                    " Character= "+chr+
                    " Binary= "+bin);
    }

  • How does pictures get recovered from iphone when it does load from syncing the phone

    Hi, my laptop computer crashed last week, and a new one was purchase. After purchasing a new computer i downloaded a new itune software. Upon completion of the download i sync the phone, but unfortunately, my contacts were the only information recovered. Therefore, all pictures along with text messages and videos are lost. Can you help please?

    You can sync photos and itunes content with one and only one computer at a time.  When you sync to another, it will erase the current content and  replace with content from the new computer.

  • How can I get Data from the Sound cart in Labview? Does a VI exist?

    How can I get Data from the Sound cart in Labview? Does a VI exist?

    Yes, there are VIs for acquiring data from Sound cards. And examples too. If you don't have LabVIEW yet, do a search on NI's site for example VIs.
    Khalid

  • HT204053 My daughter and me use the same cloud ID and to buy songs and now all her contacts ended up on my new iphone 5  and I manually erased all from my phone and now they are gone from her phone.  How does she get back her contacts?

    My daughter and me use the same cloud and apple id to buy songs in the past.  I got first iphone 5 and after trying to set up itunes to phone I ended up with all my daughters contacts from her iphone on my iphone.  I then deleted them from my phone one by one and now they are gone from her phone as well.  How does she get them back on hers and what happen????  Help with cloud!

    That's what happens when you share the same iCloud account.  First, migrate his phone to a different iCloud account using a different ID (you can continue to share the same ID for other services such as iTunes if you want).  To do this, on his phone save any photo stream photos that he wants to keep to his camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If he are syncing notes with iCloud that he wants to keep, you'll need to open each of your notes and email them to him so he can later copy and paste the text into new notes created in his new account.  Then go to Settings>iCloud, tap Delete Account (which only deletes it from this device, not from iCloud; this won't effect your phone), provide the password to turn off Find My iPhone and choose Keep on My iPhone when prompted.  Then sign back in with a different Apple ID to create his new account and choose Merge to upload the data.  After doing this, he can go to icloud.com and safely delete your data from his new account.
    Then, if your contacts were on your phone when you last backed it up to iCloud, you can restore them by following Winston Churchill's user tip here: https://discussions.apple.com/docs/DOC-4841.  This involves turning off your wifi after your phone restarts during the restore process, then saving the contacts on your phone and deleting them from iCloud prior to turning your wifi back on and allowing the restore process to finish.  You can turn off your wifi either by pulling the cord out of the WAN port in your wifi router, or by simply unplugging it.

  • How to get string from jtextpane along with its attributes

    sir,
    How to get string from jtextpane along with its attributes
    i,e font,size,style,color etc.
    please help me out.
    my mail id is [email protected]

    JTextPane extends JTextComponent
    JTextComponent.getDocument()
    a Document is a set of Element, see Document.getRootElements(). Each Element has attributes, stored within an AttributSet object see Element.getAttributes()
    a Document can also be rendered as a String, see Document.getText( offest, length ), use it with 0 and Document.getLength() as parameters.

  • Latest version of Lightroom will not download RAW files from my D750. How does one get around this? Bought Lightroom for it's ability to manage RAW files and now very disappointed.

    Latest version of Lightroom will not download RAW files from my D750. How does one get around this? Bought Lightroom for it's ability to manage RAW files and now very disappointed.

    Here is the contents of a batch file which will convert whatever raws you drop on it:
    "C:\Program Files (x86)\Adobe\Adobe DNG Converter" -cr7.1 -dng1.4 -p0 %*
    Once you download the latest converter (release candidate from adobe labs, if necessary), and save the appropriate contents of the batch file (change path to match your system, and parameters to match your druthers, if applicable), the procedure is:
    1. Drop raw files on bat file.
    2. Import as usual (the DNGs).
    Not too bad once you're set up (if DNG converter supports your raws).
    Documentation:
    http://wwwimages.adobe.com/content/dam/Adobe/en/products/photoshop/pdfs/dng_commandline.pd f
    Note: on Mac, you may need to use "$@" (with the double-quotes) instead of %* (which is dos batch syntax), and you will need to use the full path to the converter executable file, e.g.
    “/Applications/Adobe DNG Converter.app/Contents/MacOS/Adobe DNG Converter”
    If too much, just use the GUI instead of the bat file.
    Rob

  • How does one get tech support from adobe?  is there an online "chat" service?

    How does one get tech support from adobe?  is there an online "chat" service?  There formerly was a telephone help service.  There is no phone number shown in "help.adobe.com"  Has phone support been eliminated as a cost-saving measure?

    There is finite help available via chat & phone
    http://www.adobe.com/support/download-install/supportinfo/
    Many problems can be solved here in the user-to-user forum. Feel free to avail yourself of this opportunity.

  • TS1702 How does one get rid of the stocks from Yahoo Finance on the notifications pull down bar on iPhone 5?

    How does one get rid of the stocks from Yahoo Finance on the notifications pull down bar on iPhone 5?

    If you mean you don't want to see the stocks at all in notification center go to Settings>Stock Widget and turn Notification Center to Off.  If you mean you want to remove some of the individual stocks shown, open the Stocks app, tap the "i " on the bottom right, tap next to the stocks you want to remove, then tap Done.

  • When I use Home sharing, I can see the library I want to copy, but when I highlight the library, the import button does not show up. Also, it will not let me drop and drag. How do I get music from one computer to the other computer?

    When I use Home Sharing, I can see the library I want to copy under Shared, but I can't get it save on the computer under the regular library. I go to edit and "select all" but there is no import button that is in the right hand corner. Also, it will not let me click and drag the music. How do I get it from one computer to the other?

    Since both computers are connected via the network, you could simply copy the ENTIRE iTunes folder from one computer to another via the network.
    If both computers are running Windows, use the Easy File Transfer Utility built into Windows to move iTunes and all other user media/data.

  • HT204291 How does one get full screen when using air play on my tv from my iPad,thanks in advance

    How does one get a full screen when using air play on my tv when I'm mirroring,.? Thanks in advance

    The iPad's display is 4:3, so it cannot fill your TV screen, which is 16:9
    The only way is to change your TV settings and stretch the image.

  • How to read a string from file & assign the val to a variable in batch file

    Hi,
    How to read a string from a file and assign the value to a variable then return the value to the screen in windows batch file?
    Any suggestions?
    thanks.

    Unless this is a homework question then I don't see the purpose of doing this, but....
    You should be looking a the supplied package utl_file to get the string out of the file, dbms_output to display the string and then google windows batch/command files calling sqlplus to execute your program.
    Andre

  • How do I get songs from iPod(video) to iTunes(7 and using VISTA).

    How do I get songs from iPod(video) to iTunes(i'm using iTunes7 and Vista).
    I don't have the disc, cause i can't find it. But my computer downloaded the ipod, it just cant find the files?
    i've been looking through the topics for the past hour and none of them helped. Maybe i'm stupid i dont really know, but i've restored my old computer a couple times and i found a post and it helped both times. now i can't find it anymore.
    THIS IS THE ONE I'VE BEEN SEEING AND IT DOESN'T HELP ME ONE BIT:
    Connect your iPod to your computer. If it is set to update automatically you'll get a message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press "Cancel". Pressing "Erase and Sync" will irretrievably remove all the songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual and use your iPod without the risk of accidentally erasing it. Also when using most of the utilities listed below your iPod needs to be enabled for disc use, changing to manual update will do this by default. Check the "manually manage music and videos" box in Summary then press the Apply button: Managing content manually on iPod
    Once you are safely connected there are a few things you can do to restore your iTunes from the iPod. If you have any iTunes Music Store purchases the transfer of purchased content from the iPod to authorised computers was introduced with iTunes 7. You'll find details in this article: Copying iTunes Store purchases from your iPod to a computer
    The transfer of content from other sources such as songs imported from CD is designed by default to be one way from iTunes to iPod. However there are a number of third party utilities that you can use to retrieve the music files and playlists from your iPod. You'll find that they have varying degrees of functionality and some will transfer movies, videos, photos, podcasts and games as well. Have a look at the web pages and documentation, this is just a small selection of what's available, they are generally quite straightforward. You can read reviews and comparisons of some of them here:
    Wired News - Rescue Your Stranded Tunes
    Comparison of iPod managers
    TuneJack Windows Only
    iPod2PC Windows Only
    iGadget Windows Only
    iDump Windows Only
    SharePod Windows Only
    iPodRip Mac & Windows
    YamiPod Mac and Windows
    Music Rescue Mac & Windows
    iPodCopy Mac and Windows
    iRepo Mac & Windows (iPhone and iPod Touch compatible)
    iPod Access Mac & Windows (iPhone and iPod Touch compatible)
    There's also a manual method of copying songs from your iPod to a Mac or PC. The procedure is a bit involved and won't recover playlists but if you're interested it's available on page 2 at this link: Copying Content from your iPod to your Computer - The Definitive Guide
    Whichever of these retrieval methods you choose, keep your iPod in manual mode until you have reloaded your iTunes and you are happy with your playlists etc then it will be safe to return it auto-sync. I would also advise that you get yourself an external hard drive and back your stuff up, relying on an iPod as your sole backup is not a good idea and external drives are comparatively inexpensive these days, you can get loads of storage for a reasonable outlay.
    Can someone give me a link, or tell me one that shows step by step.

    Here is a way of doing it, for another take on this, search the forum for posts by Zevoneer.
    Copy from iPod to PC
    It is important not to allow your iPod to sync with an empty library. If it is set to synchronise automatically you will get a message saying your iPod is linked to a different library and asking if you want to sync – it is important to press cancel as syncing with an empty library erases all music from your iPod.
    You can also prevent auto sync by holding down shift & ctrl as you plug in your iPod and keeping the keys held down until the iPod appears in iTunes.
    Once you are connected, you need to set your iPod to manage music manually.
    http://docs.info.apple.com/article.html?artnum=61148
    If you have an iPod with iTunes Store purchases on it, you can use it to copy your purchases to other authorized computers.
    http://docs.info.apple.com/article.html?path=iTunesWin/7.3/en/2586win.html
    However this is not allowed for other music.
    This MacMuse tip tells you how to copy music from your iPod using Windows Explorer, but it is a bit fiddly:
    http://discussions.apple.com/messageview.jspa?messageID=797432
    Otherwise you can use third party software to manage the transfer, there are a variety of programs out there, some free and some that will copy ratings and counts as well as the music files. Here is a selection, check them out and see what suits you.
    http://www.yamipod.com/main/modules/home/
    http://www.floola.com/modules/wiwimod/index.php?page=WiwiHome
    http://www.ipodsoft.com/site/pmwiki.php?n=igadget.Homepage
    http://www.copytrans.net/
    You can find others by Googling: copy iPod to iTunes
    There is a useful background article on copying from your iPod here:
    http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/

  • How does one get the Satellite to work in Google Maps ?

    How does one get the Satellite to work in google maps ?

    I am experiencing exactly the same issue - iMac, 10.6.8.  Thanks for reporting it - I thought I was going nuts.  What happens from here?  Does Apple watch these postings?  Do we just hope that they find the bug themselves?  Is there a vehicle for reporting bugs directly to Apple?
    Thanks in advance.

  • HT201302 Hi People! please help...I want to know how can i get photos from ipad to the computer, that were synchronized previously to ipad but from another pc that i dont have access anymore and these pics are now only found in this ipad and no other plac

    Hi People!
    Please help...I want to know how can i get photos from ipad to the computer, that were synchronized previously to ipad but from another pc that i dont have access anymore and these pics are now only found in this ipad and no other place.

    Hi Alan,
    Thanks for the help, but i've actually done that before.
    It does not help, because it only shows the photos on the camera roll and do not show the photos synchronized with that pc that i dont have access anymore.
    The photos/albums all appear on the ipad, i can see it without problems but i cant get them out of the ipad to save onto pc for backup.
    And i reaaly need it, as it is the only place that i actually have these photos now...

Maybe you are looking for

  • Remove Soap Header while calling a WS from BPEL 11g

    Hi My requirement is to remove the entire SOAP Header tag in the invoke activity. How this can be achieved? Please help thanks Sesha

  • IPod nano stops reformatting with iPod update!

    Ok, My ipod got the dreaded grey folder screen when I tried to update it's software. I uninstalled everything iPod and reinstalled the stuff with the CD that came with it. It said it needed to be formatted so I click Yes. during the process, it just

  • Update final cut express from version 1.0.0

    Are there any updates available for final cut express 1.0.0? Downloadable? Whats the most current version? iMac G4 (snowcone)   Mac OS X (10.4.7)   Message was edited by: donkilometron

  • Error Message Every Time I Close the Prefs Box

    Since I upgraded to iTunes 5 (now on 5.0.1) I get an error message every time I close the Preferences box: "An error occurred while updating the default player for audio file types. You do not have enough access privileges for this operation." I am t

  • Compatibility problem - CS5.5 plugin doesn't work with CS5.5

    Hi, I have a problem with our CS5.5 plugin, it works without problems one my machine but the customer gets the errormessage "Adobe InDesign does not recognize JOURNALDESIGNERPLUGIN.PLN as valid plug-in. Please reinstall...." I know this message from