AJAX doesn't work on Chrome Dev ( 5.0.375.53) ?
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
- <title>M</title>
- <script type="text/javascript" src="http://www.google.com/jsapi"></script>
- <script type="text/javascript">
- google.load("jquery", "1.4.2");
- </script>
- </head>
- <body>
- <div id="main"></div>
- <script>
- $(document).ready(function() {
- $.ajax({
- type: "GET",
- url: "l.html",
- success: function(data){
- alert(data);
- $('#main').append(data)
- },
- dataType: 'html'
- });
- });
- </script>
- </body>
- </html>
l.html
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
- <title>L</title>
- </head>
- <body>
- <div>MOE</div>
- </body>
- </html>
Everything works fine in IE 8 and Opera 10, however, on CHROME 5.0.375.53, it seems the data returned is empty, any ideas? Thx