Javascript-форум (https://javascript.ru/forum/)
-   jQuery (https://javascript.ru/forum/jquery/)
-   -   Помогите с простейшим примером (https://javascript.ru/forum/jquery/21474-pomogite-s-prostejjshim-primerom.html)

Moran 11.09.2011 14:21

Помогите с простейшим примером
 
Доброго времени суток, уже 2 дня бьюсь, не могу понять где накосячил...

HTML-код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=windows-1251">
	<title>Тест jQuery</title> 
    <script type="text/javascript" src="jquery-1.2.6.js"></script>
    <script type="text/javascript" src="test.js"></script>
</head>
<body> 
     <table>
        <tr>
           <td>
              <div>
                 <a id="link1" href="#">Тестовый линк 1</a>
              </div>
           </td>
           <td>
              <div id="mainWindow">
                 
              </div> 
           </td>
        </tr>
     </table>       
</body>
</html>


jQuery test.js:
$(document).ready(function(){
    $('#link1').click(function(){
        $('#mainWindow').load('1.html');
    });
});


1.html:
<b>Работает!!!</b>


Пробовал в Chrome13 и FF6, не работает.

Moran 11.09.2011 14:41

Разобрался сам, тему можно удалить.


Часовой пояс GMT +3, время: 06:08.