1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    15
    Vote Rating
    0
    anotine is on a distinguished road

      0  

    Default Problem with Javascript loaded dynamicaly through TabPanel l

    Problem with Javascript loaded dynamicaly through TabPanel l


    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
    Code:
    mgr.update(path.php, null);
    In the server the path.php leads to the inclusion of a Php file:

    Code:
    ob_start();
            include($this->_templateFile);
            echo(ob_get_clean());
    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

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,506
    Vote Rating
    54
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Humph! This is FAQing :wink: annoying....

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

    and many other such threads :!:

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    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!

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    15
    Vote Rating
    0
    anotine is on a distinguished road

      0  

    Default It works

    It works


    Thanks alot,
    I did not search in the right place! :oops:

  5. #5
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,506
    Vote Rating
    54
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    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?

Similar Threads

  1. problem with tabpanel
    By redy in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 9 Mar 2007, 6:15 AM
  2. problem within tabpanel
    By kd21 in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 8 Mar 2007, 2:16 AM
  3. Javascript Problem when drag/drop
    By TomTom in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 16 Feb 2007, 5:02 AM
  4. problem in my tabpanel
    By kd21 in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 5 Feb 2007, 5:47 AM
  5. tabpanel content and javascript
    By jbowman in forum Ext 1.x: Help & Discussion
    Replies: 8
    Last Post: 12 Sep 2006, 7:43 PM

Thread Participants: 2