Hi Oliver!
My Problem is, i enabled cforms tracking options, which shows all form submissions. Which i can see by clicking the Tracking link under cforms2 menu on wp-admin.
When i click view records option, i get a details page loaded via AJAX. I have a button in that loaded page which sends a customized email to the visitor who submitted the submission.
I want to use jQuery.ajax() method as the buttons click handler to perform the task. But i cannot access the button. In normal condition, i would do this, in the "success" function in $.ajax() -
jQuery('#my_button_id').click
(
function()
{
jQuery.ajax({
// AJAX options here
});
}
);
so that i can gain access to the button element and bind the click event to it.
I have found that "cf_tracking_view" function loads the detalils via AJAX, and i assume that u have used the jQuery AJAX method to implement the functionality.
If my assumptions are right , i can simply put my buttons click handler in the ajax calls success function and get the job done. Problem is i cand find the implementation of cf_tracking_view
If this is nnot possible, can u suggest anothe way by which i can access an element which is loaded via ajax?
Thanks,
Anjan