By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,528 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,528 IT Pros & Developers. It's quick & easy.

Cell pos x/Y ????

P: n/a
Hi,

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

thanks
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
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 ?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2

P: n/a
no, in fact a want to put any calque on it for put any context information
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de
news:Xn********************@213.51.144.36...
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
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 ?

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

Jul 20 '05 #3

P: n/a
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de
news:Xn********************@213.51.144.36...
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
> 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 ?

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


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)
Jul 20 '05 #4

P: n/a
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." <ex**************@interxnl.net> a écrit dans le message de
news:Xn********************@213.51.144.36...
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de
news:Xn********************@213.51.144.36...
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
> 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 ?

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


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)

Jul 20 '05 #5

P: n/a
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
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


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.getElementById("cell43").style.border=
"red dotted 2px"

document.getElementById("cell42").firstChild.style .border=
"navy dashed 2px"
</script>

tested IE6

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #6

P: n/a
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">information</div>

<script>
document.getElementById("info").style.top =
document.getElementById("cell43").style.top;
document.getElementById("info").style.left =
document.getElementById("cell43").style.left;
</script>
quelquechose comme ca !!!!
"Evertjan." <ex**************@interxnl.net> a écrit dans le message de
news:Xn********************@213.51.144.36...
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
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


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.getElementById("cell43").style.border=
"red dotted 2px"

document.getElementById("cell42").firstChild.style .border=
"navy dashed 2px"
</script>

tested IE6

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

Jul 20 '05 #7

P: n/a
deemoox wrote on 05 feb 2004 in comp.lang.javascript:
<script>
document.getElementById("info").style.top =
document.getElementById("cell43").style.top;
document.getElementById("info").style.left =
document.getElementById("cell43").style.left;
</script>
quelquechose comme ca !!!!


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;display:none;">information </div>
<input>
</td>
<td id="cell43">
<div style="postion:absolute;display:none;">information </div>
<input>
</td>
</tr>
</table>

<script>
document.getElementById("cell43").firstChild.style .display=""
</script>

not tested

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.