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

jon.hartman at verizon.com jon.hartman at verizon.com
Thu Mar 27 16:50:21 MET 2003


Did you try escaping out of the quote, like so? \"

-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On
Behalf Of Steve Rowe
Sent: Tuesday, March 25, 2003 3:32 PM
To: MRTG List
Subject: [mrtg] Re: MRTG, indexmaker, and the bodytag option


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



--
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