Cell/td on mouse click event using ASP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Carl Gilbert

    Cell/td on mouse click event using ASP

    Hi

    I have a basic page for which I have included some of the code for at the
    end of this message. It may not run correctly as I have cropped out a lot
    of code.

    I am trying to handle the click event for a cell. From the code you should
    be able to see that I am handling the mouse over event and would like to
    link to another page via the cell click.

    I addition, but not too important at the moment, I would like to pass a
    string or two across to the called page. For example link to the next page
    and within that page identify which cell was clicked and possible pass a
    string for the image used in the clicked cell.

    Any help on either subject would be greatly appreciated.

    Kind regards, Carl Gilbert.



    <HTML>
    <HEAD>
    <TITLE>Categori es</TITLE>
    <META name="GENERATOR " content="Micros oft Visual Studio.NET 7.0">
    <META name="CODE_LANG UAGE" content="Visual Basic 7.0">
    <META name="vs_defaul tClientScript" content="JavaSc ript">
    <META name="vs_target Schema"
    content="http://schemas.microso ft.com/intellisense/ie3-2nav3-0">


    <STYLE type="text/css">
    .over { background-color:silver; }
    .out { background-color:white; }
    </STYLE>

    </HEAD>
    <BODY ms_positioning= "FlowLayout ">
    <FORM id="Categories " method="post" runat="server" action="designs .asp">
    <TABLE border="0" cellpadding="0" cellspacing="0" id="Table3">
    <TR><TD height="37" style="border:3 solid black;" valign="top"
    onmouseover="th is.className='o ver'" onmouseout="thi s.className='ou t'">
    <A href="designs.a sp">Designs</A></TD>
    </TR>
    </TABLE>
    </FORM>
    </BODY>
    </HTML>
  • Curt_C [MVP]

    #2
    Re: Cell/td on mouse click event using ASP

    have the <a..> do the onClick and set it to 100% width

    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    Site: http://www.Darkfalz.com
    Blog: http://blog.Darkfalz.com


    "Carl Gilbert" <mr_carl_gilber t@hotmail.com> wrote in message
    news:66d5a399.0 405190545.240f8 8b9@posting.goo gle.com...[color=blue]
    > Hi
    >
    > I have a basic page for which I have included some of the code for at the
    > end of this message. It may not run correctly as I have cropped out a lot
    > of code.
    >
    > I am trying to handle the click event for a cell. From the code you[/color]
    should[color=blue]
    > be able to see that I am handling the mouse over event and would like to
    > link to another page via the cell click.
    >
    > I addition, but not too important at the moment, I would like to pass a
    > string or two across to the called page. For example link to the next[/color]
    page[color=blue]
    > and within that page identify which cell was clicked and possible pass a
    > string for the image used in the clicked cell.
    >
    > Any help on either subject would be greatly appreciated.
    >
    > Kind regards, Carl Gilbert.
    >
    >
    >
    > <HTML>
    > <HEAD>
    > <TITLE>Categori es</TITLE>
    > <META name="GENERATOR " content="Micros oft Visual Studio.NET 7.0">
    > <META name="CODE_LANG UAGE" content="Visual Basic 7.0">
    > <META name="vs_defaul tClientScript" content="JavaSc ript">
    > <META name="vs_target Schema"
    > content="http://schemas.microso ft.com/intellisense/ie3-2nav3-0">
    >
    >
    > <STYLE type="text/css">
    > .over { background-color:silver; }
    > .out { background-color:white; }
    > </STYLE>
    >
    > </HEAD>
    > <BODY ms_positioning= "FlowLayout ">
    > <FORM id="Categories " method="post" runat="server" action="designs .asp">
    > <TABLE border="0" cellpadding="0" cellspacing="0" id="Table3">
    > <TR><TD height="37" style="border:3 solid black;" valign="top"
    > onmouseover="th is.className='o ver'" onmouseout="thi s.className='ou t'">
    > <A href="designs.a sp">Designs</A></TD>
    > </TR>
    > </TABLE>
    > </FORM>
    > </BODY>
    > </HTML>[/color]


    Comment

    • Carl Gilbert

      #3
      Re: Cell/td on mouse click event using ASP

      Hi

      Thanks for the reply. Do you mean put the click event and the A tag in
      between the TD tags and will I need any code in the STYLE tag?
      I have only been using ASP for a few days so a sample line would be greatly
      appreciated.

      Regards, Carl



      "Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
      news:u0lnsoaPEH A.680@TK2MSFTNG P11.phx.gbl...[color=blue]
      > have the <a..> do the onClick and set it to 100% width
      >
      > --
      > Curt Christianson
      > Owner/Lead Developer, DF-Software
      > Site: http://www.Darkfalz.com
      > Blog: http://blog.Darkfalz.com
      >
      >
      > "Carl Gilbert" <mr_carl_gilber t@hotmail.com> wrote in message
      > news:66d5a399.0 405190545.240f8 8b9@posting.goo gle.com...[color=green]
      > > Hi
      > >
      > > I have a basic page for which I have included some of the code for at[/color][/color]
      the[color=blue][color=green]
      > > end of this message. It may not run correctly as I have cropped out a[/color][/color]
      lot[color=blue][color=green]
      > > of code.
      > >
      > > I am trying to handle the click event for a cell. From the code you[/color]
      > should[color=green]
      > > be able to see that I am handling the mouse over event and would like to
      > > link to another page via the cell click.
      > >
      > > I addition, but not too important at the moment, I would like to pass a
      > > string or two across to the called page. For example link to the next[/color]
      > page[color=green]
      > > and within that page identify which cell was clicked and possible pass a
      > > string for the image used in the clicked cell.
      > >
      > > Any help on either subject would be greatly appreciated.
      > >
      > > Kind regards, Carl Gilbert.
      > >
      > >
      > >
      > > <HTML>
      > > <HEAD>
      > > <TITLE>Categori es</TITLE>
      > > <META name="GENERATOR " content="Micros oft Visual Studio.NET 7.0">
      > > <META name="CODE_LANG UAGE" content="Visual Basic 7.0">
      > > <META name="vs_defaul tClientScript" content="JavaSc ript">
      > > <META name="vs_target Schema"
      > > content="http://schemas.microso ft.com/intellisense/ie3-2nav3-0">
      > >
      > >
      > > <STYLE type="text/css">
      > > .over { background-color:silver; }
      > > .out { background-color:white; }
      > > </STYLE>
      > >
      > > </HEAD>
      > > <BODY ms_positioning= "FlowLayout ">
      > > <FORM id="Categories " method="post" runat="server"[/color][/color]
      action="designs .asp">[color=blue][color=green]
      > > <TABLE border="0" cellpadding="0" cellspacing="0" id="Table3">
      > > <TR><TD height="37" style="border:3 solid black;" valign="top"
      > > onmouseover="th is.className='o ver'" onmouseout="thi s.className='ou t'">
      > > <A href="designs.a sp">Designs</A></TD>
      > > </TR>
      > > </TABLE>
      > > </FORM>
      > > </BODY>
      > > </HTML>[/color]
      >
      >[/color]


      Comment

      Working...