Webring code on page
Does anyone know of another way, of putting a ring code on a page. Other than a Textarea box. Do not even go to a 40 mile long Javascript, I don't want that!.
A text area box will not vilidate with HTML in it. I have searched the web over, and cannot find another way.
dk01 posted this at 20:10 — 17th April 2006.
He has: 516 posts
Joined: Mar 2002
Wrap your code with
?
steve40 posted this at 21:04 — 17th April 2006.
He has: 490 posts
Joined: May 2005
Well actually it's a banner code, but all amounts to the same thing=html.
dk01 posted this at 21:09 — 17th April 2006.
He has: 516 posts
Joined: Mar 2002
Any way to post a link to the page. Its hard to diagnose without the code.
Busy posted this at 21:32 — 17th April 2006.
He has: 6,151 posts
Joined: May 2001
You could just use a forms input field:
Or just display the code onthe page
blah blah blah
A textarea with text in it should validate, can be done in xhtml so should be done in html, some code might be the go
steve40 posted this at 22:11 — 17th April 2006.
He has: 490 posts
Joined: May 2005
Ok; this is what it looks like. If it is not in the textarea it goes hot, and downloads the banner to the page. That I don't want. But this way it produces parser errors, because you are not suppsed to have html in a textarea, but it works! and is the way everybody does it.
But there should be a way to do the same thing, without parser errors. Besides I don't think the web police should make decisions about something that works, just because they don't personally like it. The way I see it, if it was not correct, it would not work.
dk01 posted this at 22:23 — 17th April 2006.
He has: 516 posts
Joined: Mar 2002
Can you use php? If so just do this:
<?php
echo('<textarea name=\"banner_code\" rows=3 cols=65>');
echo(htmlentities('<center><a href=\"http://blueridgesnaps.50webs.com/\"><img src=\"http://img.photobucket.com/albums/v116/steve40/BRS_Banner.jpg\" border=\"0\" alt=\"Steve\'s Blue Ridge Snaps - Nature and Landscape Photography.\"></a></center>'));
echo('</textarea>');
?>
steve40 posted this at 22:54 — 17th April 2006.
He has: 490 posts
Joined: May 2005
Not on my providers server, no php. This is like being between a rock, and a hard place. I am about wore out with this validating stuff anyway. I think I will block out everybody that does not run IE, an let it go at that.
dk01 posted this at 23:21 — 17th April 2006.
He has: 516 posts
Joined: Mar 2002
Wait... why don't you just change < to < and > to > ?? That will cause it to validate and display properly.
dk01 posted this at 23:22 — 17th April 2006.
He has: 516 posts
Joined: Mar 2002
If you use this it will display correctly:
<textarea name="banner_code" rows=3 cols=65><center><a href="http://blueridgesnaps.50webs.com/"><img src="http://img.photobucket.com/albums/v116/steve40/BRS_Banner.jpg" border="0" alt="Steve's Blue Ridge Snaps - Nature and Landscape Photography."></a></center></textarea>
'steve40 posted this at 23:59 — 17th April 2006.
He has: 490 posts
Joined: May 2005
Well there was no problem with it displaying, it just would not validate. But now it does. I use those little sign language thingys for commas, and dashes all the time. But I never thought about it.
I noticed just as soon as I copied it to the page the blue on the href went out, so I thought --- yea it might validate but will it work. So I copied it to a temp html page, and pop there was the banner. The little sign thingys made it appear as text on the page, so the WDG police couldn't catch it.
Many Thanks ... Steve O.
PS. I knew there was a way to do it.
dk01 posted this at 03:00 — 18th April 2006.
He has: 516 posts
Joined: Mar 2002
Good to hear Steve.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.