Jump to content


javascript syntax

  • Please log in to reply
2 replies to this topic

#1 natalieG

  • Members
  • PipPipPip
  • Advanced Member
  • 63 posts

Posted 17 July 2006 - 12:23 AM

We are  working  with Ajax nd have the below script: We keep getting an"error on page"  mesage and cannot
fgure why. We are not asking on AjaxGold help, just javascriupt help.  Is thewre anything obvious here that we

<title>Posting data and returning text with Ajax Gold</title>
<script type = "text/javascript" src = "ajaxgold.js"></script>
<script language = "javascript">
function display(text)
document.getElementById('targetDiv').innerHTML = text;
<h1>Posting data and returning text with Ajax Gold</h1>
<input type = "button" value = "Get the message"
onclick = "postDataReturnText('shownotes2.php', 'INDEXA=12', display)">
<div id="targetDiv">The fetched text will go here.</div>

#2 bigpoppa

  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 17 July 2006 - 01:17 AM

WTF is AJAX???? I have seen it everywhere and am to lazy to fig it out for myself

#3 nogray

  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 17 July 2006 - 04:44 PM

I don't see any errors in the code you posted. If you are getting an error, please post it here. You can see the actual JS errors in FireFox by clicking on "Tools"->"JavaScript Council"

for the bigpoppa

AJAX stands for "Asynchronous JavaScript and XML" and by definition from domscripting.webstandards.org it means

A scripting technique for silently loading new data from the server. Although AJAX scripts commonly use the soon to be standardized XMLHttpRequest object, they could also use a hidden iframe or frame. An AJAX script is useless by itself. It also requires a DOM Scripting component to embed the received data in the document.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users