views:

166

answers:

2

i am attempting to use the jquery UI dialog script in my wordpress theme admin page. everything is straight from the UI demo and yet i end up with a dialog box that looks like : http://flic.kr/p/8gAPt6 notice the dialog is not popped up over anything and instead buried in bottom corner, just before the closing body tag.

the UI dialog script is queued properly w/ wp_enqueue_script as its shows up in the source code as does jquery (from google API) and the UI core.

jQuery(document).ready(function($) {
    $("#dialog").dialog();
}); //end onload stuff

then i have this in my options page.

<div id="dialog" title="Basic dialog">
<p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>

Any help would be much appreciated. For something that claims to be so easy I am having a hella time w/ these UI tools. Is there something easier for using w/ wordpress? I already tried the tabs from jquery tools (flowplayer) and that just made me want to break something. now i have tabs from UI Tools and want to break heads now that i am on to dialogs and buttons.

+4  A: 

I don't know if it makes any difference (because I'm not in the right place to do any testing at the moment), but maybe try the code exactly as it is on the jQuery UI site:

$(function() {
   $("#dialog").dialog();
});

Best of luck! ^.^

Neurofluxation
thanks, but that doesn't solve it. i've read that you have to use jQuery(document).ready(function($) { }); to wrap jquery functions in WP and have found that to be true w/ the couple other things i have managed to make work
helgatheviking
A: 

May I asked how you resolved this? I also noticed all of the jQuery dependencies, but wasn't sure how to include the full jQuery UI without conflicting with any already included files.

attepted_nerd
in the end i went w/ queuing up everything from the google api. there were only 1 or 2 things i was NOT using, so it was easier to do everything all in one shot.wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');wp_enqueue_script('jq-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.js ');wp_enqueue_script('jq-ui-min', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js' );
helgatheviking
I see. Thank you.
attepted_nerd