Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

load any sites page from applet

Posted on 2002-04-18
8
Medium Priority
?
145 Views
Last Modified: 2010-03-31
Can we load any sites page from applet?

I have my applet on selecting any url from combo box eg www.google.com 
it should display the page in same browser
It should also be able to open the same on particular Ip address.



Thanx
AJ
0
Comment
Question by:j007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 92

Accepted Solution

by:
objects earned 800 total points
ID: 6952556
By default an applet does not have permission to do what you want. It is only allowed to connect to the site that it was loaded from.

You must get the user to grant the applet additional permissions if you with to connect to other sites.

You could of course simply display the page in another browser window, instead of having the applet display it:

applet.getAppletContext().showDocument(url, "target");
0
 

Author Comment

by:j007
ID: 6952624
I want to show the url on the same applet window as I want to trap the mouse event too.

What permissions are to be granted for connecting to other sites?


Thanx in Advance
Aj
0
 
LVL 92

Expert Comment

by:objects
ID: 6952635
I think its SocketPermission.
So do you want the page to display within the applet, or outside the applet?
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 

Author Comment

by:j007
ID: 6952864
I want this page to be displayed inside the applet
0
 
LVL 92

Expert Comment

by:objects
ID: 6952879
Then you'll need to get the necessary priveliges from the user either by signing the applet and requesting them from the user, or changing their policy file.
0
 
LVL 12

Expert Comment

by:ahosang
ID: 6953891
getAppletContext().showDocument(url)
should work if called from within the applet.
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7972386
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: objects
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8021347
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question