View Full Version : Problem with Javascript loaded dynamicaly through TabPanel l

16 Nov 2006, 3:07 AM
Thanks in advance to anyone who can help me...

I have in a form A a YAHOO.ext.TabPanel.
I upload the content in the panel items dynamically via the UpdateManager of each Tab Panel Item

mgr.update(path.php, null);

In the server the path.php leads to the inclusion of a Php file:


In the _tempalteFile, i have a javascript code written in a <sript> tag.

The problem is once i uploaded the content, it behaves as if the javascript code is not evaluated, since i can not access to the functions, and variables declared in it?.
My first and ugly solution, was to move all the Javascript code in the Parent Form A, but it is not what i want. Who has a second solution?

Thank you Very much

16 Nov 2006, 3:29 AM
Humph! This is FAQing :wink: annoying....

See http://www.yui-ext.com/forum/viewtopic.php?t=796

and many other such threads :!:

16 Nov 2006, 3:32 AM
Yep, it's time for a FAQ. Great idea, it will integrate nicely in the documentation center too! Would you (or someone else if not?) like to help make a FAQ of the most frequently asked questions? That would help me a TON!

16 Nov 2006, 3:34 AM
Thanks alot,
I did not search in the right place! :oops:

16 Nov 2006, 3:46 AM
Yes, I'll contribute to it. I'll start with the "My JS is not executing when loaded dynamically" question, and go on to the "my callback function can't see the right 'this' object" question!

Shall I PM FAQ entries to you through the forum?