[jQuery] jqModal to get info from database fails

[jQuery] jqModal to get info from database fails


please...
could someone check why this simple code fails when trying to open in a
jqModal window?
Or at least someone with experience in jqModal tell me if I'm losing the
time trying to connect the new window with data coming from a database?
Please,you can take a look at:
http://edit3.csic.es/fitxers/xmls/jqModals.html
I think it has no sense to show all the files, but if someone need them,
tell me. Any help will be very appreciated.
I was wondering why doesn't the new HTML file listen the $().ready function
when comes from a jqModal but yes when we open a pop up window... because
jqModal in fact is not a window, of course. So, maybe any other event that
this new jqModal can listen and in consequence will be abel to load all the
ajax files it needs?
jqModals.html
$().ready(function() {
    
$('#ex2')
.jqm(
    {
onLoad: load=function(h){
                    //selectChain() is the function that executes an ajax                     
//request to load data from database
//I think it should work, but I've
also tried many other possibilities...
                    //#categorySelect is the form ID
                    $('#categorySelect',this).selectChain();
                    
                    result=$('#categorySelect',this).selectChain();
                    console.info(result);
                    },
         //we load the HTML (it already has the code to load data, why doesn't
do it????)
     ajax: 'select_forms.html',
    
trigger: 'a.ex2trigger'
        // When a trigger is clicked, the window it is assosiated with is
displayed.
                        });
Thanks a lot,
Pere
--
View this message in context: http://www.nabble.com/jqModal-to-get-info-from-database-fails-tp14718959s27240p14718959.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.