Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Closing the browser window through Java

 
Shrikant Kulkarni
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

My wireless application works on a PDA browser. The PDA browser doesn't support javascript. When user wants to logoff from the application, he clicks on the logoff button. After clicking it the current browser window should close.
I am using XHTML-MP markup language to develop the page instead of HTML.
I need a piece of code (Example Java code, not Javascript code) in order to close the current window browser.

Any help will be welcome.

Shrikant
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't do this with Java.
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well, in j(x)se you can execute system commands. assuming that you are working with j2me, you might investigate in this direction, i think there is a forum for this here...

jan
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jan Groth:
well, in j(x)se you can execute system commands.


But not from an Applet.
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On normal PCs, it's rude for a web page to try to close the browser in which it is running. Is this not the case for PDAs as well?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic