Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

edowney on "Newbie question about java scripts in plugins"

$
0
0

So I just started learning to develop wordpress plugins (I have over 10 years experience with ASP.Net & c# and am a user of wordpress) this week and have made some decent progress. I'm to the point where I need to start creating some admin pages (which I figured out how to do).

The problem I seem to be running into is that I have a datetimepicker component I purchased as a suite of javascript controls. The demo works fine on my desktop but when I try to implement it in wordpress (which is also installed locally) the javascript doesn't want to run for the picker. To make sure I was actually loading the js file I put an alert at the start of the file and it got picked up when I refreshed the wordpress admin page. I used wp_enqueue_script on the admin_enqueue_scripts action. Any suggestions or tutorials would be greatly appreciated - thanx!


Viewing all articles
Browse latest Browse all 8245

Trending Articles