Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Disable a button in Firefox and Chrome but not in IE

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Is it possible to disable a button in firefox and chrome and should be enabled in IE. It is also fine with me if the button is made invisible.
How does the scripting go in that case?



I want the button "Print All PDF's" to be enabled or visible only in Internet Explorer but not in any other browser

THanks
Wish
 
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what have you tried so far to hide or show the elements?

And, why do you have "javascript:" prefixing your handlers?

 
Wishu Reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have openPrintAllDocs() which should be called only in case of IE because that works only for it. I'm not able to figure out how to hide those elements. I don't want my clients to see that in case of firefox and want to hide it

 
Bear Bibeault
Marshal
Posts: 67451
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what have you tried so far to hide or show the elements?
 
Wishu Reddy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to change the visibility to hidden but that hasn't been working for me. but this is working fine
using conditional comment
<!--[if IE]>
<input class="epi-button"............................................>
<![endif]-->

Thanks
 
    Bookmark Topic Watch Topic
  • New Topic