rated by 0 users
This post has 3 Replies | 3 Followers

Top 50 Contributor
Posts 9
Shishir Bhattarai Posted: 01-28-2010 11:29 AM | लग गरिएको

1.How to call dynamic javascript library function  in asp.net

Top 10 Contributor
Posts 71
gandip In reply to 02-01-2010 8:13 AM | लग गरिएको

http://msdn.microsoft.com/en-us/library/aa479011.aspx look if this works.

Don’t be idiot by arguing with an idiot .

Top 50 Contributor
Posts 9
Shishir Bhattarai In reply to 02-01-2010 4:27 PM | लग गरिएको

 i want to call seprate file with extension .js  how can i do that

Top 10 Contributor
पुरूष
Posts 191
ubuntubay In reply to 02-02-2010 6:24 PM | लग गरिएको

I don't know how it is done exactly with .NET (maybe there are some helper procedures, functions and standards you need to follow. Do it on your own), but I can tell you that you will need to output the following code for the browser:

<script language="Javascript" src="http://location.to/js/file[dot]js"></script>

eg, if your js is at http://www.example.org/myjsfunctions.js, you will need to output:

<script language="Javascript" src="http://www.example.org/myjsfunctions.js"></script>

Now, to use a function say myfunction() defined in the js file, you will need to output:

<script language="Javascript">//other js code here
myfunction();
//other js code here
</script>

Hope this helped. However, if you let us know what you want to accomplish using JS, and which js you wish to use, then we can assist you better.

Regards
ubuntubay

Page 1 of 1 (4 items) | RSS