|
-
Nov 26th, 2002, 01:42 PM
#1
Thread Starter
Addicted Member
forcing text not to be a hyperlink hack
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?
-
Nov 27th, 2002, 08:51 AM
#2
Addicted Member
replace < by <
replace > by >
-
Nov 29th, 2002, 09:11 AM
#3
Conquistador
is your host inserting this?
or are you wanting to display html source to the viewer?
-
Dec 14th, 2002, 03:34 PM
#4
Lively Member
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
Ich widerstehe allem - nur nicht der Versuchung
(I can resist anything but temptation)
-
Dec 15th, 2002, 12:45 AM
#5
I wouldn't advise getting an HTML editor. Makes you lazy and you forget the simple things like > etc.
-
Dec 17th, 2002, 05:05 PM
#6
Frenzied Member
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.
-
Dec 30th, 2002, 05:35 PM
#7
Member
Do:
<xmp>
<a href="link.html">this isn't real</a>
<input type="text" name="text" value="neither is this">
</xmp>
Tolkien is the greatest writer ever.
-
Dec 31st, 2002, 08:48 AM
#8
Frenzied Member
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.
-
Dec 31st, 2002, 09:05 AM
#9
Frenzied Member
Originally posted by Doe maar
replace < by <
replace > by >
this isnt that hard to do though?
-
Dec 31st, 2002, 03:44 PM
#10
Frenzied Member
I thought he meant he couldn't edit the code - it was embeded from a server-side call or something. Maybe not?
-
Dec 31st, 2002, 08:46 PM
#11
Frenzied Member
:wonder if he has it figured out any how, no new replies from the guy?
-
Feb 24th, 2003, 07:47 AM
#12
Addicted Member
USe this html editor
It is very similar to notepad, just that it has high speed colour coding and autocomplete features and some other code generators.
Unignal Software Team Developer
-------------------------------------------
Current Project:
Noter Light
-------------------------------------------
http://www.unignal.sg.tf
-
Feb 24th, 2003, 07:47 AM
#13
Addicted Member
USe this html editor
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
Unignal Software Team Developer
-------------------------------------------
Current Project:
Noter Light
-------------------------------------------
http://www.unignal.sg.tf
-
Feb 24th, 2003, 09:11 PM
#14
Fanatic Member
Use onclick in a div tag surrounding regular text.
-
Feb 25th, 2003, 07:13 AM
#15
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|