On Mon, 21 Mar 2005, Jon Sumpster wrote:
I wonder if you might have any pointers for my situation; in our application, the 'wrapper' is an HTML page that's content is dynamically rendered when it's URL is called, and in which the appropriate content (such as links, images, styling etc.. which can change over time) is placed.
I think that there are at least a couple ways to achieve the results that you are looking for. More below.
the appropriate position); the only apparent alternative is to create a static wrapper page which resides in the common directory, but then that needs updating as the design of the site changes, something that I was hoping to avoid as it defeats the 'change once, apply everywhere' principle.
Depending on the frequency with which updates occur, you might consider setting up a cron job, or similar, that periodically retrieves the current templates from the remote machine using something like curl, wget, scp, etc. It is a bit of a kludge, but it might do the trick for infrequent updates.
Is there perhaps a way that we can call the htsearch program to return a stream rather than an HTML page, which can then be manipulated and placed in the required position?
Yes, I think that you could achieve this type of functionality with a wrapper script. You would need something that accepted a query, called htsearch behind the scenes, and then built the result page based on what was returned by htsearch. If you strip the local templates of HTML and leave only the variables you are interested in, you should be able to get back something vaguely resembling a stream.
If this sounds like it might be an option, take a look at the following.
http://www.devshed.com/c/a/PHP/Search-This/
While it is not directly applicable, it should provide some insight into how you might go about wrapping your call to htsearch. It also provides examples of modified templates that support some other entity building the final result page.
Jim
------------------------------------------------------- This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005 Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click _______________________________________________ ht://Dig general mailing list: <[email protected]> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general

