Gossamer Forum
Home : Products : Links 2.0 : Discussions :

site_html.pl

Quote Reply
site_html.pl
Hi!

Any particular reason as to why site_html.pl causes error when I try to add this code to the home page segment: <a href="http://skrue.kvalito.no/...tvu.pl?pagename=nsdb">
<script language="JavaScript">
<!--
document.write("<img src=http://skrue.kvalito.no/~ameneon/cgi-bin/statwerk/ezstatlg.pl?pagename=nsdb&ref="+top.document.referrer
+" width=16 height=16 border=0>");
// -->
</script>
</a>
<noscript>
<img src="http://skrue.kvalito.no/~ameneon/cgi-bin/statwerk/ezstatlg.pl?pagename=nsdb&ref=noscript" width=16 height=16 border=0>
</noscript>[/code]I even tried creating a value for the whole thing, like this


$statsnsdb = qq~
<a href="http://skrue.kvalito.no/...tvu.pl?pagename=nsdb">
<script language="JavaScript">
<!--
document.write("<img src=http://skrue.kvalito.no/~ameneon/cgi-bin/statwerk/ezstatlg.pl?pagename=nsdb&ref="+top.document.referrer
+" width=16 height=16 border=0>");
// -->
</script>
</a>
<noscript>
<img src="http://skrue.kvalito.no/~ameneon/cgi-bin/statwerk/ezstatlg.pl?pagename=nsdb&ref=noscript" width=16 height=16 border=0>
</noscript>
~;

And then calling it in the same homa page setion by placing $statsnsdb on a seperate line.

?

Last edited by:

malmklang: Feb 28, 2002, 2:18 AM
Quote Reply
Re: [malmklang] site_html.pl In reply to
Try using qq| --- |;. For some reason qq~ doesn't like javascript. Never really bothered trying to work it out, but I just use qq| |; where it is needed.

Hope that helps Tongue

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: [AndyNewby] site_html.pl In reply to
Well, I'll be pretty much darned. Werks like a charm. I would've never thought of this my self.

Thanks a whole bunch dude :)

Owe you one Wink
Quote Reply
Re: [malmklang] site_html.pl In reply to
Yah, and now another problem has appeared :)

Any ideas why the above mentioned js code causes a "no access" error alert when used inside a html page that is included in a frameset ?
Quote Reply
Re: [malmklang] site_html.pl In reply to
Glad it worked. I'm no expert on Javascript, so I'm afraid I can't help you with that one Frown

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: [malmklang] site_html.pl In reply to
solution: use templates!! site_html.pl is um... deprecated.

btw, is crapping out because you have a "~" in your code. Any character used to denote string blocks must be escaped if used in the string. Ideally, if you must do your html in site_html.pl, you should use HERE documents...

Code:
my $output = <<HTML_SEGMENT;

your code here

HTML_SEGMENT

--Philip
Links 2.0 moderator