« Return to Thread: YAHOO is not defined problem

Re: YAHOO is not defined problem

by tssha :: Rate this Message:

Reply to Author | View in Thread

--- In ydn-javascript@..., "ramkumarez" <ramkumarez@...>
wrote:

>
> Hi,
>
> I am new to YUI and playing around with it. when i try to build an
> example of Menu control, it says YAHOO is not defined in Fire Fox error
> console.
>
> Could some one please help me out?
>
> Following are the code snippet
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
>      <link rel="stylesheet" type="text/css"
> href="H:\rk_eclipse_workspace\yui\yui\build\fonts\fonts.css">
>      <link rel="stylesheet" type="text/css"
> href="H:\rk_eclipse_workspace\yui\yui\build\reset\reset.css">
>      <link rel="stylesheet" type="text/css"
> href="H:\rk_eclipse_workspace\yui\yui\build\menu\menu.css">
>
>      <script type="text/javascript"
> src="H:\rk_eclipse_workspace\yui\yui\build\yahoo\yahoo.js"></script>
>      <script type="text/javascript"
> src="H:\rk_eclipse_workspace\yui\yui\build\event\event.js"></script>
>      <script type="text/javascript"
> src="H:\rk_eclipse_workspace\yui\yui\build\dom\dom.js"></script>
>      <script type="text/javascript"
>
src="H:\rk_eclipse_workspace\yui\yui\build\container\container_core.js">\
> </script>
>      <script type="text/javascript"
> src="H:\rk_eclipse_workspace\yui\yui\build\menu\menu.js"></script>

Try reordering the script load sequence to:
* yahoo.js
* dom.js
* event.js

Or use the concatenated file "yahoo-dom-event.js".

Does that resolve the error?

Regards,
Thomas

 « Return to Thread: YAHOO is not defined problem