How to update a textarea from an applet on Mac OS
Hi, i'm writing an applet and I would like to update a textarea, of the same html page, from my applet.
I'm working on MAC OS (LiveConnect doesn't work).
I've tried the solution that i've found at this address: http://www.rgagnon.com/ce/java-js.html, but the data are transmitted via the url (by means of the GET method) and i've too much data to move.
I would appreciate any help.
Your applet can open an URLConnection and read directly a document from your webserver.
public String readText() {
java.net.HttpURLConnection conn = (java.net.HttpURLConnection)myURL.openConnection(); ...
}So using JavaScript on your page, you might call readText() to fill that textarea.
The interesting link you gave, handled the JavaScript/Applet interaction. Test that with just return "Hello";.
The real programming is more interesting.
Similar Messages
-
How to update duplicate row from table
Hi,
how to update duplicate row from table?
First to find duplicate row then update duplicate row with no to that duplicate row in oracle.
can you give me suggestion on it?
Thanks in advance.
your early response is appreciated...In order to find a duplicate row, see:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1224636375004
(or search this forum, your question has been asked before)
In order to update it, just create and use an Oracle sequence, have it start and increment at a value that doesn't exist in your table.
If that doesn't get you going, post some CREATE TABLE + INSERT INTO statements, and the results you want from them, in other words: a complete testcase. -
i have imac 8,1 how i update my software from 10.5.8 to 10.6.8
Call 1-800-MY-APPLE (or your county's support number). Apple is selling single user disks for $19 or 5-user family disks for $29. If you think you will another copy of SL in the future, buy the $29 family pack before Amazon at $100+ becomes your only source.
-
how to update Ipad 2 from IOS 4.3.5 to IOS 5? Itunes won't let me do it because it keeps showing error messages asking me to check if my network is active.
If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 7.1.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
You can no longer update to iOS 6.x, or down grade the iOS.
iOS 5: Updating your device to iOS 5 or Later
http://support.apple.com/kb/HT4972
How to install iOS 6
http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
iOS: How to update your iPhone, iPad, or iPod touch
http://support.apple.com/kb/HT4623
If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
Tip - If connected to your computer, you may need to disable your firewall and antivirus software temporarily. Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 7.x, the next update can be installed via wifi (i.e., not connected to your computer).
Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
How to Upgrade to iOS 7
The iOS 7.0 update requires around 2.5 GB of storage space, so if your iPad is almost full, you may need to clear up some space. You can check your available space in Settings -> General -> Usage.
There are two ways to upgrade to iOS 7: You can use your Wi-Fi connection, or you can connect your iPad to your PC and update through iTunes. We'll go over each method.
To upgrade using Wi-Fi:
Note: If your iPad's battery is under 50%, you will want to plug it into your charger while performing the update.
Go into the iPad's Settings.
Locate and tap "General" from the menu on the left.
The second option from the top is "Software Update". Tap this to move into the update settings.
Tap "Download and Install". This will start the upgrade, which will take several minutes and will reboot your iPad during the process. If the Download and Install button is grayed out, trying clearing up some space. The space required by the update is mostly temporary, so you should gain most of it back after iOS 7 is installed.
Once the update is installed, you may have to run through the initial steps of setting up your iPad again. This is to account for new features and settings.
To upgrade using iTunes:
First, connect your iPad to your PC or Mac using the cable provided when you purchased your device. This will allow iTunes to communicate with your iPad.
You will also need the latest version of iTunes. Don't worry, you will be prompted to download the latest version when you launch iTunes. Once it installs, you may be asked to setup iCloud by logging into your iTunes account. If you have a Mac, you may be prompted on whether or not you want to enable the Find my Mac feature.
Now you are ready to begin the process:
If you upgraded iTunes earlier, go ahead and launch it. (For many, it will launch automatically when you plug in your iPad.)
Once iTunes is launched, it should automatically detect that a new version of the operating system exists and prompt you to upgrade to it. Choose Cancel. Before updating, you will want to manually sync your iPad to make sure everything is up to date.
After canceling the dialog box, iTunes should automatically sync with your iPad.
If iTunes doesn't automatically sync, you can manually do it by selecting your iPad within iTunes, clicking on the File menu and choosing Sync iPad from the list.
After your iPad has been synced to iTunes, select your iPad within iTunes. You can find it on the left side menu under Devices.
From the iPad screen, click on the Update button.
After verifying that you want to update your iPad, the process will begin. It takes a few minutes to update the operating system during which time your iPad may reboot a few times.
After updating, you may be asked a few questions when your device finally boots back up. This is to account for new settings and features.
Cheers, Tom -
How to update iphone 4 from 4.3.1 to ios 6, How to update iphone 4 from 4.3.1 to ios 6
Plug it into your computer running iTunes and click the check for updates button if you're not prompted to update it automatically.
You must be running iTunes 10.7 on your computer. -
How to update info cube from PSA
Hi,
how to update Info cube from PSA.
Coz we have changed the update rule for one characteristic.What is the implication of updating it from the PSA.
Regards,
Viren.Hi,
Now there is one more problem in update rule.
We are using " 2LIS_03_BF " as datasource.which doesn't contain Sales organization,Division or Distribution channel.
So in transfer rule for the infosource "2AF_MM_INV_1" we can not update the salesorg,division and Distribution channel.In communication structure all these objects are assigned to respective info objects.
Now in Update rule we have kept Division and Sales organization as initial.Still we are getting correct data for the Division and not a single record contains Sales organisation and for distribution channel we are using update routine..
SELECT SINGLE DISTR_CHAN INTO DISTR_CHAN
FROM /BI0/MCUST_SALES WHERE DIVISION = COMM_STRUCTURE-DIVISION
AND SALESORG = COMM_STRUCTURE-SALESORG
AND CUST_SALES = COMM_STRUCTURE-CUST_SALES.
Now my problem is this update rule fatches record on the basis of cust_sales only as comm_structure doesn't contain any thing for division and sales org.So how to get value for sales org and Division in Communication structure.
Summary, I want to get data for Distribution channel and sales org in my cube.
Pls help me out...
This is very urgent..
Regards,
Viren. -
Hi, how to update my downloads from 128 to 256 kbits ?
Hi, how to update my downloads from 128 to 256 kbits ?
Al Tuco,
You can do it with iTunes Match.
See this document: iTunes Store: iTunes Plus Frequently Asked Questions (FAQ) and read the section on "Can I upgrade my previously purchased music to iTunes Plus?" -
How can I move videos from Revolution phone to mac?
How can i move videos from Verizon Revolution to Mac? My computer is Mac os x version 10.5.8
I have several videos that are too long to send via email, which is how I have been moving pictures and videos. I plugged it in using the USB port. The phone says I'm connected via usb. My mac brought up a box warning that the "cd connected" is not readable.Hi ..
You can use the Image Capture app located in your Applications folder to import vidoe content from the phone to your Mac
Instructions here > Using a camera with your Mac - Apple Support
If you have problems, make sure your Mac's software is up to date.
Open System Preferences > App Store then click: Check Now -
How can I transfer photos from LG phone to mac notebook. Phone appears in iPhoto when connected via USB but selection for download shows 0 photos
Just open your LG volume up likes its an external HD and drag all photos onto a folder in your macbook Air.
-
How do I transfer music from itunes on my mac to a flash drive?
How do I transfer music from itunes on my mac to a flash drive?
hi,
it depends from the OS which is installed on your computer. At first you must access your Music folder which contains the iTunes folder:
Windows 7:
\username\My Music\iTunes.
Windows XP:
\Documents and Settings\username\My Documents\My Music\iTunes
Mac OS X:
~/Music/iTunes/
In this iTunes folders you can find a "iTunes Media" folder which contains your Music. This Music you can than copy on a flash drive
Mac: http://support.apple.com/kb/HT1449
Windows: http://support.apple.com/kb/HT1364 -
How to reinstall Photoshop Elements from old Pc into Mac?
How do I reintall Photoshop Elements Windows version into my new Mac. PC was stolen.
I looked at it, Barbara, but you can't download 9 without the discs. I
originally downloaded it online and Adobe now tells me it only has 10 to
download.
On Tue, 19 Jun 2012 07:02:00 -0600 "Barbara B." <[email protected]>
writes:
Re: How to reinstall Photoshop Elements from old Pc into Mac?
created by Barbara B. in Photoshop Elements - View the full discussion
Did you not look at the link in the thread in my last post, Lorna?
When you buy software it's your responsibility to keep the media against
future reinstallations, whether you purchase via download or on disc. If
you registered your software, for PSE 9 you may still find a download
link in your adobe store account, if you purchased PSE that way, also.
Replies to this message go to everyone subscribed to this thread, not
directly to the person who posted the message. To post a reply, either
reply to this email or visit the message page:
http://forums.adobe.com/message/4504088#4504088
To unsubscribe from this thread, please visit the message page at
http://forums.adobe.com/message/4504088#4504088. In the Actions box on
the right, click the Stop Email Notifications link.
Start a new discussion in Photoshop Elements by email or at Adobe Forums
For more information about maintaining your forum email notifications
please go to http://forums.adobe.com/message/2936746#2936746. -
How do I delete photos from iPhoto on my Mac os x snow leopard
How do I delete photos from iPhoto on my Mac os x snow leopard? Please can someone help? Thanks.
Move the photos you wish to delete to Trash in iPhoto and then empty the Trash in iPhoto by click Empty iPhoto Trash in the pull down menu under iPhoto.
Allan -
How do I get photos from iPhoto on my Mac to my iPad?
How do I get photos from iPhoto on my Mac to my iPad?
http://support.apple.com/kb/HT4236
-
How to writing an image from my applet to my apache webserver
hi everyone,
i have a big problem, writing an image from my applet to my apache
webserver. i tried three way's of writing that file. every way was
described in forums to solve this problem, but non of them worked and
i don't know why. i'll give you the code of my writing-methods and
describe, what happen when i test them, in order someone of you can
give me an usefull tip, where the problem is.
as inputparameter i give my method a new URL referring to
http://localhost/test.jpg (this is the same directory, where my applet
is loaded from, so i should have reading and writing permission,
havn't i? while i'm developing, my applet runs on the same pc as my
webserver, just in case you're wondering about localhost) and a
selfmade BufferedImage (i already testet if it is not null and shows
the correct things ... all ok).
1. try:
private void writeImageToServer(URL fileURL,BufferedImage img){
try {
URLConnection urlConnection = fileURL.openConnection();
urlConnection.setDoOutput(true);
OutputStream urlout = urlConnection.getOutputStream();
BufferedOutputStream out = new BufferedOutputStream(urlout);
ImageIO.write(img,"jpg",out);
out.close(); // i also tried without this line -> same result
// additionally a question: do i need
out.close()?
catch( IOException e ){
e.printStackTrace();
result:
test.jpg doesn't appear in the webroot. but some very strange messages
in the error.log of my apacheserver:
[Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
exist: c:/programme/apache
group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageOutputStreamSpi
[Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
exist: c:/programme/apache
group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageReaderSpi
[Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
exist: c:/programme/apache
group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageInputStreamSpi
[Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
exist: c:/programme/apache
group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageWriterSpi
[Tue Jun 08 11:40:22 2004] [error] [client 127.0.0.1] File does not
exist: c:/programme/apache
group/apache/htdocs/meta-inf/services/javax.imageio.spi.ImageTranscoderSpi
i cannot explain this lines to myself, because my apache should have
nothing to do with java. all my javacode is executed on the client
side in the browser. do this messages mean i have to add the ImageIO
package from the sdk to my jar-applet. the jre, used by my iexplorer,
doesn't contain this files in the meta-inf/services directory of
rt.jar, but that's version 1.4.2_03, the same as my sdk, and the
rt.jar contains the corresponding classfiles at javax.imageio.spi. so
i'm realy confused by this messages.
2. try:
private void writeImageToServer(URL fileURL,BufferedImage img){
try {
URLConnection urlConnection = fileURL.openConnection();
urlConnection.setDoOutput(true);
OutputStream urlout = urlConnection.getOutputStream();
BufferedOutputStream out = new BufferedOutputStream(urlout);
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
encoder.encode(img);
out.close(); // same comments as above
catch( IOException e ){
e.printStackTrace();
result:
nothing. no error-messages in the error.log, no exceptions in the
java-console and no test.jpg in the webroot. i searched my whole
harddrives for it: nothing. isn't this the way, the JPEGImageEncoder
works?
3. try:
private void writeImageToServer(URL fileURL,BufferedImage img){
try {
File file = new File(fileURL.toString);
file.createNewFile();
BufferedOutputStream out = new BufferedOutputStream(new
FileOutputStream(file));
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
encoder.encode(img);
out.close(); // same comments as above
catch( Exception e ){
e.printStackTrace();
result:
the SecurityManager denies this action with "access denied" while
calling createNewFile(). well, this way was dedicated to run from an
application, not from an applet. i'd have to sign my applet to get the
rights to do this, or i can edit java.policy on my client, what i
don't want, because i cannot do this on every client, the applet will
run, when i'm finished with it. this brings me to the question: does
anybody know's how to sign my applet and give it full access to the
harddrive and the webserver without paying 400$ to VeriSign for a
commercial CA? i want to do this by myself, without paying anything
and without giving a lot of information to another company.
i would realy appreciate, if someone could give me a hint where i am
wrong or how to do this correct.
thank you very much
[email protected]You hold several misconceptions. The first is that an applet can write to a server without help from the server. That will never work on a real server (though it might work in testing, if the server is on the same PC as the applet). Applets cannot get a File object that points to any place on the server.
If you write a servlet designed for accepting image uploads, the applet can communicate back to that servlet and feed it the bytes of the image. There are other technologies that can replace the servlet, of course (PHP, ASP..) but I mention that because you say you are running Apache - and that is very Java oriented.
For more help on servlets, try the [Web Tier APIs - Java Servlet|http://forums.sun.com/forum.jspa?forumID=33] forum. -
How to update other infotype from source infotype via function module?
Want in source infotype to call a func.module, which shall update other infotype(s) in background.
Have tried out with HR_INFOTYPE_OPERATION, but without success - gives mitchmatch of source it and target it in the internal it buffer tables.
How to do?
Requirements also are to secure rollback, if update of the last of ex. 3 target its fails.
Anyone has experience on this issue?
Regards SørenKnow this functionality - also by means of own coding in the PAI by filling the int. tables dynmeas + initial_values. However the issue remains, i.e. the update has to be done by a function module called from PAI of own infotype, and from a function module you can't trigger the T588Z-functionality.
The update of it0003 from own it9300 is only an example, have general requirements that:
- from own infotype PAI a function module shall be called
- from the function module update of other infotypes
shall take place (modify as well as insert and delete)
- if more infotypes shall be updated from source infotype,
rollback shall take place if ex. update of last target
infotype fails (all to be updated or none!).
Regards Søren
Maybe you are looking for
-
In the last 24 hours after switching to iOS 7, Mail has crashed on me 3 or 4 times when tapping on the mail icon in the tray. How do I stop this from happening. I have an iPad 2 16GB.
-
Lenovo G550 Graphics Very Bad, want to install external GPU
Hi everyone! I own a Lenovo G550 (model 20023). It currently has a Intel Pentium Dual Core T4500, Intel Graphics Media Accelerator(That's one hell of a bad GPU!!!!), 4Gb DDR3 Ram(had 2gb DDR3 Factory Installed), with 3 operating systems(Yes
-
Browser does not work daily I have to install .Microsoft on line help dignose that helper file has damaged what to do so that I should get permanent solution regards PT VIJAY RATTAN VAIDYA
-
Operation Timed out retrieving large xml from SharePoint webservice
When I try to retrive a large list from a SharePoint webservice the operation gets timed out. I had used an unusually large row size to get it back until now but since the list has grown, its timing out again. This is my code, can anybody suggest any
-
Why can't I open pps and wmv files sent by email!
Many friends send photos and/or files with pps and wmv designations. Windows continually rejects them with the message that it is unable to open them. How can I fix this?