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

      0  

    Default Javascript Tab Panel

    Javascript Tab Panel


    I'm very interested in the work you've done with the JS Tab Panel, but I've not been able to figure it out yet.

    I began by downloading your source code from (http://www.jackslocum.com/yui/2006/0...-for-yahoo-ui/) and downloading all the files to the appropriate location on the server. I've commented out the second panel to keep this example as simple as possible.

    I have a single error which is preventing the UI from displaying:
    "YAHOO is not defined"

    Which I believe is a result of this line:
    Code:
    YAHOO.util.Event.on(window, 'load', initUI);
    These are my includes:
    Code:
    <link>
    <script>yahoo.js</script>
    <script>dom.js</script>
    <script>events.js</script>
    <script>dragdrop.js</script>
    <script>animation.js</script>
    <script>connection-min.js</script>
    <script>yui-ext.js</script>
    <script>util.js</script>
    Am I missing the proper util.js file? If so, where is it located?

    Thanks in advance for any help offered.

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    zpao is on a distinguished road

      0  

    Default


    first: this is how Jack has done the layout initialization in his examples
    Code:
    YAHOO.ext.EventManager.onDocumentReady(Layout4.init, Layout4, true);
    second: that's not the proper way to load JS into the document, maybe you just over simplified it to make it easier to see, but if not here's the right way...
    Code:
    script type="text/javascript" src="javascripts/yui/build/yahoo/yahoo-min.js"></script>
    // opening < removed so it would show up
    The problem you're having comes from the fact that the Yahoo! JS library isn't being loaded at all, not that the util.js file isn't being loaded (I'm not loading it at all). Check to make sure that the files are being loaded into the document like above. Also make sure you have your directories right. I kept everything in the directories they came as opposed to throwing everything into 1 directory.

    Hopefully this helps

Similar Threads

  1. javascript compression
    By in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 16 Oct 2009, 4:53 AM
  2. Javascript Editor
    By thameema in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 28 Aug 2008, 11:50 AM
  3. multilanguage in javascript
    By mdissel in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 12 Oct 2007, 4:56 AM
  4. South Panel Auto hide & East Panel Prop list & C. Pa
    By Mohammed in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 27 Mar 2007, 11:46 PM
  5. About security and javascript
    By franklt69 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 22 Mar 2007, 3:43 PM

Thread Participants: 1