html - Ajax loading data from a different file -


can tell me why not working

<script> $(document).ready(function() {   $("#driver").ready(function(event){     $('#stage').load('index.php');   });  }); </script> 

what have on index.php table link, problem is hard click on 1 of link, have click 10 times make work, ideas why?

index.php

<script> $(document).ready(function() {     $('#stage').load('index.php'); }); </script> <table width="200" border="1">   <tr>     <td>name </td>     <td>url address</td>    </tr>   <tr>     <td><a href="https://www.google.com/">googe</a></td>      <td><a href="https://www.google.com/">google</a></td>   </tr>  </table> 

i include same function on index.php, idea if make change on index page, , reflect change on test page.

the ready event triggered on document, remove $("#driver").ready( part.

$(document).ready(function() {     $('#stage').load('index.php'); }); 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -