Re: Create Image From HTML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux