[TYPO3-english] load another CE using AJAX on a TRIGGER

jaco graaff jaco at spacexplorer.co.za
Thu Dec 19 05:30:33 CET 2013


------------------------------------------------------------------------------------------------------------------
$("div#logoContBox").qtip(
            {
/*
some other code
*/
events: {
                    show: function(event, api) {
//show the loader
$eMailDialogue =  $("#qtip-EmailUsDialogue-content");
                        //TODO: relace with nicer fading loading function
                        $eMailDialogue.html("<p>loading...</p>");
                        //add the ajax content
$eMailDialogue.load( "http://url/index.php?id=42&type=600 
div.Tx-Formhandler", function() {
                            formHandlerEmailForm();

});
}
/*
some other code
*/
});


//and now call the formhandler function on successful ajax load
function formHandlerEmailForm(){
    //TODO: jaco - this must be dynamically generated and not hardcoded into 
my main javascript file
    jQuery(function() {
        jQuery(".form-invalid").attr("disabled", "disabled");
        function submitButtonClick(el) {
..
..
..
..
-------------------------------------------------------------------------- 



More information about the TYPO3-english mailing list