Results 1 to 4 of 4

Thread: capture java promt

  1. #1

    Thread Starter
    Hyperactive Member Rattled_Cage's Avatar
    Join Date
    Dec 2005
    Posts
    315

    Red face capture java promt

    Code:
    WebBrowser5.Navigate "javascript:void(prompt('',gApplication.getMap().getCenter()));"
    shows the latitude and longitude of the center of the map just fine as a pop up

    but how could i get its responce in a text box

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: capture java promt

    JavaScript has nothing to do with Java.

  3. #3

    Thread Starter
    Hyperactive Member Rattled_Cage's Avatar
    Join Date
    Dec 2005
    Posts
    315

    Re: capture java promt

    Quote Originally Posted by dilettante View Post
    JavaScript has nothing to do with Java.
    Agreed

    can it be done though ?

  4. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: capture java promt

    You can capture a prompt from JavaScript but not from a Java applet if that is what you are asking. You can call a Java applet or I should say a Java function from VB and get the return data but that's another subject


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width