You are here: Re: [PHP] Create Image From HTML « PHP « IT news, forums, messages
Re: [PHP] Create Image From HTML

Posted by Jochem Maas on 12/09/05 19:58

Shaun wrote:
> Hi,
>
> I am trying to create a Content Management System where users can click on
> various parts of a page and the content is displayed in a JavaScript text
> editor. For each tag I intend to wrap a link (<a href>) around it. This
> works fine for <p> tags but I cant put a link around a <table> tag because
> it isnt allowed in HTML. My idea to get around this is make an image from
> everything between the table tags with php so I can make it link to another
> page, is this possible?

of course its possible - but I wouldn't bother trying though! nigh on impossible
and if you did manage to writing something for it you wouldn't be able to buy
the hardware needed to run it :-)

an alternative to wrapping things in A tags is to inject onclick handlers
into all the relevant tags, so you TABLE tag would becone something like:

<TABLE onclick="myFunction(); return false;" .... >

where myFunction() does whatever it needs to do, taking any parameters which you
might want to supply, e.g.:


<TABLE onclick="myFunction(1234); return false;" .... >


.... and:

function myFunction(elementDatabaseID)
{

}

I'm not saying its that easy to implement properly but I thinks its viable at least

>
> Thanks for your advice
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация