GabrielJT
Forum Replies Created
-
Forum: Plugins
In reply to: Calendar Scroll with AjaxI got it now ;D
Forum: Hacks
In reply to: Calendar Scroll with AjaxWell I’ve had some advances!!
I was able to send the new interval value via ajax, process the calendar with the new value and return it with all the html.
But how do i override the content of the div calendar with the response?
jQuery.post(
// see tip #1 for how we declare global javascript variables
MyAjax.ajaxurl,
{
// here we declare the parameters to send along with the request
// this means the following action hooks will be fired:
// wp_ajax_nopriv_myajax-submit and wp_ajax_myajax-submit
action : ‘myajax-submit’,// other parameters can be added along with “action”
intervalo : 1
},
function( response ) {
alert( response );
}
);The alert brings up all the html code of the next month, just need to put this in the calendar div overriding the previous month..
Thanks!!
Forum: Plugins
In reply to: Calendar Scroll with AjaxWell I’ve had some advances!!
I was able to send the new interval value via ajax, process the calendar with the new value and return it with all the html.
But how do i override the content of the div calendar with the response?
jQuery.post(
// see tip #1 for how we declare global javascript variables
MyAjax.ajaxurl,
{
// here we declare the parameters to send along with the request
// this means the following action hooks will be fired:
// wp_ajax_nopriv_myajax-submit and wp_ajax_myajax-submit
action : ‘myajax-submit’,// other parameters can be added along with “action”
intervalo : 1
},
function( response ) {
alert( response );
}
);The alert brings up all the html code of the next month, just need to put this in the calendar div overriding the previous month..
Thanks!!