Enqueue Javascript Correctly for 3.5

I am trying to create tabs for admin settings page in wp, but I think I’m doing it wrong. The example below shows how I did it but I don’t know how to change this to use it correctly with no conflict ie. $. function my_plugin_load_js() { wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, ‘http://code.jquery.com/jquery-1.8.3.js’); wp_enqueue_script(‘jquery’); wp_deregister_script(‘jquery-ui-core’); wp_register_script(‘jquery-ui-core’, ‘http://code.jquery.com/ui/1.9.2/jquery-ui.js’); wp_enqueue_script(‘jquery-ui-core’); … Read more

jquery-ui-dialog – How to hook into dialog close event

I am using the jquery-ui-dialog plugin I am looking for way to refresh the page when in some circumstances when the dialog is closed. Is there a way to capture a close event from the dialog? I know I can run code when the close button is clicked but that doesn’t cover the user closing … Read more

jQuery UI Dialog – missing close icon

I’m using a custom jQuery 1.10.3 theme. I downloaded every straight from the theme roller and I have intentionally not changed anything. I created a dialog box and I get an empty gray square where the close icon should be: I compared the code that is generated on my page: <div class=”ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix”> … Read more