jQuery AJAX functions

Posted by sundowatch on Stack Overflow See other posts from Stack Overflow or by sundowatch
Published on 2010-05-13T11:06:01Z Indexed on 2010/05/13 11:14 UTC
Read the original article Hit count: 146

Filed under:
|
|
|
|

I am using jQuery's load() function when getting a page to a div like that:

content.php page is :

<script type="text/javascript">
   $(".content").load("asd.php");
</script>

and asd.php is:

<script type="text/javascript">
   alert("Hello World");
</script>

When load ajax finished alert() message appears 3 times. Actually it must appears only 1 time. So load() function get page 3 times.

How can I get the page a time?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX