« Return to Thread: YAHOO is not defined problem

Re: YAHOO is not defined problem

by ramkumarez :: Rate this Message:

Reply to Author | View in Thread

--- In ydn-javascript@..., "tssha" <tsha@...> wrote:
>
> --- 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
>

Hi Thomas,

Thank you so much for your prompt response. Much appreciated.

I tried to re-order yahoo.js, dom.js and event.js. it did not solve
the problem. i either tried to put yahoo-dom-event.js also

now i am getting a text saying "submenu-collapsed. click to expand
sub-menu and in Firefox the display is getting screwed up.

Could you please help me out, as i am really struggling out with this?

Is there any compatible issues with browser?

My m/c setup is as follows:

I have downloaded 2.2.2 YUI
Win XP
IE 6
Fire Fox with Firebug installed


Thanks,
Ramkumar

 « Return to Thread: YAHOO is not defined problem