• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Hiding button

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

Let me explain the issue.

I've a search results page, from where I can select an entry and view/edit them using the VIEW button. Also, I've a CREATE button for creating a new entry. Both these point to the create page, while in the former action, the page is pre-populated with existing data.

The problem is that I've a CLONE button inside the create page, which I'll be using for view/edit. So, I want to hide it when I reach this page after hitting the CREATE button. Help me please.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Than hide it.

Set the display to none.

Eric
 
Sailesh Ganeshan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks eric !

But I know that, what I wanted to know is to set some kind of flag so that its possible to find out whether the page is viewed after clicking Create button, or the View/Edit button. I thought of handling it in the page level, rather than going into the class level. Thanks for your reply.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sailesh Ganeshan wrote:thanks eric !

But I know that, what I wanted to know is to set some kind of flag so that its possible to find out whether the page is viewed after clicking Create button, or the View/Edit button. I thought of handling it in the page level, rather than going into the class level. Thanks for your reply.



Why would you be using JavaScript to hide this button when your backend should be responsible for it? Is the page not posting back to the server?

Eric
 
Heroic work plunger man. Please allow me to introduce you to this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic