controlling launch of browser from non-web application


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: controlling launch of browser from non-web application

  1. #1
    Join Date
    Sep 2003
    Posts
    3

    Question controlling launch of browser from non-web application

    i want to limit Explorer to a pop winow when it launches from another program. i am guessing it can be done and i need some expert advise.... i want to hyperlink to a web site from a powerpoint presentation (that is in kiosk mode in a continuous loop) and control the Explorer window when a user clicks on the hyperlink. right now it launches explorer in a default window size which seems to be controlled by powerpoint (although i could not find the settings) with all of the toolbars and menu items... what i want is a pop-up window with an option to close in the window. went looking through some of the applets but could not find anything.... i know a bit about what applets are for, but I am by no means a technical wizard by any means so any help would be much appreciated or ideas where i might look. thanks.

  2. #2
    Join Date
    Mar 2003
    Posts
    834
    I couldn't quite understand exactly what you were trying to say in your post, but let me say this:

    If you want control over a brower, expecially if it is from a platform-specific program (such as Powerpoint), you will have tremendous difficulty using Java.

    The size of a browser window is often controlled using Javascript (not Java):

    http://www.codeave.com/javascript/code.asp?u_log=7065
    ArchAngel.
    O:-)

  3. #3
    Join Date
    Sep 2003
    Posts
    3

    Thumbs up

    Thank you for that. Turns out it is indeed a javascript solution, except it's one line of code that you insert where you simply put a URL. This is the line -

    javascript:resizeTo(700,650);moveTo(182,50);document.location.href='http://website.com' -

    This controls the browser size and position on the screen when it opens. My other problem (which I did not mention) was how to limit access to the toolbars and menus (which is usually what happens in a pop window).

    In the end, I will turn off the toolbars and menus in Explorer directly through the software properties and let the hyperlink in Powerpoint control the window. This is becuase my presentations a running in kiosk mode and I want to limit the use of the browser to the site that it is linked. Without toolbars, menus and location, viewers are limited in their options.

    Thanks alot..... this forum may prove to be a good resource for me and my colleagues in the future.


  4. #4
    Join Date
    Mar 2003
    Posts
    834

    Thumbs up

    ArchAngel.
    O:-)

  5. #5
    Join Date
    Sep 2003
    Posts
    3

    Smile

    Thanks for the useful web sites.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center