• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic