I am sorry Greg but I don't know to do it.
The html page is "administration.html", there is a script (js) :
<html>
....
<script>
function loadPage() { window.location.replace("/ihm/page/relecture.html"); }
</script>
....
application_class_name:"ihm.applet.Administration"
...
deployJava.runApplet(attributes, parameters, "1.6");
....
</html>
How execute the function "loadPage" form applet Administration ?
Could you tell me an example ?
-----Message d'origine-----
De : Greg Brown [mailto:[email protected]]
Envoyé : lundi 26 avril 2010 18:08
À : [email protected]
Objet : Re: Load url from applet
The application name is just the name of the applet hosting the application.
However, you don't need that to call eval() - you just need the application
instance.
On Apr 26, 2010, at 12:02 PM, Jérôme Serré wrote:
> Thank you,
> I will use BrowserApplicationContext.eval(), but I don't know how to get
the
> name of Application.
> Is it the name of the page or do I create loading and how ?
>
> -----Message d'origine-----
> De : Greg Brown [mailto:[email protected]]
> Envoyé : lundi 26 avril 2010 16:12
> À : [email protected]
> Objet : Re: Load url from applet
>
> One approach is to use java.awt.Desktop#browse(). This works well because
it
> works for both desktop and browser application contexts. However, it will
> generally open the page in a new window, which may not be what you want.
>
> You can also use BrowserApplicationContext.eval(), which can be used to
> execute arbitrary JavaScript in the page. However, this only works when
> running in the browser.
>
> On Apr 26, 2010, at 10:06 AM, Jérôme Serré wrote:
>
>> Hello,
>>
>> Is it possible to load a page in the browser from an applet pivot ?
>> something like:
>> getAppletContext (). showDocument (new URL ());
>>
>> Thanks
>>
>>
>>
>>
>>
>> __
>>
>> Cordialement
>>
>> Jérôme Serré
>>
>>
>>
>>
>