Hi,
I am developing a plugin and have a quick question...I first developed my plugin as an individual 'webpage' and am now integrating (wrapping) it into a WP plugin. It all functioned correctly before WP and almost functions correctly now but I have run into an interesting issue. Anyways, to my question...is there some sort of issue in using a jQuery .post()
function from within the WP sidebar? I am trying to do this type of thing...
jQuery.post("php/draw_calendar.php",
{month: currentMonth, year:
currentYear - 2000, days:
daysInMonth}, function(data){
jQuery("#Calender").html(data);
jQuery( "#eventDialog" ).dialog({ autoOpen: false, resizable: false,
width: 300, minHeight: 200 });
jQuery( "#eventDialog" ).bind(
"dialogopen", function(event, ui) {});
});
Everything in the jQuery works fine except that it seems that the data returned from the file is never added to the HTML and all that is returned is 'This is a Variable'.
I think this may have to do something with the how the paths might work in jQuery and Wordpress but I am at a bit of a loss on what to do. I haven't seen any other info on this on the web so maybe I am just doing something dumb.
Thanks.