-
7 Nov 2006 9:19 AM #1
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:
These are my includes:Code:YAHOO.util.Event.on(window, 'load', initUI);
Am I missing the proper util.js file? If so, where is it located?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>
Thanks in advance for any help offered.
-
7 Nov 2006 1:47 PM #2
first: this is how Jack has done the layout initialization in his examples
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:YAHOO.ext.EventManager.onDocumentReady(Layout4.init, Layout4, true);
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.Code:script type="text/javascript" src="javascripts/yui/build/yahoo/yahoo-min.js"></script> // opening < removed so it would show up
Hopefully this helps
Similar Threads
-
javascript compression
By in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 16 Oct 2009, 4:53 AM -
Javascript Editor
By thameema in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 28 Aug 2008, 11:50 AM -
multilanguage in javascript
By mdissel in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 12 Oct 2007, 4:56 AM -
South Panel Auto hide & East Panel Prop list & C. Pa
By Mohammed in forum Ext 1.x: Help & DiscussionReplies: 4Last Post: 27 Mar 2007, 11:46 PM -
About security and javascript
By franklt69 in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 22 Mar 2007, 3:43 PM


Reply With Quote