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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Register Javascript code. 1
Why? //<![CDATA[ 1
Script Manager 1
Register Javascript File 3
ASP.NET AJAX and Javascript 4
Alert message not shown 3
Conflict event handling. 2
Javascript going to the wrong place? 1

Back
Top