17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1001 Views |
-
Adding <body> attributes programmatically

9 May 2008 at 5:27pm Last edited: 9 May 2008 5:48pm
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?
-
Re: Adding <body> attributes programmatically

9 May 2008 at 6:00pm
Why not use Requirements::javascript() to include a js file that sets window.onload?
| 1001 Views | ||
|
Page:
1
|
Go to Top |


