4683 Posts in 1048 Topics by 664 members
Jump to:If this is your first visit, you will need to register before you can post. However, you can browse all messages below.
| Page: 1 | go to end | Reply | |
| Author | Topic: Adding <body> attributes programmatically | 373 views |

9 May 2008 at 5:27pm
Hi,
I want the ability to add some event attributes to the <body> tag of a Page but do so only through programming, not via a control or variable in a template file. I was thinking it would work like the Requirements includeInHtml method which seems to do the string replacing on the </head> tag
Is there something like that already available?
My question is:
What calls Requirements::includeInHtml in the execution pipeline/rendering process so I can look at writing a class and methods to add the attributes?
Seek and ye shall find. Answered my own question, it is SSViewer.php, what's my next move?
Last edited: 9 May 2008 at 5:48pm

9 May 2008 at 6:00pm
Why not use Requirements::javascript() to include a js file that sets window.onload?
| 373 views | |||
| go to top | Reply |