> Gee, I'm such a newbie I cannot make approach one work ..

All  you  need  to  do  is  create a Tips instance after you do the jQ
injection  into  the  DOM.  Right  now, you are only creating the Tips
beforehand.  So  it naturally (given the way this class works, AFAICS,
it's natural) doesn't "grandfather" in the injected elements.

[1] Before the jQ.ajax():

                        var tipz = [];


                        //create the tooltips for static DOM els
                        tipz.push ( new Tips('.tipz',{
                                className: 'tipz',
                                fixed: false,
                                hideDelay: 50,
                                showDelay: 50
                        })
                        );


[2]  Change  jQ().html().appendTo()  to  inject div with class="tipz2"
instead of "tipz".

[3] After appendTo(), still inside jQ.ajax().

                        //create the tooltips for just-injected els
                        tipz.push ( new Tips('.tipz2',{
                                className: 'tipz',
                                fixed: false,
                                hideDelay: 50,
                                showDelay: 50
                        })
                        );


The  concept  here  is a small array of Tips objects. I'm assuming you
need  some core set of Tips before you inject the dynamic elements. If
you don't, then just discard the first tipz.push.

--Sandy


P.S. Now I know why people hate jQ syntax! Guess we need to get MT XML
up to snuff. Or you could move to JSON here -- any reason not to?


------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
e-mail: [email protected]
------------------------------------

Reply via email to