Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Call Javascript on insert mode of formview only

Posted on 2010-09-21
3
Medium Priority
?
1,205 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 1500 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
Suggested Courses

604 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