The MU forums have moved to WordPress.org

thickbox not queueing? (7 posts)

  1. delayedinsanity
    Member
    Posted 14 years ago #

    wp_enqueue_script('thickbox');

    Doesn't seem to do anything?

  2. delayedinsanity
    Member
    Posted 14 years ago #

    I guess that means its working for everybody else? :)

  3. delayedinsanity
    Member
    Posted 14 years ago #

    I have to be missing something obvious here. I tried the following to no avail,

    function add_scripts ()
    {
        wp_enqueue_script('jquery');
    }
    
    add_action('admin_print_scripts', 'add_scripts');

    Even though I would suspect jquery would already be loaded on most admin pages, it doesn't seem to work. In order for my ajax to run, I have to manually add jquery with,

    wp_enqueue_script('jquery-custom', '/wp-content/mu-plugins/accounts/lib/js/jquery.js', '', '1.3.2');

    Same thing with jquery-ui-core. It seems none of the default handlers are working for me, and it makes me feel a touch handicapped. I know my parents drank, but seriously...

  4. finchen
    Member
    Posted 14 years ago #

    Hi,

    I have the same problem with thickbox.

  5. eddihughes
    Member
    Posted 14 years ago #

    im having the same problem, I can't figure out what seems to be the issue

  6. rfauster
    Member
    Posted 14 years ago #

    I am having the very same problem..

    When I am looking at my source code, some handles get loaded just at the END of the Page which will prevent calls using these js to fail.

    I am doing

    function bp_enqueue_jquery() {
    	wp_enqueue_script( 'jquery');
    	wp_enqueue_script( 'thickbox' );
    
    }
    add_action( 'template_redirect', 'bp_enqueue_jquery' );

    , jQuery gets loaded in the HEADER Section and Thickbox just before </body> which is too late.

    This must be a bug.. the same applies to jquery-ui-dialog

    Does anybody have a solution about this!?

  7. rfauster
    Member
    Posted 14 years ago #

    Nobody?

About this Topic

  • Started 14 years ago by delayedinsanity
  • Latest reply from rfauster