Hello,
Here is my problem: I have a site that uses urls of this format to
submit forms:
<a id="1_1_2_0"
href="javascript:if(validate)submitForm(...)">Subm it</a>
I'm just a third-party programmer, I have no control over this
format. I am tasked with writing a function that will be able to fire
on the click and within that function I need to identify exactly which
submission was fired. The function will run inside the validation
code.
When called within the href, 'this' seems to refer to the entire
window, not to the anchor element. For example:
<script>
function list(obj){
var text = "";
for (n in obj){
text += n + "\n";
}
alert(text);
}
</script>
<a id="1_1_2_0"
href="javascript:if(validate)list(this);submitForm (...)">Submit</a>
Thus, I can't use the ordinary method of 'this.id' which would return
the link id value.
Is there some way within that href of dynamically determining which
anchor is being clicked? I can't see it.
thanks.
mp
--
cat: $HOME/.signature: No such file or directory