html - jQuery AJAX struggle -


i searched internet until went blue cannot figure out , why not working.

i have javascript working firefox. no other browser.

so, decided go jquery.

what want this: - have folder. - in folder, have html.html file. main website. - have file home.html.

html.html looks this:

<html>     <head>         <title>             struggeling jquery ajax! *******         </title>     </head>     <body>         <div="one">             load page here         </div>     </body> </html> 

and home.html looks this:

    <html>         <head>          </head>         <body>             please load div! (this text displayed in other words)         </body>     </html> 

how on earth can using jquery? please me. cannot right.

=====================================================================================

ok, how looks right now. in file, have home.html:

<html>     <head>         <title>             struggeling jquery ajax! *******         </title>         <script language="javascript" src="jquery.js"></script>         <script>             $(document).ready(function() {                 $("#one").load("html.html body");             });         </script>     </head>     <body>         <div id="one">             load page here         </div>     </body> </html> 

i downloaded development version of jquery , file (jquery.js) home.html located.

then in other html.html looks this:

<html>     <head>      </head>     <body>         please load div! (this text displayed in other words)     </body> </html> 

but not working. dont "please load div! (this text displayed in other words)"

try jquery

<script> $(document).ready(function() {     $("#one").load("home.html body"); }); </script> 

also, update html.html (i dont name, btw, use index.html main page) target div id.

<div id="one"></div> 

edit: see no place reference jquery lib, sure that!


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -