?
Solved

JQuery style $(document).ready doesn't fire sometimes

Posted on 2013-01-11
2
Medium Priority
?
1,159 Views
Last Modified: 2013-01-11
Hello Experts,

On my ASP.NET  application  I'm using JQuery style $(document).ready function It works fine(after first page load), it stops working after any postback happens on the page and also I'm use AJAX scriptmanger(not sure it causes any problem to fire Jquery $(document).ready function).

Please help.
0
Comment
Question by:ASPDEV
[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 Comments
 
LVL 18

Accepted Solution

by:
Rajar Ahmed earned 2000 total points
ID: 38767840
Just add this,
<script>
function pageLoad() {
                $(document).ready(function () {
                    alert('$(document).ready() has been called');
                });
        }
</script>

Open in new window

0
 

Author Closing Comment

by:ASPDEV
ID: 38768055
Perfect!
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

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
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 how to dynamically set the form action using jQuery.
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…

770 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