Click here to Skip to main content
15,892,298 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Perl and MS-IAS Pin
perlmunger2-Dec-04 16:56
perlmunger2-Dec-04 16:56 
QuestionHow to print in horizontal Pin
Anonymous2-Dec-04 5:26
Anonymous2-Dec-04 5:26 
AnswerRe: How to print in horizontal Pin
JKroschel2-Dec-04 10:04
JKroschel2-Dec-04 10:04 
GeneralResponse.Redirect issue Pin
okoji Cyril2-Dec-04 3:56
okoji Cyril2-Dec-04 3:56 
GeneralDisable IFRAME Pin
alex.barylski1-Dec-04 19:48
alex.barylski1-Dec-04 19:48 
GeneralRe: Disable IFRAME Pin
raouls2-Dec-04 0:57
raouls2-Dec-04 0:57 
GeneralRe: Disable IFRAME Pin
alex.barylski2-Dec-04 12:25
alex.barylski2-Dec-04 12:25 
GeneralRe: Disable IFRAME Pin
perlmunger2-Dec-04 12:47
perlmunger2-Dec-04 12:47 
I wouldn't make such sweeping statements as "you shouldn't use iframes". You may have a personal preference, but the truth of the matter is that there are times when an iframe is a better design decision, IMHO. Also, you don't have to remove anchor tags to disable them. I'll explain.

There is a way to achieve disabling anchor tags, however, if what you mean is that your condition for doing so is only when a page is loaded in an iframe, your iframe src page would have to be smart enough to know that it is actually inside an iframe. I'm not sure if this is even possible and I don't believe it is. You might be able to achieve a smart enough page with some clever javascript, but that would be fairly involved.

Now, if that's not what you mean and all you need is a way to disable a click, the just set the onclick method like this:

<a href="http://www.google.com/" onClick="return false;">Test this link</a>

Now clicking will do nothing. Anyhow, best of luck with this. If you have more specific questions, let me know and I'll try to help.

Best Regards.

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralDiverting Ip Address in my home computer... Pin
ZarrinPour1-Dec-04 18:43
ZarrinPour1-Dec-04 18:43 
GeneralRe: Diverting Ip Address in my home computer... Pin
JKroschel2-Dec-04 10:15
JKroschel2-Dec-04 10:15 
Generalc++ problem with IHTMLDocument2 Pin
laurentmuratet30-Nov-04 23:42
laurentmuratet30-Nov-04 23:42 
GeneralRe: c++ problem with IHTMLDocument2 Pin
alex.barylski1-Dec-04 9:28
alex.barylski1-Dec-04 9:28 
GeneralLink Validation Pin
german_aspnet30-Nov-04 7:53
german_aspnet30-Nov-04 7:53 
GeneralRe: Link Validation Pin
aplope1-Dec-04 7:01
aplope1-Dec-04 7:01 
GeneralRe: Link Validation Pin
german_aspnet1-Dec-04 9:01
german_aspnet1-Dec-04 9:01 
GeneralRe: javascript typing effect Pin
Sven Cipido30-Nov-04 7:46
Sven Cipido30-Nov-04 7:46 
GeneralRe: javascript typing effect Pin
rgoyal2-Dec-04 1:27
rgoyal2-Dec-04 1:27 
GeneralRe: javascript typing effect Pin
Sven Cipido9-Dec-04 20:12
Sven Cipido9-Dec-04 20:12 
GeneralRe: javascript typing effect Pin
Sven Cipido9-Dec-04 20:15
Sven Cipido9-Dec-04 20:15 
GeneralWant to build content-based websites Pin
Ali Alaradi30-Nov-04 0:05
Ali Alaradi30-Nov-04 0:05 
GeneralRe: Want to build content-based websites Pin
Roger Wright30-Nov-04 3:31
professionalRoger Wright30-Nov-04 3:31 
GeneralRe: Want to build content-based websites Pin
Ali Alaradi30-Nov-04 6:35
Ali Alaradi30-Nov-04 6:35 
GeneralRe: Want to build content-based websites Pin
Roger Wright30-Nov-04 19:36
professionalRoger Wright30-Nov-04 19:36 
GeneralRe: Want to build content-based websites Pin
raouls30-Nov-04 3:32
raouls30-Nov-04 3:32 
GeneralRe: Want to build content-based websites Pin
raouls8-Dec-04 3:31
raouls8-Dec-04 3:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.