Solved

Call Javascript on insert mode of formview only

Posted on 2010-09-21
3
1,189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: 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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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…

688 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