Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: popup window, modal or other?

  1. #1
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Question popup window, modal or other?

    I was asked by a friend to redo his website for him. On this page or references a popup window opens, when you click on one of the logos, with an image with the reference letter.

    The old site was html 4 and now I have it almost all set and ready to have him use in html5 responsive. What is the best option for me to use? and to make sure that it's also going to be mobile ready?

    This is in the header now
    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=675,height=465,left = 110,top = 45');");
    }
    // End -->
    </script>
    this is the html code for each logo
    Code:
    <a href="javascript:popUp('ltrs/isleta.htm')"><img src="photos/logo/isleta.jpg" alt="Isleta Casino & Resort" width="229" height="75" border=0></a>
    http://www.pscompetitiveedge.com/ltrs/isleta.htm is where the image reference letter is located for the popup window.
    Last edited by mlegg; 03-19-2015 at 11:43 PM. Reason: {/code]

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    On a mobile device, a popup window will show in a new tab, whereas the look of a modal window (iframe) will be identical to its look on a desktop (if you do it the right way).
    Take a look at this (Dutch) site. When you click on 'agenda' or any other button at the bottom, you will see a modal window (desktop and mobile device). When you click on 'terpen en wierden' (text-link, top left of the page), you will see a popup window (desktop) or a new tab (mobile device).
    From the perspective of responsiveness, there's hardly a solid criterion in favor of one of both possibilities.

  3. The Following User Says Thank You to molendijk For This Useful Post:

    mlegg (03-20-2015)

  4. #3
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    Leaving it the way it is will obviously save me a lot of time.
    thanks

  5. #4
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

  6. #5
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    On a mobile device, a popup window will show in a new tab
    thats if they open at all. Sadly the way you are currently generating the popups do not work in touch devices. I've only tested on iPhone but all you get (even when you know where to tap) is a momentary highlight but then nothing happens -- not via short tap or either via a long hold where you'd usually get the prompt to open in a new tab.

    Popups like this are unfortunately not friends of mobile. The safest bet would be to simply open the file via a standard link to the image or to another web page. Alternatively, you can play around with this image popup modal to see if that works in your situation. http://fofwebdesign.co.uk/template/_...odal-popup.htm
    The image will resize but is zoomable to some degree (though probably not enough to make a scanned letter big enough to read) but you might be able to get a reasonable result of you edit/remove background:cover; for the popup img in the CSS

    Arie, as for you Iframe popup script on mobile/iPhone, the way it behaves is that the first tap does nothing, except for the momentary highlight, so then I tap it again and that closes the whole window (completely closing your site). Maybe you can take a look at it for an alternative method on touch devices?
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  7. #6
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Just wondering Arie - is the Dutch site you linked to still in production? It's just that I can't get any of the links/buttons/menus to work in iPhone or iPad (haven't tested in anything else). I tap them and nothing happens. If I long hold the "agenda" link (which is overlapping text BTW) I get a prompt to save the image. Unfortunately the page doesn't scroll either (up/down or sideways). Here's a screen capture so you can see http://fofwebdesign.co.uk/template/_...dutch-site.jpg
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  8. #7
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Beverleyh, that's odd, everything works well on my ASUS-tablet. Would a refresh solve the problem on your devices?

  9. #8
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Quote Originally Posted by Beverleyh View Post
    Just wondering Arie - is the Dutch site you linked to still in production? It's just that I can't get any of the links/buttons/menus to work in iPhone or iPad (haven't tested in anything else). I tap them and nothing happens. If I long hold the "agenda" link (which is overlapping text BTW) I get a prompt to save the image. Unfortunately the page doesn't scroll either (up/down or sideways). Here's a screen capture so you can see http://fofwebdesign.co.uk/template/_...dutch-site.jpg
    Beverleyh, this afternoon I went to a shop where they sell iPhones, iPads, tablets, desktops and much more just to test the site (which is still in production, yes). Everything seemed to work fine on all devices. So I'm amazed to hear that the links/buttons/menus don't work on your devices. (Sometimes I had to make the screen a little bit wider in order for the links to work).
    Last edited by molendijk; 03-20-2015 at 04:47 PM. Reason: spelling

  10. #9
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Sorry Arie but the links/buttons/menu just refuse to work for me. I've tried on two iPhones and an iPad, using Chrome, Mercury and Dolphin browsers
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  11. #10
    Join Date
    Jan 2009
    Location
    NH
    Posts
    675
    Thanks
    98
    Thanked 26 Times in 26 Posts

    Default

    Arie the page works for me with Chrome on my Samsung Galaxy S4 phone. When I click on the link it give me a window that says
    the page at wiederland.nl says:th windoe you are abiut to open doesn't hav back and forward but you can use the keyboard:
    -press the BACKSPACE button or ALT + left arrow for going back in the newly opened window.

Similar Threads

  1. PopUp Calendar with dhtml modal window
    By Pats2KDynasty in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-18-2011, 03:13 PM
  2. Replies: 0
    Last Post: 03-19-2010, 12:24 PM
  3. close of a Modal window, open a new Modal window in same function
    By dibakarmca in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 01-20-2010, 05:26 AM
  4. DHTML Modal window: close window when veil is clicked?
    By Luterin in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 10-10-2007, 05:14 PM
  5. a Modal popup window without using the showModalDialog?
    By codeexploiter in forum JavaScript
    Replies: 3
    Last Post: 12-06-2006, 06:31 AM

Bookmarks

Posting Permissions

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