Loading ...
Sorry, an error occurred while loading the content.

RE: [ydn-javascript] Why does BHM example not style calendar orBHM work?

Expand Messages
  • Karr, David
    Duh, even simpler than that. I forgot the class setting on the body. Thanks.
    Message 1 of 3 , May 2 4:48 PM
    • 0 Attachment
      Duh, even simpler than that. I forgot the class setting on the body.
      Thanks.

      > -----Original Message-----
      > From: ydn-javascript@yahoogroups.com
      > [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Adam Moore
      > Sent: Friday, May 02, 2008 3:18 PM
      > To: ydn-javascript@yahoogroups.com
      > Subject: Re: [ydn-javascript] Why does BHM example not style
      > calendar orBHM work?
      >
      > On Fri, May 02, 2008 at 11:21:17AM -0700, Karr, David wrote:
      > > I'm stepping through the "Learn YAHOO" book. I'm on the
      > BHM chapter.
      > > The first example is a simple example using Calendar with BHM. I
      > > entered everything for the example carefully, but when I ran the
      > > example on Tomcat/Firefox (same behavior with IE6), the calendar
      > > showed up unstyled (it looks like a calendar with links for
      > the days,
      > > but no styling). I also noticed that the BHM functionality didn't
      > > appear to be happening. Firebug doesn't present any warnings or
      > > errors. I had run Calendar examples earlier successfully
      > (that don't use BHM).
      > >
      > > I then went to the source download for the book and created
      > a new page
      > > and pasted in the sample code directly and tested that. Exact same
      > > behavior. I also tried changing the hardcoded 2.4.1 path to 2.5.1,
      > > with no change to the behavior.
      > >
      > > What am I missing?
      > >
      > > The following is the page pasted directly from the book
      > (but changed
      > > to
      > > 2.5.1):
      > > ---------------
      > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      > > "http://www.w3.org/TR/html4/loose.dtd">
      > > <html lang="en">
      > > <head>
      > > <meta http-equiv="content-type" content="text/html;
      > charset=utf-8">
      > > <title>YUI Browser History Manager Utility Example</title>
      > > <script type="text/javascript"
      > >
      > src="http://yui.yahooapis.com/2.5.1/build/yahoo-dom-event/yahoo-dom-ev
      > > en
      > > t.js"></script>
      > > <script type="text/javascript"
      > >
      > src="http://yui.yahooapis.com/2.5.1/build/calendar/calendar-min.js"></
      > > sc
      > > ript>
      > > <script type="text/javascript"
      > >
      > src="http://yui.yahooapis.com/2.5.1/build/history/history-min.js"></sc
      > > ri
      > > pt>
      > > <link rel="stylesheet" type="text/css"
      > > href="yui/build/calendar/assets/skins/sam/calendar.css">
      > > <link rel="stylesheet" type="text/css" href="bhmCalendar.css">
      >
      > I see you are using yahooapis for the script files, but local
      > references to the css. You should make sure that these two
      > files exist in the location you have specified (chances are
      > you need to change the calendar.css reference to the
      > equivalent path on yahooapis).
      >
      > -Adam
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.