Script. Which event?

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hello,

In which page event should I add javascript blocks to my page or
include javascript files references?

Thanks,
Miguel
 
In which page event should I add javascript blocks to my page or
include javascript files references?

What do you mean exactly...?

Are you talking about dynamically setting a reference to a JavaScript file,
or e.g. simply popping a JavaScript alert to inform the user of
something...?
 
What do you mean exactly...?

Are you talking about dynamically setting a reference to a JavaScript file,
or e.g. simply popping a JavaScript alert to inform the user of
something...?

Hi,

All of them. I am creating a custom ScriptManager that:
1. Adds a reference to a Javascript file.
2. Adds some Javascript code:
<BODY>
<SCRIPT type="text/javascript">
...some JavaScript...
</SCRIPT>
</BODY>
3. Adds JQuery Scripts:
<head>
<script type="text/javascript" src="path/to/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// JQuery Code
});
</script>
</head>

I am a little bit confused in which events should I do this?

Thanks,
Miguel
 
Back
Top