SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,033
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Which javascript modal window do you recommend being as best?

    Hi,

    We want to incorporate modal window pop ups that are 100% Javascript based in our Web site design. I have checked many different options for modal window, but cannot decide which one is the best option.

    Which modal window pop up option that is 100% Javascript do you suggest as the best choice and why?

    And when replying kindly provide a link to the modal window that you are suggesting. I mean a link to the page which would have a demo of it as well as the download code.

    Thank you.

    Anoox search engine volunteer

    www.anoox.com

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,705
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by WorldNews View Post
    We want to incorporate modal window pop ups that are 100% Javascript based in our Web site design. I have checked many different options for modal window, but cannot decide which one is the best option.
    What is meant by best? The least work? The least dependencies? The most flexibility?

    jQueryUI dialogs might do the job for you, but there might be as-of-yet unspecified reasons why they aren't suitable for you.

    So, you may want to look through some collections of modal dialog windows to weed out the ones that you definitely know aren't going to work for you.



    Once you've done that you can then let us know about the few that you have left remaining to choose from, so that we can give further advice from there.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,033
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi Chris,

    Well definitely not a Jquery based solution.

    As I noted, I think I did, for various reasons it need to be a 100% Javascript/CSS solution.

    As to your other mark, yes I actually did read through those 2 links and after reading through all their suggestions I thought to ask the Web site developer colleagues here in SP.

    Regards,


    Quote Originally Posted by paul_wilkins View Post
    What is meant by best? The least work? The least dependencies? The most flexibility?

    jQueryUI dialogs might do the job for you, but there might be as-of-yet unspecified reasons why they aren't suitable for you.

    So, you may want to look through some collections of modal dialog windows to weed out the ones that you definitely know aren't going to work for you.



    Once you've done that you can then let us know about the few that you have left remaining to choose from, so that we can give further advice from there.

    Anoox search engine volunteer

    www.anoox.com

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,151
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by WorldNews
    we want to incorporate modal window pop ups that are 100% Javascript
    Quote Originally Posted by WorldNews
    As I noted, I think I did, for various reasons it need to be a 100% Javascript/CSS solution.
    Just out of curiosity what percentage of JQuery is JavaScript?
    The only code I hate more than my own is everyone else's.

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,816
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by oddz View Post
    Just out of curiosity what percentage of JQuery is JavaScript?
    100% of jQuery is written in JavaScript.

    The reason for people deciding not to use it is that in order to use it you need to load the entire thing into your page even if you are only going to use a small part of it. That makes the page a lot bigger unnecessarily.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  6. #6
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,033
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Yes, I know " JQuery is JavaScript".
    But we do not want to load tons of JS that we are not going to use. And do not want to learn any language jQuery. So that is why we want a pure JS solution only, well with CSS.

    Quote Originally Posted by oddz View Post
    Just out of curiosity what percentage of JQuery is JavaScript?

    Anoox search engine volunteer

    www.anoox.com

  7. #7
    SitePoint Wizard WorldNews's Avatar
    Join Date
    Nov 2007
    Posts
    1,033
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    EXACTLY.

    SO what Modal Window code do you think is best? And to be exact a Modal Window that allows for filling in a form and of course that form to be submitted for form processing, although having processed via Ajax can be OK. Bur prefer Modal Window form to Standard form processing.

    Quote Originally Posted by felgall View Post
    100% of jQuery is written in JavaScript.

    The reason for people deciding not to use it is that in order to use it you need to load the entire thing into your page even if you are only going to use a small part of it. That makes the page a lot bigger unnecessarily.

    Anoox search engine volunteer

    www.anoox.com

  8. #8
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First off, since you haven't defined what you deem as "the best", you can receive biased opinion of people who have used modal dialogs.
    I've used quite a few, and I'll say that hands down - jQuery dialog is the best in my opinion.

    jQuery isn't that big and you can load it into your page from google pages.
    The other thing is that no matter what modal window you want to use, you need to use some logic the author provides which can fit to the category of learning new language, even tho it's only a few lines of code.

    The other thing is, if you have ever used css - it will take MINUTES to get acquainted with jQuery. If your reason for avoiding jQuery is that you don't want to learn a new language - why even bother with web development then?
    It takes less time to set up a modal window with jQuery UI than to post this topic and ask for opinion.


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
  •