Title: wp_enqueue_script to include PV Output jsp
Last modified: August 20, 2016

---

# wp_enqueue_script to include PV Output jsp

 *  [bwharfe](https://wordpress.org/support/users/bwharfe/)
 * (@bwharfe)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wp_enqueue_script-to-include-pv-output-jsp/)
 * 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/](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.

 * 0 replies
 * 1 participant
 * Last reply from: [bwharfe](https://wordpress.org/support/users/bwharfe/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/wp_enqueue_script-to-include-pv-output-jsp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
