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

Re: Mozilla FireFox 3.0b4

Expand Messages
  • amina_1945
    Thanks Eric its working. ... href= http://yui.yahooapis.com/2.5.2/build/calendar/assets/skins/sam/calendar.css ...
    Message 1 of 3 , Sep 26, 2008
      Thanks Eric its working.

      --- In ydn-javascript@yahoogroups.com, Eric Miraglia <miraglia@...> wrote:
      >
      > amina_1945,
      >
      > There are at least a couple of problems in your code.
      >
      > First, you are including a number of YUI components two or three
      > times. Try using the Dependency Configurator to choose just the
      > components you want. For example, if all you need is Calendar, then
      > you would include:
      >
      > <!-- css -->
      > <link rel="stylesheet" type="text/css"
      href="http://yui.yahooapis.com/2.5.2/build/calendar/assets/skins/sam/calendar.css

      > ">
      > <!-- js -->
      > <script type="text/javascript"
      src="http://yui.yahooapis.com/combo?2.5.2/build/yahoo-dom-event/yahoo-dom-event.js&2.5.2/build/calendar/calendar-min.js

      > "></script>
      >
      > Second, your Calendar constructor doesn't include all the required
      > arguments. The first argument is a string for the ID that will be
      > assigned to the new element created for the Calendar instance. The
      > second argument is the string ID of the element into which the
      > Calendar should be rendered (ie, an existing element on the page).
      >
      > With those two fixes, your code works --
      >
      > http://ericmiraglia.com/yui/demos/calcontainer2.php
      >
      > Regards,
      > Eric
      >
      >
      > On Sep 26, 2008, at 10:16 AM, amina_1945 wrote:
      >
      > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
      > > "http://www.w3.org/TR/html4/strict.dtd">
      > > <html lang="en">
      > > <head>
      > > <meta http-equiv="content-type" content="text/html;
      > > charset=utf-8">
      > > <title>YUI Calendar Control Example</title>
      > > <link rel="stylesheet" type="text/css"
      > > href="/build/calendar/assets/skins/sam/calendar.css">
      > > <script type="text/javascript"
      > > src="/build/yahoo-dom-event/yahoo-dom-event.js"></script>
      > > <script type="text/javascript"
      > > src="/build/calendar/calendar-min.js"></script>
      > > <script type="text/javascript"
      > > src="http://yui.yahooapis.com/2.5.2/build/yahoo/yahoo-min.js"></
      > > script>
      > > <script type="text/javascript"
      > > src="http://yui.yahooapis.com/2.5.2/build/utilities/utilities.js"></
      > > script>
      > >
      > >
      > > <style type="text/css">
      > > input {
      > > margin:0px 10px 0px 10px;
      > > }
      > > </style>
      > > </head>
      > > <body class="yui-skin-sam">
      > > <div id="mycal"></div>
      > > <div>
      > >
      > > <label>Please enter your date of birth:</label>
      > > <input type="text" name="dobfield" id="dobfield">
      > > <input type="submit" name="submitButton" value="Submit" />
      > > <img id="calico" src="cal.png"
      > > alt="Open the Calendar control">
      > > </div>
      > >
      > > <script type="text/javascript">
      > > YAHOO.util.Event.onDOMReady(launchCal);
      > > YAHOO.util.Event.addListener("submitButton", "click", launchCal);
      > >
      > > function launchCal()
      > > {
      > > var cal1 = new YAHOO.widget.Calendar("mycal",{navigator:true,
      > > title:"Choose your Date Of Birth", close:true});
      > > cal1.render();
      > > call.show();
      > > }
      > >
      > > </script>
      > > </body>
      > > </html>
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.