Cam Proctor wrote: > > > If you're just serving up static HTML from your results, you can't. The > > search CGI would somehow have to modify the static files on your server > > based on the search. > > this is what i saw in the archives, don't remember who said that though. > my first thought was why? > > > If you're serving dynamic content, you could pass $(WORDS) to the > > CGI/Perl/PHP/Whatever and have that code take care of the highlighting. > > you dont' have to be doing "true dynamic content" to do this. what i was > was seeing (there maybe a couple gotcha's yet to be found) but is > basically this, > > modify the long.html and short.html to correct the links so that they > will pass the info to a cgi script (perl, c, python, php, whatever) with > the URL of the document and the $(WORDS) as two arguments. the script > would then parse and highlight (based on what color etc you want) and then > just print the data to stdout (your browser). that way there were be > no need to "modify the file on disk". you are still serving up "static" > files, just parsing them before/(as you are) sending them. > > that is why i said it actually looks VERY simple to me. Can you say "Can of Worms"? Please think about this a little more. In essence you will have to proxy/filter the retrieved HTML page. This means that the base URL will be different so all relative links and URLs for any components referenced from that page (images, activeX controls, applets, etc.) will have to be modified. The proxy will have to interpret the HTML and modify the right tags. Now think about the problems with CSS, Layers, Javascript, Frames, etc... I know this is not impossible to solve since my company actually does this... I know how big a job this is to get right. :-) -- Andrew Scherpbier <[EMAIL PROTECTED]> Contigo Software <http://www.contigo.com/>
begin:vcard n:Scherpbier;Andrew tel;fax:+1 619-278-2502 tel;work:+1 619-278-2329 x115 x-mozilla-html:FALSE url:http://www.contigo.com/ org:Contigo Software<br><img src="http://www.contigo.com/gifs/logo.gif">;Research & Development version:2.1 email;internet:[EMAIL PROTECTED] title:Vice President R&D note:<a href="http://maps.yahoo.com/py/maps.py?Pyt=Tmap&addr=8334+Clairemont+Mesa+Blvd.&csz=San+Diego%2C+CA+92111&Get+Map=Get+Map">Yahoo Map</a> adr;quoted-printable:;;8334 Clairemont Mesa Blvd.=0D=0ASuite 204;San Diego;CA;92111;USA x-mozilla-cpt:;26848 fn:Andrew Scherpbier end:vcard