Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

???Javascript, ASP, Cookies

Status
Not open for further replies.

coolmike

Programmer
Joined
Dec 28, 2000
Messages
2
Location
US
I am developing a web based music inventory system. I need the capability to create music lists. currently I am using ASP to display the music from the database into an HTML Table. In the last column(<td>) of the table I have a anchor tag called &quot;Add to List&quot;. I would like to store the information that is in the current row into a cookie when the user clicks the &quot;Add to List&quot; anchor. The problem is that I don't know how to get the information for the current row to store it in a cookie. Any Suggestions?
 
do you have a way to know/control whch browser your users are going to use ??
if you are sure they'll use ie 4+, then an easy way to access the value of a table row is :
1- name your table row
<td id=&quot;my_id&quot;>ok this is the content of the td</td>
2- refer to it as : document.all.my_id.innerHTML -> this will return &quot;ok this is the content of the td&quot;
 
How are you determining the current row? If you are only going to have text in the cell, use innerText, its faster. jared@aauser.com
 
Thanks Guys,

That was very helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top