Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Using the Calendar ActiveX control in an HTMl form

Using the Calendar ActiveX control in an HTMl form

Scheduled Pinned Locked Moved Web Development
questionjavascripthtmlcomtools
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #1

    Hello all, I am trying to put a calendar control in an html page and then allow the user to select a date and then when he submits the form I want to pass the selected date to my ASP script. I inserted the control using Visual Studiu 7 and it gave me this code :-

    <OBJECT name="Calendar1" id="Calendar1" classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" >
    <PARAM NAME="_Version" VALUE="524288">
    <PARAM NAME="_ExtentX" VALUE="7620">
    <PARAM NAME="_ExtentY" VALUE="5080">
    <PARAM NAME="_StockProps" VALUE="1">
    <PARAM NAME="BackColor" VALUE="-2147483633">
    <PARAM NAME="Year" VALUE="2002">
    <PARAM NAME="Month" VALUE="3">
    <PARAM NAME="Day" VALUE="31">
    <PARAM NAME="DayLength" VALUE="1">
    <PARAM NAME="MonthLength" VALUE="1">
    <PARAM NAME="DayFontColor" VALUE="0">
    <PARAM NAME="FirstDay" VALUE="7">
    <PARAM NAME="GridCellEffect" VALUE="1">
    <PARAM NAME="GridFontColor" VALUE="10485760">
    <PARAM NAME="GridLinesColor" VALUE="-2147483632">
    <PARAM NAME="ShowDateSelectors" VALUE="-1">
    <PARAM NAME="ShowDays" VALUE="-1">
    <PARAM NAME="ShowHorizontalGrid" VALUE="-1">
    <PARAM NAME="ShowTitle" VALUE="-1">
    <PARAM NAME="ShowVerticalGrid" VALUE="-1">
    <PARAM NAME="TitleFontColor" VALUE="10485760">
    <PARAM NAME="ValueIsNull" VALUE="0">
    </OBJECT>

    Now how do I pass it to my ASP. I tried get and post and nothing works :-( I tried this from a button's javascript handler and it gave me errors. The error was "Invalid Callee" :-

    <script language="javascript">
    function abc()
    {
    alert(Calendar1.Year);
    }
    </script>

    Can someone give me some pointers please? :(( Nish

    :love:Has anyone seen my sig?:love:

    W 1 Reply Last reply
    0
    • N Nish Nishant

      Hello all, I am trying to put a calendar control in an html page and then allow the user to select a date and then when he submits the form I want to pass the selected date to my ASP script. I inserted the control using Visual Studiu 7 and it gave me this code :-

      <OBJECT name="Calendar1" id="Calendar1" classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02" >
      <PARAM NAME="_Version" VALUE="524288">
      <PARAM NAME="_ExtentX" VALUE="7620">
      <PARAM NAME="_ExtentY" VALUE="5080">
      <PARAM NAME="_StockProps" VALUE="1">
      <PARAM NAME="BackColor" VALUE="-2147483633">
      <PARAM NAME="Year" VALUE="2002">
      <PARAM NAME="Month" VALUE="3">
      <PARAM NAME="Day" VALUE="31">
      <PARAM NAME="DayLength" VALUE="1">
      <PARAM NAME="MonthLength" VALUE="1">
      <PARAM NAME="DayFontColor" VALUE="0">
      <PARAM NAME="FirstDay" VALUE="7">
      <PARAM NAME="GridCellEffect" VALUE="1">
      <PARAM NAME="GridFontColor" VALUE="10485760">
      <PARAM NAME="GridLinesColor" VALUE="-2147483632">
      <PARAM NAME="ShowDateSelectors" VALUE="-1">
      <PARAM NAME="ShowDays" VALUE="-1">
      <PARAM NAME="ShowHorizontalGrid" VALUE="-1">
      <PARAM NAME="ShowTitle" VALUE="-1">
      <PARAM NAME="ShowVerticalGrid" VALUE="-1">
      <PARAM NAME="TitleFontColor" VALUE="10485760">
      <PARAM NAME="ValueIsNull" VALUE="0">
      </OBJECT>

      Now how do I pass it to my ASP. I tried get and post and nothing works :-( I tried this from a button's javascript handler and it gave me errors. The error was "Invalid Callee" :-

      <script language="javascript">
      function abc()
      {
      alert(Calendar1.Year);
      }
      </script>

      Can someone give me some pointers please? :(( Nish

      :love:Has anyone seen my sig?:love:

      W Offline
      W Offline
      Wanderley M
      wrote on last edited by
      #2

      Nish, I don't know if I got this right, but insert this after </object>:

      Sub ShowYear()
      MsgBox Calendar1.Year
      End Sub

      HTH Wanderley

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups