RE: Regex Help for URL's [ANSWER]

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

 



> If we are talking clickable links, why not focus on the <a> construct
> itself? Otherwise URLs are just part of the page's textual content... Very
> difficult to parse that

> Disseminating an <a> tag isn't brain-meltingly difficult with a regex if
> you put your mind to it... With or without quotes, be they single, double 
> or non-existent

>If I've misunderstood please chastise me :)

>HTH

>Dan


Dan,

That's what I was doing.  I was parsing A:HREF, IMG:SRC, etc.

But when I implemented a new feature on my network, where you could click on
a row and have it take you to another domain, I need a better solution.

Go to http://www.enetwizard.ws and it might make more sense.

All the links on the left have an ONCLICK=location.href = '' attribute in
the TR tag.

This solution allowed me to make sure those links included the session
information, just like the A:HREF links do.

It also had the advantage of updating the links in my CSS.

-- 
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