File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes disabling an entire row Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "disabling an entire row" Watch "disabling an entire row" New topic
Author

disabling an entire row

Soum Sark
Ranch Hand

Joined: May 31, 2002
Posts: 50
is there any way to disable an entire row which contains 2 links . i don't want to hide it just disasble it so that the user understands that he is not permitted to click the links since some action is being taken.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
There is a couple of ways to do it, the one right off the top of my head without thinking would be
basic idea:
<script>
var AllowGo = false;
function GoHere(url){
if(AllowGo)document.location.href=url;
}
</script>
<a href="javascript:GoHere('TheUrl.htm')">Link 1</a>
<a href="javascript:GoHere('TheSecUrl.htm')">Link 2</a>
<a href="javascript:AllowGo=true">Allow Links Click Here</a>
If I get some time I will post other ways to do it
Eric
 
 
subject: disabling an entire row
 
Threads others viewed
Monitor and lock?
select a row inJTextArea using CaretPosition
Geting row
Table Row Selection problem while adding any Image in a JTable
How to override table and apply style .
developer file tools