[mrtg] Re: MRTG, indexmaker, and the bodytag option

Steve Rowe steve.rowe at sheridanc.on.ca
Tue Mar 25 22:32:07 MET 2003


At 04:55 PM 2003-03-24, Drew McClure wrote:
[snip]
>Here's the problem.  I want to insert onload="javascript:..."
>into the outputed index.html file.  When I perl indexmaker the resulted
>output removes the " and shows onload=javascript...  It removes the quotes
>I've specified in the --bodytag option when running indexmaker.
[snip]
>Here's my code:
>
>PERL indexmaker --bodytag
>onload="javascript:{if(parent.frames[0]&&parent.frames['MyFrameOne'].Go)pare
>nt.frames['MyFrameOne'].Go()}" mrtg.cfg --output index.html


Escape the quotes by adding a backslash like so:
indexmaker --output index.html --bodyopt onload=\"javascript\" mrtg.cfg

This gave the following result:
<BODY onload="javascript">



-
/ __|______| _ \________________________________________________________
\__ \      |   /       Data Systems Group - Sheridan College     ./\.
____/TEVE  |_|_\OWE       http://core.sheridanc.on.ca/dsg     _|\|  |/|_
   Network Analyst       905-845-9430 x2032     ICQ:14509731   \        /
_______________________________________________________________>______<_
Make something idiot proof and someone will make a better idiot.  /

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list