On Monday, November 4, 2013 1:12:54 PM UTC-8, Roger Oberholtzer wrote: > > > > Roger > > > On Nov 4, 2013, at 9:11 PM, Steffen Hoffmann <[email protected]<javascript:>> > wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > >> On 04.11.2013 13:52, [email protected] <javascript:> wrote: > >> But I no longer have a body tag. > > > > Is this another/follow-up question? If so, it was very subtle IMHO. > > Same question. Just the next step in solving it. Since I don't think I can > put a <body> tag in a Trac #!html block, I am not sure how to call a > function in the script. In my case it is the init() function in the > javascript I have included in the block. > > > Roger
If you want the script to be executed on page load, I think you could just use jQuery ready: http://api.jquery.com/ready/ You could either put this in OpenLayers.js, or load another file that calls OpenLayers. -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/groups/opt_out.
