Hi,
I'm building a table dynamically using the DOM and each row contains a link that I have built in such a way that it would be along the lines of...
The integer that is part of the void call is incremented for each row so that the links are not all identical. This makes sure that when clicking on one of the links in the table, just that link changes colour to indicate its been clicked. This is why I dont want to use
Anyway, the problem I'm having is that the function called, openFC, doesnt navigate away to the page its supposed to. I can see that its called properly (by using alert) but the location.href call is ignored. I understand that this is what void does...it stops the navigation but is there a way around this? How can I create the link with a different href for each row?
Thanks
Matt
"Success is 10% inspiration, 90% last minute changes
I'm building a table dynamically using the DOM and each row contains a link that I have built in such a way that it would be along the lines of...
Code:
<a href="javascript:void(1)" onclick="openFC(this)">Remortgage of 27 Dunroamin..</a>
The integer that is part of the void call is incremented for each row so that the links are not all identical. This makes sure that when clicking on one of the links in the table, just that link changes colour to indicate its been clicked. This is why I dont want to use
Code:
<a href="#" onclick="openFC(this)">Remortgage of 27 Dunroamin..</a>
Anyway, the problem I'm having is that the function called, openFC, doesnt navigate away to the page its supposed to. I can see that its called properly (by using alert) but the location.href call is ignored. I understand that this is what void does...it stops the navigation but is there a way around this? How can I create the link with a different href for each row?
Thanks
Matt
"Success is 10% inspiration, 90% last minute changes