retrieve clean text between <td></td>

J

js

I have a table rendered with XSLT. The first column has a radio
button controls for user to make a selection for a particular row.
All the values in the remaining columns are all concated with a  
(blank). I need to retieve the text in each cell of that row if the
radio button on that row is clicked. Each <TD> has a numeric ID so
that I can use it with document.getElementById().innerText method. I
use Javascript to assign some hidden fields with these innerText
before the form is submitted. Upon submission, the form would contain
those values along with %90?. How can I get rid of those HTML encoded
string and get only the text that appear in the browser using
javascript? I am using IE6. I also need to have it working in Opera
and Netscape. Thanks.
 
S

Shawn Milo

I have a table rendered with XSLT. The first column has a radio
button controls for user to make a selection for a particular row.
All the values in the remaining columns are all concated with a  
(blank). I need to retieve the text in each cell of that row if the
radio button on that row is clicked. Each <TD> has a numeric ID so
that I can use it with document.getElementById().innerText method. I
use Javascript to assign some hidden fields with these innerText
before the form is submitted. Upon submission, the form would contain
those values along with %90?. How can I get rid of those HTML encoded
string and get only the text that appear in the browser using
javascript? I am using IE6. I also need to have it working in Opera
and Netscape. Thanks.

Can you post examples of the string you have and how
you'd like it to look afterwards? You can probably
do this pretty simply with a regular expression.

Shawn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top