I have a hyperlink that I use to start a CGI script. This script sends its output to a NEW window. Once the script has started, the hyperlink ought o be disabled. In fact, it is always disabled until a specific button is clicked. This button sets up data in a database that the cgi script works on, and before enabling the hyperlink and giving it the URL it is to use, it ensures that all the required data has been provided. Because the data, and actions on it, are unique, there is no sense in running the script a second time on the same data (and in fact the code gives an error if that happens). So, as soon as the hyperlink has been selected, and the new window opened ready to take the output from the CGI script, the hyperlink ought to be disabled again, until new data is provided (and validated by the buttons provided).
In the action event handler, I wrote a line of code that disables the hyperlink, and returns null, but the hyperlink is not disabled until the next time the page is refreshed. How can I make this happen sooner, and without the form data being resubmitted (that isn't necessary with the action on this specific control - and I find I am getting spurious errors because the data is submitted again to the server when I press <F5> to refresh the page)?
Thanks
Ted