• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 531
  • Last Modified:

asp.net - javascript - $(document).ready

does this  launch everytime the page loads or when a user fills in a field of which there are many??

  <script language="javascript" type="text/javascript">
 $(document).ready(function () {



My_func() is actually located here:

  <script type="text/javascript" language="javascript" src="../JavaSct/Shoes.js"></script>
  • 2
1 Solution
Saqib KhanSenior DeveloperCommented:
this FIRES only once the whole document has finished loading in browser. its same as OnLoad event.
Kiran SonawaneProject LeadCommented:
>> does this  launch everytime the page loads or when a user fills in a field of which there are many??
Everytime whenever complete page loads OR reloads to browser. Not on when user fills in a field...
GlobaLevelAuthor Commented:
so on the form there are three sections with fields and a submit button on each section...so if they fill in the fields on the first section and hit the first button...then this would be called correct? bec ause they submitted the form...

also the OnLoad event....as in a method like...doesn this get loaded last, including after the page_load?

public sub OnLoad (object as sender, eventargs as e)

end sub
Saqib KhanSenior DeveloperCommented:
onload of client side javascript i was talking about NOT server side. whenever the page is reload or form submited to SAME PAGE it will fire.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now