• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

only allow one instance of browser running ????

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello --
Is it possible to prevent more than one instance of the browser running? We bring up IE from powerbuilder to bring an applet to life. We don't want multiple instances of the browser running on a client PC. Is there a way to prevent the user from opening multiple instances of the browser?
Thanks for your insight.
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well you can keep a counter but that will work only if the user is trying to open a particular page (or application) i don't know how you can count the number of instances of the browser, atleast with javascript...but if you just want to restrict a user from having mulitple instances of the applet or the page that contains that applet then i am sure it can be done..
manav
 
v fox
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how would I go about preventing the applet from being instantiated in a browser more than once simultaneously per client pc? you say that it can be done - can you give me some sample code please?
or, if the browser with the applet opens a child browser to execute a jsp, is it possible to tell when the child browser has been closed? is it possible to tell if the child browser is still open?
Thanks for your help!
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can check for a window's existence. Look at this link for examples.
http://www.webreference.com/js/tips/000511.html
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How would powerbuilder restrict the applet browser from being instantiated more than one at a time? I don't think javascript would work - the browser is brought to life from the powerbuilder application.
Or, would it work to let powerbuilder bring up the browser, and then have the applet call a javascript function to check if the applet is already alive - if it is, close the second browser immediately? Would closing the second browser bring up a javascript confirm telling the user that an application is trying to close this window - asking them to confirm that this is ok?
Thanks for your help!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic