Disable of a link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjuktadutta
    New Member
    • Nov 2007
    • 9

    Disable of a link

    How can I make a link disable?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by sanjuktadutta
    How can I make a link disable?
    You are really not good at explaining your problems clearly are you?

    Comment

    • sanjuktadutta
      New Member
      • Nov 2007
      • 9

      #3
      Originally posted by r035198x
      You are really not good at explaining your problems clearly are you?
      Sorry for tht.actually I am very much fresher in this field.
      Actually I am facing th problem as below.
      I have a jsp page,having a hyperlink.Now as we proceed through the hyperlink ander after required action getting back to the parent page,I want that the particular hyperlink in my parent page should be disabled.

      Comment

      • ajos
        Contributor
        • Aug 2007
        • 283

        #4
        Originally posted by sanjuktadutta
        How can I make a link disable?
        you may need a javascript in this case.u'll find it in google.

        Comment

        • r035198x
          MVP
          • Sep 2006
          • 13225

          #5
          Originally posted by sanjuktadutta
          Sorry for tht.actually I am very much fresher in this field.
          Actually I am facing th problem as below.
          I have a jsp page,having a hyperlink.Now as we proceed through the hyperlink ander after required action getting back to the parent page,I want that the particular hyperlink in my parent page should be disabled.
          By disabled do you mean hidden or you want the text to be there but have it no longer as a link?
          One approach may involve giving the the link tag an id.

          P.S I'm moving this to the Javascript forum.

          Comment

          • sanjuktadutta
            New Member
            • Nov 2007
            • 9

            #6
            Originally posted by r035198x
            By disabled do you mean hidden or you want the text to be there but have it no longer as a link?
            One approach may involve giving the the link tag an id.

            P.S I'm moving this to the Javascript forum.
            Yes you are right I want the hyperlink should be hidden.

            Thanks in advance.

            Comment

            • sanjuktadutta
              New Member
              • Nov 2007
              • 9

              #7
              Originally posted by sanjuktadutta
              Yes you are right I want the hyperlink should be hidden.

              Thanks in advance.
              I have a hyper link in a jsp page.after click the hyper link i will porform some operation.After performing the tasks i will submit the parent page by checking that the task have been performed or not without reloading/refreshing the parent page.

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                Originally posted by sanjuktadutta
                I have a hyper link in a jsp page.after click the hyper link i will porform some operation.After performing the tasks i will submit the parent page by checking that the task have been performed or not without reloading/refreshing the parent page.
                Set the style.visibilit y property to "hidden", e.g.[CODE=javascript]document.getEle mentById("linki d").style.visib ility = 'hidden';[/CODE]

                Comment

                • sanjuktadutta
                  New Member
                  • Nov 2007
                  • 9

                  #9
                  Originally posted by acoder
                  Set the style.visibilit y property to "hidden", e.g.[CODE=javascript]document.getEle mentById("linki d").style.visib ility = 'hidden';[/CODE]


                  Thank you very much.

                  Comment

                  • acoder
                    Recognized Expert MVP
                    • Nov 2006
                    • 16032

                    #10
                    Originally posted by sanjuktadutta
                    Thank you very much.
                    You're most welcome. Is your problem solved?

                    Comment

                    • sanjuktadutta
                      New Member
                      • Nov 2007
                      • 9

                      #11
                      Originally posted by acoder
                      You're most welcome. Is your problem solved?

                      Yes, my problem is solved.Sorry for the late reply.

                      Comment

                      • r035198x
                        MVP
                        • Sep 2006
                        • 13225

                        #12
                        Originally posted by sanjuktadutta
                        Yes, my problem is solved.Sorry for the late reply.
                        Don't worry about it. Most people never bother to reply anyway ...

                        Comment

                        • acoder
                          Recognized Expert MVP
                          • Nov 2006
                          • 16032

                          #13
                          Originally posted by sanjuktadutta
                          Yes, my problem is solved.Sorry for the late reply.
                          As r035198x pointed out, no worries. Better late than never, I say.

                          Glad it helped. Post again to the forum should you have any questions that need answering.

                          Comment

                          • Seema Khoja
                            New Member
                            • Nov 2008
                            • 1

                            #14
                            And what is solution if we need to keep the text i.e; no more be visible as hyperlink but just as a simple text

                            Comment

                            • acoder
                              Recognized Expert MVP
                              • Nov 2006
                              • 16032

                              #15
                              Seema, welcome to Bytes!

                              When you want to disable the link by displaying the text only, then get the text and replace the link with that text. To get the text, either use a DOM method, or simply the innerHTML property.

                              Comment

                              Working...