• I have been trying for some time to implement a widget graph, there are two javascript files inc.jsp and graph.jsp. I have done loads of searching and reading and found a tutorial here useful: http://wp.tutsplus.com/tutorials/the-ins-and-outs-of-the-enqueue-script-for-wordpress-themes-and-plugins/ which produced the ‘code’ below which I put directly into a single page on my site (I only want it to appear on one page) but it isn’t working. Any help massively appreciated.

    <?php
    function load_my_scripts() {
    wp_register_script ('pvoutputinc', http://pvoutput.org/widget/inc.jsp);
    wp_register_script('pvoutputgraph', 'http://pvoutput.org/widget/graph.jsp?sid=9726), array ('pvoutputinc'), false, true,);
    wp_enqueue_script('pvoutputinc');
    wp_enqueue_script('pvoutputgraph');
    }
    add_action('init', 'load_my_scripts');
    ?>

    Regards

    Ben

The topic ‘wp_enqueue_script to include PV Output jsp’ is closed to new replies.