> Once I've loaded a url into the cache, how do I access what's there? I'm
> assuming (dangerous, I know) that the html is then available to parse
> through. I want to pull out some strings from an html file on a remote
> server. Perhaps a nudge towards what the MetaCard http facilities are
> used for, or a pointer to where the features are described, is what I
> really need. Thanks!
You just use the URL like you would any other container (field,
variable, etc.):
put url "http://somewhere.org/filename.html" into x
A more complete example that will set the title bar of a stack window
to "MetaCard Home Page":
local t
if matchtext(url "http://www.metacard.com/", "<TITLE>(.*)</TITLE>", t)
then set the title of this stack to t
else #check the result to see why the download failed
You don't need to "load" something before using it. "load" is just a
way to prefetch data to maximize the chances that it will already be
on the local machine when you get around to using it. If you don't
"load" a URL before using it, or if it hasn't finished downloading,
the engine will just wait until it *is* all available before
continuing. If the HTTP server is on your local network (your
"intranet"), response times should be very short and you probably
won't ever need to use "load".
Regards,
Scott
> -- Allen Morgan
> Novartis Biotechnology and Genomics Research Center
> Research Triangle Park, NC
> (919) 541-8675
> (919) 541-8585 FAX
>
***************************************************************
Scott Raney raney@metacard.com http://www.metacard.com
Any sufficiently advanced technology
is virtually indistinguishable from magic -- Clarke's law