Cell pos x/Y ????

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

    Cell pos x/Y ????

    Hi,

    My problem is to find positon of cell in table, someone have any idea or
    code to do that ????

    thanks


  • Evertjan.

    #2
    Re: Cell pos x/Y ????

    deemoox wrote on 05 feb 2004 in comp.lang.javas cript:[color=blue]
    > My problem is to find positon of cell in table, someone have any idea or
    > code to do that ????[/color]

    What do you mean, finding?

    If you click on it?

    searching the content for a string?

    etc ?



    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • deemoox

      #3
      Re: Cell pos x/Y ????

      no, in fact a want to put any calque on it for put any context information


      "Evertjan." <exjxw.hannivoo rt@interxnl.net > a écrit dans le message de
      news:Xns9486B00 CAFA7Feejj99@21 3.51.144.36...[color=blue]
      > deemoox wrote on 05 feb 2004 in comp.lang.javas cript:[color=green]
      > > My problem is to find positon of cell in table, someone have any idea or
      > > code to do that ????[/color]
      >
      > What do you mean, finding?
      >
      > If you click on it?
      >
      > searching the content for a string?
      >
      > etc ?
      >
      >
      >
      > --
      > Evertjan.
      > The Netherlands.
      > (Please change the x'es to dots in my emailaddress)[/color]


      Comment

      • Evertjan.

        #4
        Re: Cell pos x/Y ????

        deemoox wrote on 05 feb 2004 in comp.lang.javas cript:[color=blue]
        > "Evertjan." <exjxw.hannivoo rt@interxnl.net > a écrit dans le message de
        > news:Xns9486B00 CAFA7Feejj99@21 3.51.144.36...[color=green]
        >> deemoox wrote on 05 feb 2004 in comp.lang.javas cript:[color=darkred]
        >> > My problem is to find positon of cell in table, someone have any
        >> > idea or code to do that ????[/color]
        >>
        >> What do you mean, finding?
        >>
        >> If you click on it?
        >>
        >> searching the content for a string?
        >>
        >> etc ?[/color][/color]
        [color=blue]
        > no, in fact a want to put any calque on it for put any context
        > information[/color]

        I do not understand what you mean.

        Perhaps better repeat it in French ?

        [please do not top post on usenet]

        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        • deemoox

          #5
          Re: Cell pos x/Y ????

          Bien, bien

          alors mon probleme est le suivant. Je voudrais afficher un calque, style
          bulle info sur un objet type input....
          l'objet input est dans une cellule d'un tableau et donc je ne connais pas sa
          position X/Y


          est-il possible de connaitre les proprietes top et left ???? d'une cellule
          ou de l'objet dans la cellule



          "Evertjan." <exjxw.hannivoo rt@interxnl.net > a écrit dans le message de
          news:Xns9486B1F 4694FFeejj99@21 3.51.144.36...[color=blue]
          > deemoox wrote on 05 feb 2004 in comp.lang.javas cript:[color=green]
          > > "Evertjan." <exjxw.hannivoo rt@interxnl.net > a écrit dans le message de
          > > news:Xns9486B00 CAFA7Feejj99@21 3.51.144.36...[color=darkred]
          > >> deemoox wrote on 05 feb 2004 in comp.lang.javas cript:
          > >> > My problem is to find positon of cell in table, someone have any
          > >> > idea or code to do that ????
          > >>
          > >> What do you mean, finding?
          > >>
          > >> If you click on it?
          > >>
          > >> searching the content for a string?
          > >>
          > >> etc ?[/color][/color]
          >[color=green]
          > > no, in fact a want to put any calque on it for put any context
          > > information[/color]
          >
          > I do not understand what you mean.
          >
          > Perhaps better repeat it in French ?
          >
          > [please do not top post on usenet]
          >
          > --
          > Evertjan.
          > The Netherlands.
          > (Please change the x'es to dots in my emailaddress)[/color]


          Comment

          • Evertjan.

            #6
            Re: Cell pos x/Y ????

            deemoox wrote on 05 feb 2004 in comp.lang.javas cript:
            [color=blue]
            > alors mon probleme est le suivant. Je voudrais afficher un calque,
            > style bulle info sur un objet type input....
            > l'objet input est dans une cellule d'un tableau et donc je ne connais
            > pas sa position X/Y
            >
            > est-il possible de connaitre les proprietes top et left ???? d'une
            > cellule ou de l'objet dans la cellule[/color]

            The xy-position depends on the layout of the page.
            First you have to identify the cell biy some means like an "id".
            And then you do not need the position anymore, je pence.

            Comme ca?

            <table>
            <tr>
            <td id="cell42">
            <input>
            </td>
            <td id="cell43">
            <input>
            </td>
            </tr>
            </table>

            <script>
            document.getEle mentById("cell4 3").style.borde r=
            "red dotted 2px"

            document.getEle mentById("cell4 2").firstChild. style.border=
            "navy dashed 2px"
            </script>

            tested IE6

            --
            Evertjan.
            The Netherlands.
            (Please change the x'es to dots in my emailaddress)

            Comment

            • deemoox

              #7
              Re: Cell pos x/Y ????

              Not exactly

              en fait j'ai besoin de connaitre la postion exact pour placer le layer......

              <table borser ="1">
              <tr>
              <td id="cell42">
              <input>
              </td>
              <td id="cell43">
              <input>
              </td>
              </tr>
              </table>
              <div id="info">infor mation</div>

              <script>
              document.getEle mentById("info" ).style.top =
              document.getEle mentById("cell4 3").style.to p;
              document.getEle mentById("info" ).style.left =
              document.getEle mentById("cell4 3").style.le ft;
              </script>


              quelquechose comme ca !!!!


              "Evertjan." <exjxw.hannivoo rt@interxnl.net > a écrit dans le message de
              news:Xns9486B5E 19CEB5eejj99@21 3.51.144.36...[color=blue]
              > deemoox wrote on 05 feb 2004 in comp.lang.javas cript:
              >[color=green]
              > > alors mon probleme est le suivant. Je voudrais afficher un calque,
              > > style bulle info sur un objet type input....
              > > l'objet input est dans une cellule d'un tableau et donc je ne connais
              > > pas sa position X/Y
              > >
              > > est-il possible de connaitre les proprietes top et left ???? d'une
              > > cellule ou de l'objet dans la cellule[/color]
              >
              > The xy-position depends on the layout of the page.
              > First you have to identify the cell biy some means like an "id".
              > And then you do not need the position anymore, je pence.
              >
              > Comme ca?
              >
              > <table>
              > <tr>
              > <td id="cell42">
              > <input>
              > </td>
              > <td id="cell43">
              > <input>
              > </td>
              > </tr>
              > </table>
              >
              > <script>
              > document.getEle mentById("cell4 3").style.borde r=
              > "red dotted 2px"
              >
              > document.getEle mentById("cell4 2").firstChild. style.border=
              > "navy dashed 2px"
              > </script>
              >
              > tested IE6
              >
              > --
              > Evertjan.
              > The Netherlands.
              > (Please change the x'es to dots in my emailaddress)[/color]


              Comment

              • Evertjan.

                #8
                Re: Cell pos x/Y ????

                deemoox wrote on 05 feb 2004 in comp.lang.javas cript:
                [color=blue]
                > <script>
                > document.getEle mentById("info" ).style.top =
                > document.getEle mentById("cell4 3").style.to p;
                > document.getEle mentById("info" ).style.left =
                > document.getEle mentById("cell4 3").style.le ft;
                > </script>
                >
                >
                > quelquechose comme ca !!!!
                >[/color]

                Je pence que ca est impossible.

                Pourquois pas inserter un layer non-displayed a chaque cell.


                <table borser ="1">
                <tr>
                <td id="cell42">
                <div style="postion: absolute;displa y:none;">inform ation</div>
                <input>
                </td>
                <td id="cell43">
                <div style="postion: absolute;displa y:none;">inform ation</div>
                <input>
                </td>
                </tr>
                </table>

                <script>
                document.getEle mentById("cell4 3").firstChild. style.display=" "
                </script>

                not tested

                --
                Evertjan.
                The Netherlands.
                (Please change the x'es to dots in my emailaddress)

                Comment

                Working...