Click to See Complete Forum and Search --> : forcing text not to be a hyperlink hack
bob323
Nov 26th, 2002, 12:42 PM
I have a page that is generating a hyperlink dynamically like so:
<A HREF="http:www.google.com">Enter Site</A>
but I want to put some tags around this so it doesn't appear, or function as a link and just displays the text as normal. Any ideas?
Doe maar
Nov 27th, 2002, 07:51 AM
replace < by <
replace > by >
da_silvy
Nov 29th, 2002, 08:11 AM
is your host inserting this?
or are you wanting to display html source to the viewer?
jamieoboth
Dec 14th, 2002, 02:34 PM
If you're going to be writing a lot of code like that, it may be wise to consider investing in a program like DreamWeaver. That allows you to just tpye normally on the page. Saves time, and effort :)
James
mendhak
Dec 14th, 2002, 11:45 PM
I wouldn't advise getting an HTML editor. Makes you lazy and you forget the simple things like > etc.
wpearsall
Dec 17th, 2002, 04:05 PM
Originally posted by mendhak
I wouldn't advise getting an HTML editor. Makes you lazy and you forget the simple things like > etc.
also messes up the "HTML Compliance".
App's like MS Frontpage / Dreamweaver / PHP Edit and stuff like dat don't use the proper html formatting.
Zach Elfers
Dec 30th, 2002, 04:35 PM
Do:
<xmp>
<a href="link.html">this isn't real</a>
<input type="text" name="text" value="neither is this">
</xmp>
Rick Bull
Dec 31st, 2002, 07:48 AM
That's not valid HTML though, and is likely to break on certain browsers. Depends whether you're worried about that. If you can't actually change the HTML source, I'd probably do something like innerHTML with JavaScript. Not the best solution, but the best I could think of.
wpearsall
Dec 31st, 2002, 08:05 AM
Originally posted by Doe maar
replace < by <
replace > by >
this isnt that hard to do though?
Rick Bull
Dec 31st, 2002, 02:44 PM
I thought he meant he couldn't edit the code - it was embeded from a server-side call or something. Maybe not?
wpearsall
Dec 31st, 2002, 07:46 PM
:wonder if he has it figured out any how, no new replies from the guy?
weikiat
Feb 24th, 2003, 06:47 AM
It is very similar to notepad, just that it has high speed colour coding and autocomplete features and some other code generators.
weikiat
Feb 24th, 2003, 06:47 AM
It is very similar to notepad, just that it has high speed colour coding and autocomplete features and some other code generators. the url is www.twk.2ya.com
Mushroom Realm
Feb 24th, 2003, 08:11 PM
Use onclick in a div tag surrounding regular text.
Rick Bull
Feb 25th, 2003, 06:13 AM
You may find that won't work though as the link will take over. Also I think it won't validate (if you're bothered about that) as I remember Punkpie haven't problems until he removed the onclick handler.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.