The direct use of things like onload is generally discouraged, since it
doesn't always play nice with more modern event handlers.

 

--Noah

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Wagner Moratelli
Sent: Friday, January 29, 2010 12:30 PM
To: [email protected]
Subject: [Trac] Javascript in tag <body>

 

I am try put some code in tag <body> of ticket form, but it don't appears on
source code of page:

source code ticket.html
</head>

  <body onload="alert('in onload');"> <!-- Here put some js code on onload
or other page event -->

    <py:def function="commentref(prefix, cnum)">
      <a href="#comment:$cnum"><small>$prefix$cnum</small></a>
    </py:def>
  
source code of page ticket.tml



 </head>


  <body>


    <div id="banner">  






      <div id="header">


Note that onload event and comment don't have in page.

Why this happen? Body tag have some restriction in trac ticket form?

Thanks
Wagner Moratelli

-- 
You received this message because you are subscribed to the Google Groups
"Trac Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to