admin管理员组文章数量:1330159
Im trying to find out a good JavaScript library that can create a nice "inner-window" popup within a page on my site.
I would like to not have to worry about screen positioning (i.e. dont have to calcuate if the size of the window will be off screen, etc...), but just make a new pop-up that has content in it.
I'll be using .NET 3.5 ASP.NET (maybe MVC, havent started yet), I know JQuery has great support, but from what I have seen, it doesnt have this type of widget feature.
Please note, I do not want to use "frames" in any way, shape, or form! But rather the floating div style approach (or similar).
Thanks heaps! Mark
Im trying to find out a good JavaScript library that can create a nice "inner-window" popup within a page on my site.
I would like to not have to worry about screen positioning (i.e. dont have to calcuate if the size of the window will be off screen, etc...), but just make a new pop-up that has content in it.
I'll be using .NET 3.5 ASP.NET (maybe MVC, havent started yet), I know JQuery has great support, but from what I have seen, it doesnt have this type of widget feature.
Please note, I do not want to use "frames" in any way, shape, or form! But rather the floating div style approach (or similar).
Thanks heaps! Mark
Share Improve this question asked Oct 14, 2008 at 2:56 MarkMark 15k17 gold badges102 silver badges161 bronze badges5 Answers
Reset to default 3Floating containers, panels and dialogs:
For dialog boxes and windows, perhaps a YUI module would be a good solution.
Modal Boxes
If you aren't a javascript programmer, and you're interested in a more-elaborate modal box, there are jQuery plugins offering the modal lightbox effect.
Sidenote: There are many libraries offering this kind of functionality, but if the box itself is the only piece you need, keep in consideration that some libraries will include many things you aren't using. If you're careful to use only the packages you need, you can keep your page nice and lean.
Sidenote: If you're fairly well-versed with javascript, or wish to bee so, remember that you can always write your own. It's mon for people in the javascript world to turn straight to libraries. Libraries are an important part of the modern javascript landscape, but sometimes they bee a crutch for developers. Writing a few front-end pieces yourself is a great way to dive into front-end development.
I have used one called iBox and it has worked well.
If you are already using jQuery then you might want to check out these two options.
Have you looked at the Dialog widget for JQuery?
http://docs.jquery./UI/Dialog
Demo at the bottom. Don't worry about the ugly (IMHO) colours, they can be styled easily enough.
Thanks for the help so far, I have just taken a look at light box, and although very nice, I was hoping for a non-page-blocking library, these all seem to (at a first glace) grey-out the rest of the page, I was hoping for less of this, and more just an inline content based window that does not block the rest of the page.
Check Control.Window it's based on Prototype.
本文标签: netJavaScript library to create divstyle window within pageStack Overflow
版权声明:本文标题:.net - JavaScript library to create div-style window within page - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742252205a2440971.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论