🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.java
2 messages
2 total messages Started by Damian Thu, 07 Aug 1997 11:56
Link z poziomu applet
#835
Author: Damian
Date: Thu, 07 Aug 1997 11:56
4 lines
631 bytes
Pytanie jest moze trywialne ale...
Jak z poziomu appletu spowodowac wczytanie do browsera nowej strony HTML.

Damian
Re: Link z poziomu applet
#836
Author: Artur Tyloch
Date: Tue, 12 Aug 1997 17:06
34 lines
1414 bytes
Damian wrote:
> 
> Pytanie jest moze trywialne ale...
> Jak z poziomu appletu spowodowac wczytanie do browsera nowej strony HTML.
> 
> Damian
A moze tak:  :-)
public boolean action(Event e, Object arg)
{
	if (e.target instanceof Button)
	{
 		try
		{
		getAppletContext().showDocument(new java.net.URL(getCodeBase()+ 
					"tmp.html"),"_self");
		/*
		 "_self"      show in the current frame
		 "_parent"    show in the parent frame
		 "_top"       show in the top-most frame
		 "_blank"     show in a new unnamed top-level window
		 name         show in a new top-level window named name
		*/
		}
		catch (Exception exc)
		{
			exc.printStackTrace();
		}
		return true;
	}
	return false;
}
Po nacisnieciu jakiegos przycisku laduje Ci sie nowa strona

Artur
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads