Solved

Call Javascript on insert mode of formview only

Posted on 2010-09-21
3
1,183 Views
Last Modified: 2012-05-10
i want to call a javascript function on insert mode of form view only.
By registering script on the page it only call it once when first tme page gets load but it doesnt work on postback and even by putting it into some condition like checking formview current mode, it doesnot call the javascript function. I also tried it by calling it on onload of the window but no luck.

Can somebody share the trick to do it??
0
Comment
Question by:salmanfazal
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 33735832
>I also tried it by calling it on onload of the window but no luck.

Unbelievable! :)

Did you try to put it inline at the end of the page ? Can we see it ?
Try too :

window.onload = function() {
// content of the script
}
 
0
 

Author Closing Comment

by:salmanfazal
ID: 33813371
Thnx
0
 
LVL 82

Expert Comment

by:leakim971
ID: 33814186
You're welcome! Thanks for the points!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question