473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Disable of a link

How can I make a link disable?
Nov 1 '07 #1
14 3523
r035198x
13,262 8TB
How can I make a link disable?
You are really not good at explaining your problems clearly are you?
Nov 1 '07 #2
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.
Nov 1 '07 #3
ajos
283 100+
How can I make a link disable?
you may need a javascript in this case.u'll find it in google.
Nov 1 '07 #4
r035198x
13,262 8TB
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.
Nov 1 '07 #5
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.
Nov 1 '07 #6
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.
Nov 1 '07 #7
acoder
16,027 Expert Mod 8TB
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.visibility property to "hidden", e.g.
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("linkid").style.visibility = 'hidden';
Nov 1 '07 #8
Set the style.visibility property to "hidden", e.g.
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("linkid").style.visibility = 'hidden';


Thank you very much.
Nov 1 '07 #9
acoder
16,027 Expert Mod 8TB
Thank you very much.
You're most welcome. Is your problem solved?
Nov 1 '07 #10
You're most welcome. Is your problem solved?

Yes, my problem is solved.Sorry for the late reply.
Nov 12 '07 #11
r035198x
13,262 8TB
Yes, my problem is solved.Sorry for the late reply.
Don't worry about it. Most people never bother to reply anyway ...
Nov 12 '07 #12
acoder
16,027 Expert Mod 8TB
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.
Nov 12 '07 #13
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
Nov 13 '08 #14
acoder
16,027 Expert Mod 8TB
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.
Nov 13 '08 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: KS | last post by:
Im trying to prevent the user from clicking any other links on my page when the user have selected/clicked a href once. Sometimes it takes a while before the next page loads so some user will try...
32
by: Mark Johnson | last post by:
You have an, a, anchor with href link. Can you use a stylesheet to effectively disable the link, so that you can't click on it; that it will appear simply as text?
6
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled...
4
by: Jamie Jackson | last post by:
I know that it's possible to return false in an onClick to disable a link. Is there a way to do this within the HREF attribute? Something like: <a href="javascript: return false;"> ? Thanks,...
4
by: kschneider | last post by:
Assume there's a form with it's action attribute all set to post to a URL, but without a submit control. Form submission is done via a link and I want to prevent the classic "double submit"....
0
by: rn5a | last post by:
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order...
1
by: David Henderson | last post by:
I know 'disable-output-escaping' has been discussed in the past, but I can't put my finger on any of the threads to see if my current problem is addressed. Sorry for re-asking the question if it...
3
by: =?Utf-8?B?UGxhdGVyaW90?= | last post by:
I have link buttons in a Gridview that, depending on the value in another column (Not the Key column) will need to be disabled. For example, (Column2 has link buttons) Column1 ...
1
by: wolf18 | last post by:
I am running a business and I have a forum on it but I do not want under 18's to access it due to that its for booking and to hire, anyway what ive done is ive created a link that says "Leave (Iam...
1
by: burtonfigg | last post by:
I have a very simple bit of ajax with next / prev links on it (thanks to acoder who helped a lot with getting it to work): http://jimpix.co.uk/e.asp If I am at the start of the range, is there...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.