Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. popup window in mobile web page

popup window in mobile web page

Scheduled Pinned Locked Moved Mobile
javascriptarchitecturehelpquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saud AKhter
    wrote on last edited by
    #1

    hi all i am developing a PDA application. i want to have a popup window to display the help. i have done it in javascript function function show_popup() { var p=window.createPopup(); var pbody=p.document.body; pbody.style.backgroundColor="lime"; pbody.style.border="solid black 1px"; pbody.innerHTML="This is a pop-up!Click outside the pop-up to close. cool"; p.show(0,0,200,50,document.body); return false; } it works fine when i view it in browser but not working on pocket pc emulator please help me in this regard if u guys have better soloution. how can i popup a window in mobile web page thanx in advance saud

    D 1 Reply Last reply
    0
    • S Saud AKhter

      hi all i am developing a PDA application. i want to have a popup window to display the help. i have done it in javascript function function show_popup() { var p=window.createPopup(); var pbody=p.document.body; pbody.style.backgroundColor="lime"; pbody.style.border="solid black 1px"; pbody.innerHTML="This is a pop-up!Click outside the pop-up to close. cool"; p.show(0,0,200,50,document.body); return false; } it works fine when i view it in browser but not working on pocket pc emulator please help me in this regard if u guys have better soloution. how can i popup a window in mobile web page thanx in advance saud

      D Offline
      D Offline
      Drofnas
      wrote on last edited by
      #2

      To the best of my knowledge this is not possible with Pocket IE, the default browser on Pocket PCs. This browser only allows for a single window open at a time. There are other 3rd party browsers, such as Mobile Opera, that may support what your looking for, but if you want to reach the widest audience you will have to program you site with a single window in mind. so instead of creating a popup page you will have to navigate to the Help page, then on the Help page you would simply have a "back" button that would bring the user back to the place they game from. To make sure you don't lose the functionality you want, you will have to check to see what platform your webpage is currently being viewed on, then display the appropiate site.

      S 1 Reply Last reply
      0
      • D Drofnas

        To the best of my knowledge this is not possible with Pocket IE, the default browser on Pocket PCs. This browser only allows for a single window open at a time. There are other 3rd party browsers, such as Mobile Opera, that may support what your looking for, but if you want to reach the widest audience you will have to program you site with a single window in mind. so instead of creating a popup page you will have to navigate to the Help page, then on the Help page you would simply have a "back" button that would bring the user back to the place they game from. To make sure you don't lose the functionality you want, you will have to check to see what platform your webpage is currently being viewed on, then display the appropiate site.

        S Offline
        S Offline
        Saud AKhter
        wrote on last edited by
        #3

        thanks drofnas can u help me in one more aspect As many of you may know, Windows Mobile 2003 Pocket PC does not actually close applications when you hit the little 'X' in the corner. It basically just minimizes it. I am working on an web application that requires a user to login (via a wireless network) whenever they start up the program. The problem that exists, is that if a user logs in and uses the system and then thinks that they closed it; another user could come along and start the program right up where the previous one left off under the previous user's username! Any suggestions? any help in this regard will be appreciated. saud

        D 1 Reply Last reply
        0
        • S Saud AKhter

          thanks drofnas can u help me in one more aspect As many of you may know, Windows Mobile 2003 Pocket PC does not actually close applications when you hit the little 'X' in the corner. It basically just minimizes it. I am working on an web application that requires a user to login (via a wireless network) whenever they start up the program. The problem that exists, is that if a user logs in and uses the system and then thinks that they closed it; another user could come along and start the program right up where the previous one left off under the previous user's username! Any suggestions? any help in this regard will be appreciated. saud

          D Offline
          D Offline
          Drofnas
          wrote on last edited by
          #4

          Here's some links that might come in handy for anyone that's planning on programming for Pocket IE: http://support.microsoft.com/default.aspx?scid=kb;en-us;q158479[^] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/ppc_dev.asp[^] The best idea I could come up with is to see is there is a way with in javascript that will allow you to see if the window has been minimized, if it has, just run some javascript to log the user out. But if there's no javascript available for that you will either have to have somesort of timeout on the page, say if the user doesn't do anything for 5 minutes automatically log them out. Or if this is an application that it's in the users best interest to logout, then you should just always have a logout button/link available to them, which is probably always a good thing to have. But I haven't really looked into all of the limitations of the javascript support with in Pocket IE. Sorry I couldn't be of more help.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups