Re: Serving images from databases
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 17140
interpreted = N
texte = >>I strongly agree. I have spent more than a day trying to do exactly this>>with images (haven't you ever wanted to have some WebDNA execute whenever>>an image is served?), but failed, and now I understand why.>Dave McLeay said:>If excecuting WebDNA when an image is served is all you need, then there>are other ways to do it. In your
![]()
tag, make the src an .html or .tmpl>file (i.e.
![](somepage.html)
).>>On somepage.html you can do whatever WebDNA processing you need to do. Then>use [Redirect] (or [ReturnRaw] if you're not using 2.1.1) to send the>browser to the image file.>But what if the client doesn't handle redirect? This is not as uncommon asyou might think: legacy preformance measurement tools, older browsers,and so on. On the Internet, almost everything is a special case. I try toavoid this as much as possible, and try to make everything plain vanilla.And how about generating an image with content that changes based on someWebDNA code? That would be cool...RegardsThomas WB
Associated Messages, from the most recent to the oldest:
>>I strongly agree. I have spent more than a day trying to do exactly this>>with images (haven't you ever wanted to have some WebDNA execute whenever>>an image is served?), but failed, and now I understand why.>Dave McLeay said:>If excecuting WebDNA when an image is served is all you need, then there>are other ways to do it. In your
![]()
tag, make the src an .html or .tmpl>file (i.e.
![](somepage.html)
).>>On somepage.html you can do whatever WebDNA processing you need to do. Then>use
[redirect] (or
[returnraw] if you're not using 2.1.1) to send the>browser to the image file.>But what if the client doesn't handle redirect? This is not as uncommon asyou might think: legacy preformance measurement tools, older browsers,and so on. On the Internet, almost everything is a special case. I try toavoid this as much as possible, and try to make everything plain vanilla.And how about generating an image with content that changes based on someWebDNA code? That would be cool...RegardsThomas WB
Thomas Wedderburn-Bisshop
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
security problem (1997)
Associative lookup style? + bit more (1997)
faxing orders (2000)
Price characteristics? (1997)
Last desperate attempt (1998)
Emailer (1997)
setting HTTP response header (1998)
RE: PCS search results page (1998)
Replacing a variable within a variable. (1998)
encryption madness (2003)
Find one not all, code not working (2003)
WebCatalog for guestbook ? (1997)
StoreBuilder ADD 2 CART redirects to default.tpl - PLEASE STOPTHIS! (2002)
Press Release hit the NewsWire!!! (1997)
WebCatalog can't find database (1997)
[WebDNA] API - get Twitter information & Twitilyzer (before it went $) (2011)
RequiredFields template (1997)
Sample Tearoom Search Error (1997)
Sort Order on a page search (1997)
Duplicate Messages (1998)