load any sites page from applet

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
j007Asked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
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
 
j007Author Commented:
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
 
objectsCommented:
I think its SocketPermission.
So do you want the page to display within the applet, or outside the applet?
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
j007Author Commented:
I want this page to be displayed inside the applet
0
 
objectsCommented:
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
 
ahosangCommented:
getAppletContext().showDocument(url)
should work if called from within the applet.
0
 
Venci75Commented:
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
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0
All Courses

From novice to tech pro — start learning today.