Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I conditionally remove link from jsp?**********  RSS feed

 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing a jsp site with frames. When a particular event happens in frame B, I want a link in frame A to be removed. Essentially, clicking the link will cause nothing to happen. How do I conditionally cause this to happen? I guess I'm expecting to use javascript as the method to make this work. I've tried
top.frames[1].frames[0].document.myform.laboratory.href="";
but this gives a javascript error. Do you have any suggestions?
 
James Swan
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
below is some code that you can build on for doing this.
It is a method I have used before for dynamically changing event handlers in html (this is a cross-browser solution also).

James.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!