Solved

Call Javascript on insert mode of formview only

Posted on 2010-09-21
3
1,186 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

733 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