Gossamer Forum
Home : General : Perl Programming :

templating

Quote Reply
templating
Hi All:

Is there a method to calling an outside html page such as LWP::UserAgent->new. However, I would like to embed the page called within my own web page. Is this possible.

Thanks...
Quote Reply
Re: [TheSafePick] templating In reply to
You mean like so?

Code:
get_page('http://www.site.com/somethging/page.html');

sub get_page {
use LWP::Simple;
my $url = $_[0];
return get($url);
}

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [TheSafePick] templating In reply to
Hi Andy:

Thanks a bunch worked on the first try.

Cool
Quote Reply
Re: [TheSafePick] templating In reply to
Bear in mind that if the call fails, you've have a borked page display.