Solved

Call Javascript on insert mode of formview only

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now