I was curious, what are the limitations of using a jquery dialog box? Does it work the same as a window, as in if I wanted to put a small form in it. Or does it just serve as a text based window?

I am unsure on what is possible with it.

2 answers

danwellman 5600
1
point
This was chosen as the best answer

You should be able to put whatever you would like into a jQuery dialog box. The jQuery UI dialog box allows forms and other content such as text, images, etc...

Answered over 6 years ago by danwellman
  • Great to know, I guess my extended question that maybe you could answer is, if you are able to do all this with a dialog box, is there a reason to use this instead of opening a new window with an anchor tag? Is one better then the other? Eric over 6 years ago
  • Efficiency and accessibility. JavaScript dialogs can be laggy and clumsy on older computers compared to a new window. Plus, to use a jQuery UI dialog, you need to link to the jQuery UI stylesheets as well as jQuery and jQuery UI, that's an additional 100kb~ of data to achieve what could just be done with target="_blank". Also, not every user has JavaScript turned on; on the other side of that coin, most users have pop-up blockers. Zack Doherty over 6 years ago
1
point

jQuery UI dialogs essentially give you a floating <div> that you can put whatever you want into. I've put forms, YouTube <embeds>, images, and just plain text in them.

I'm not sure if this is right, but you might be getting this confused with something like Lightbox or Fancybox, where they specifically say, for example, "Images, Flash and Text are the only supported formats." The reason for that is they give you much richer controls over the content in the box than the jQuery UI Dialog. It's great that's it's just a floating <div>, but that's also its downside: it doesn't offer "slideshow" navigation or something along those lines.

Answered over 6 years ago by Zack Doherty