tcb
Posts: 34
|
| Posted: 05/22/2009, 1:22 PM |
|
Hi,
Simple question (yes, I've searched the forum ;)
I'm using PHP to generate Javascript in a BeforeShow event (it doesn't seem to matter which component's BeforeShow is used). The scripts work fine, but CodeCharge inserts the Javascript before the <HTML> tag. I don't think this is legal, although no browsers have complained yet.
How can I get my JS into <HEAD> while still generating it within the BeforeShow server-side event handler? Or is it legal to leave it as it is?
TIA.
|
 |
 |
jjrjr1
Posts: 942
|
| Posted: 05/22/2009, 5:47 PM |
|
Make your insertion point a template variable and write your js to the template variable
Not exactly sure how you are doing it now.
If you can post the code at ccselite.com and I can look at it for you.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
tcb
Posts: 34
|
| Posted: 05/22/2009, 5:57 PM |
|
Thanks, that works fine!
I was just echoing before.
|
 |
 |
damian
Posts: 838
|
| Posted: 05/22/2009, 8:31 PM |
|
if you insert your code manually without assigning it to a lbael it *always* executes first
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
|