Blackberry Browser close event on button click in VB.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Himanshu Sekhar
    New Member
    • Aug 2010
    • 4

    Blackberry Browser close event on button click in VB.net

    i want to close blackberry browser on a button event.
    i want the code in vb.net.
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    Yes, and I want a million dollar, but no-one seems to give me that...

    On a serious note, elaborate on your question! Show us what you've got, what you've done so far to make this work and what you are trying to accomplish.

    Steven

    Comment

    • Himanshu Sekhar
      New Member
      • Aug 2010
      • 4

      #3
      simply i wrote the following code in the button event.

      Response.write( "<script language='javas cript'> {window.close() ;}</script>")

      and it works in general web browser like IE.
      but doesn't in BB browser.

      Comment

      • MrMancunian
        Recognized Expert Contributor
        • Jul 2008
        • 569

        #4
        Check this blackberry documentation on windows.close(). The way you do it should work, although I've read that Javascript support in BlackBerry isn't very nifty, so perhaps that could cause a problem.

        Comment

        • Himanshu Sekhar
          New Member
          • Aug 2010
          • 4

          #5
          if you would have noticed that in blackberry doc javascript reference there is a sentence written that
          "If no earlier item exists in the window.history array, the BlackBerry Browser is closed and the browser session ends. "
          what is mean???

          Comment

          • MrMancunian
            Recognized Expert Contributor
            • Jul 2008
            • 569

            #6
            It means exactly what is says: If you call the window.close and there is no entry in the window.history, the browser will close.

            Steven

            Comment

            • Himanshu Sekhar
              New Member
              • Aug 2010
              • 4

              #7
              same thing i'm doing but it's not working.

              Comment

              Working...