Log in

View Full Version : dynamic content generation



nefedude
04-02-2008, 03:16 PM
Hi folks-
I'm trying to find a script/css or a way to dynamically generate content based on referring url. The primary content I need to be different is links to various pages within my web. I don't know if using a div box is the best way to do this or if there are other, better ways out there to accomplish this task.

Any opinions or suggestions would be welcome.

nefedude

Medyman
04-02-2008, 06:13 PM
PHP: HTTP_REFERER (http://www.depiction.net/tutorials/php/referrer.php)

nefedude
04-02-2008, 06:26 PM
Hey Medyman-
Not quite what I was looking for. I can use javascript to obtain the referring url. The problem I'm having or would like to solve is how do I utilize that infomormation after I've captured it to populate the page with the text and links that I want to associate with the referring url? The page would be primarily static with these dynamic changes merged or blended. I don't know if it can be done with html/javascript/css or if I have to leverage something like php or xml or some sort of page template with some static content and variables etc or just use a boatload of if/then statements.

tfit
04-03-2008, 04:01 PM
Have a look here http://www.netmechanic.com/news/vol4/javascript_no14.htm

Medyman
04-03-2008, 04:59 PM
Not quite what I was looking for. I can use javascript to obtain the referring url.

That's fine...but make sure to have some fallback for people who don't have javascript turned on. Otherwise, you page might be rendered useless.