G
Guest
Hello All:
I'm sure that one of you can quickly spot the error in my script. I am
using a small javascript function to retrieve the text of a hyperlink in a
datagrid column.
Here is my script:
function parseHyperlinkId(o) {
alert(o.text);
alert(o.href);
alert(o.target);
return true;
}
using the following Server side code to link the hyperlink's onClick event
to the javascript:
hLink.Attributes.Add("onClick", "return parseHyperlinkId(this);")
o.target returns the hyperlink's target; o.href returns the href; o.text
returns "undefined." Does anyone know which property I should use to
retrieve the hyperlink's text?
TIA,
I'm sure that one of you can quickly spot the error in my script. I am
using a small javascript function to retrieve the text of a hyperlink in a
datagrid column.
Here is my script:
function parseHyperlinkId(o) {
alert(o.text);
alert(o.href);
alert(o.target);
return true;
}
using the following Server side code to link the hyperlink's onClick event
to the javascript:
hLink.Attributes.Add("onClick", "return parseHyperlinkId(this);")
o.target returns the hyperlink's target; o.href returns the href; o.text
returns "undefined." Does anyone know which property I should use to
retrieve the hyperlink's text?
TIA,