YOu have Firefox. But are you using Firebug? If not, then may I suggest you do? The reason being that with Firebug you can see exactly what is sent to the server, and what response is received. Perhaps there's something odd going on with the response? Are you getting an error code back? Does the response actually contain anything? Is the target URL in the same domain? Firebug will help with all of this...
Also, if the URL in question does not have valid HTML, it could cause some grief. As an aside, there's no need for the page_address variable - you *could* just call obj.href in on the url: line..... But that's a style thing... :) HTH Shawn [EMAIL PROTECTED] wrote: > Hi. > > I have just setup a basic site where you click the link and jQuery > retrieves the link via ajax. Code as follows: > > <script type="text/javascript"> > function fetchURL(obj){ > > var page_address = obj.href; > > $.ajax{( > url: page_address, > type: "GET", > dataType: "html", > error: function(e){ > alert("An Error has occured" + e); > }, > success: function(data){ > $("#returned_data").empty(); > $("#returned_data").append(data); > } > }); > > return false; > } > </script> > <a href="about.php" onclick="fetchURL(this); return false;">About</a> > > This script works fine with Firefox 2 and Firefox 3 Beta 2. However, > as soon as you use Internet Explorer it all goes wrong and you get a > blank screen. > > Does anyone know why this may be? > > Notes: > I am using the latest version of Jquery > Internet Explorer version 7 (Latest Available) > > Thanks. > Alex > > http://www.ajtrichards.co.uk