On Fri, Aug 28, 2009 at 12:40 PM, ken <[email protected]> wrote: > > Nothing is working, nothing is where its supposed to be... > > I just want to use the dialog() functionality. I found the demo @ > http://jqueryui.com/demos/dialog/ > > For "dependencies", the only requirement looks to be "UI Core". > Downloaded UI Core (plus about 1000 other files that I have no idea as > to their purpose).
That dependency means UI Dialog depends on UI Core. But you need UI Dialog as well. If you only downloaded UI Core, you haven't downloaded any widgets, just the core of all the widgets. You can see that in the source code of this default dialog demo: http://jqueryui.com/demos/dialog/default.html ... <script type="text/javascript" src="../../jquery-1.3.2.js"></script> <script type="text/javascript" src="../../ui/ui.core.js"></script> <script type="text/javascript" src="../../ui/ui.draggable.js"></script> <script type="text/javascript" src="../../ui/ui.resizable.js"></script> <script type="text/javascript" src="../../ui/ui.dialog.js"></script> ... So that includes jQuery (a dependency of jQuery UI), UI Core (a dependency of UI dialog), UI Draggable and UI Resizable (optional dependencies of UI Dialog), and finally, UI Dialog itself. > No readme or anything, so I dig through and finally find ui.core.js. > Link it into my test page. Try to run $(foo).dialog() and I get > "object doesn't support this property or method". Console tells me the > jQuery.ui exists though. Again, I think this may be because you failed to download UI Dialog? > > Found the "getting started" page here: > http://jqueryui.com/docs/Getting_Started > > Jumped to the section "After downloading: Intro to using jQuery UI". > It suggests there should be an index.html in the root directory. There > is not. Thanks for finding this bug. I created a ticket for it here http://dev.jqueryui.com/ticket/4811 Sorry we didn't find it first. It looks like we don't include the index.html page when you've only selected UI Core. Normally this index page shows a preview of each widget you've selected. If you haven't selected any plugins, there are no widgets to show. But in any case, we should have an index.html, since the guide mentions one. That's why I added the ticket above. > > I found an index.html in a demos directory, although after opening the > page in a browser I can clearly see that there are no demos included > under Interactions, Widgets, and Effects. Links under "About jQuery > UI" and "Theming", although looking like they should open in the > middle framed area, actually open in a new tab (FF 3.5). I tried > opening it in IE 8, but clicking a link first gave a $.datepicker > error, then it somehow forward to the jQuery UI website. Nice demo? > The page is completely broken and doesn't work in the latest releases > of the 2 most popular browsers. > > I played with the theme thingy a bit more and then downloaded core > again, and now there is a CSS directory.... still no index.html in the > root, and still no functioning $().dialog(). > > Getting frustrated, I opened ui.core.js in my editor, did a ctrl-f > search for "dialog", and found no references. If you made it to ui.core.js, you made it to a file that's intended for development purposes. Or for a deployment where you include each file individually, such as ui.core.js ui.tabs.js on any pages that use only tabs, but ui.core.js ui.dialog.js on any pages that use only dialog. Each file contains only the code for that plugin. For getting started, or for always including all the components you're interested in on every page, you should find a single file called jquery-ui-1.7.2.custom.min.js in the js folder. If you've selected UI Core and UI Dialog, this will contain both those files in one, so you only have to include it, after jquery.js. Once you have an index.html, it will demonstrate this. > I honestly was just trying to test out what I thought was one of the > more basic examples (no extra "widgets" or anything required), and not > a single thing is like the documentation says and nothing is even > close to working. > > Am I doing something fundamentally, egregiously...wrong? Or is this > one of those projects where its every-man-for-himself-to-get-this- > stuff-working? What gives? This may be a simple case where the documentation made it seem harder than it really is. The download builder has all the dependency logic built-in. If you go to the download builder and all items are checked, but you only want dialog, click 'Deselect all components', then click Dialog. It will automatically check UI Core as a required dependency. If you want your dialog to be draggable and resizable, you'll have to check those yourself, as those are optional. The development-bundle/demos and development-bundle/docs folders are only populated with demos and docs for those plugins you've selected. So you won't get the demos and docs for accordion, tabs, progressbar etc, if you've only selected dialog. Good luck, and let us know how you make out with another run. - Richard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
