firebug says it works! after the click the dom was changed to :

<html><head><title>Ajax with jQuery Example</title>


<script type="text/javaScript" src="/js/jquery.js"></script>
<script type="text/javaScript">
$(document).ready(function(){
 $("#ajax").click(function(){
   $("#quote p").load("test2.html");
 });
});
</script></head><body>
  <input id="ajax" value="Ajax" type="submit">
  <div id="quote"><p><p>Why won't you work?</p></p></div>
</body></html>


Of course you have 2 <p>s ... but that's because you have a p in 1 and a p
in 2.

On 5/16/07, Sean <[EMAIL PROTECTED]> wrote:


Hi all,

I'm very new to jquery and am really excited about it.  But I'm having
a rough time even getting the simplest .load ajax call to work in IE.

Here's my code, it works fine in Firefox 2, but I get a Line 1, Char
1, Unknown runtime error in IE.

test1.html

<html>
<head>
<title>Ajax with jQuery Example</title>
<script type="text/javaScript" src="jquery-1.1.2.pack.js"></script>
<script type="text/javaScript">
$(document).ready(function(){
   $("#ajax").click(function(){
     $("#quote p").load("test2.html");
   });
});
</script>

</head>
<body>
    <input type="submit" id="ajax" value="Ajax">
    <div id="quote"><p> </p></div>
</body>
</html>

test2.html

<p>Why won't you work?</p>

Any clues would be greatly appreciated.  I cannot figure out what I'm
doing wrong :(

Thanks,
Sean




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

Reply via email to