http://www.htmlgoodies.com/beyond/javascript/article.php/3702926 - and I
didn't understand something that I am apparently not aware of: why are there
no tags around the JS and where is the "javascript" CSS class? Are these
connected in some way (doubtful, but just in case I was not aware of
something arcane)? I have not seen code without script tags surrounding the
code. Can you point me to a short tutorial or reference about this?
A sample of what they do in the article:
<div style="width: 700px;">
<textarea name="code" class="javascript" cols="60" rows="10">
var Ajax = new Object();
Ajax.isUpdating = true;
Ajax.Request = function(method, url, callback)
{
this.isUpdating = true;
this.callbackMethod = callback;
this.request = (window.XMLHttpRequest)? new XMLHttpRequest(): new
ActiveXObject("MSXML2.XMLHTTP");
this.request.onreadystatechange = function() { Ajax.checkReadyState(); };
this.request.open(method, url, true);
this.request.send(url);
}
Ajax.checkReadyState = function(_id)
{
switch(this.request.readyState)
{
case 1: break;
case 2: break;
case 3: break;
case 4:
this.isUpdating = false;
this.callbackMethod(this.request.responseXML.documentElement);
}
}
</textarea>
</div>
--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
jcharlesberry@gmail.com
"I think the real reason the Extropy Institute closed is because Ayn Rand
rose from her cryo-sleep" -digibrill
____
( @ o )
/ | | | | \ Chumby.com
------------------------------------------------------------------------------------------------------------------------------------------------
This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged. This information is
confidential information and is intended only for the use of the individual
or entity named above. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.
------------------------------------------------------------------------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
------------------------------------
Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/JavaScript_Official/post?act=reply&messageNum=16674
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/JavaScript_Official/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/JavaScript_Official/
<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
0 comments:
Post a Comment