javascript - How to get Firebug to tell me what error jquery's .load() is returning? -


i'm trying find out data/error jquery's .load() method returning in following code (the #content element blank assume there kind of error).

  1. where find in firebug content or error .load() returning?
  2. how can use console.log find out @ least content being returned?

alt text http://www.deviantsart.com/upload/ksqe5b.png

<!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">     <head>         <script type="text/javascript"         src="http://www.google.com/jsapi"></script>         <script type="text/javascript">             google.load("jquery", "1.3.2");             google.setonloadcallback(function() {                 $('#loadbutton').click(loaddatafromexernalwebsite);             });             function loaddatafromexernalwebsite() {                 console.log("test");                 $('#content').load('http://www.tanguay.info/web/getdata/index.php?url=http://www.tanguay.info/knowsite/data.txt', function() {        alert('load performed.');     });             }         </script>     </head> <body>     <p>click button load content:</p>     <p id="content"></p>     <input id="loadbutton" type="button" value="load content"/> </body> </html> 

the 'net' tab of firebug should show http requests (including other domains)


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -