<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
<channel>
	<title>Ajax: The Definitive Guide Book Forum</title>
	<description><![CDATA[O'Reilly's Ajax: The Definitive Guide Book Forum]]></description>
	<link>http://forums.oreilly.com/index.php</link>
	<pubDate>Fri, 20 Nov 2009 19:02:56 -0500</pubDate>
	<ttl>120</ttl>
	<image>
		<title>Ajax: The Definitive Guide Book Forum</title>
		<url>http://www.oreilly.com/catalog/covers/9780596528386_thumb.gif</url>
		<link>http://forums.oreilly.com/index.php</link>
	</image>
	<item>
		<title>Essay Service</title>
		<link>http://forums.oreilly.com/index.php?showtopic=5563</link>
		<description><![CDATA[Custom essay writing service from professional writers with MA and PhD degrees. Custom <a href="http://www.research-service.com/custom-essay-writing.html" target="_blank">essay service</a> you can fully rely on.]]></description>
		<pubDate>Fri, 13 Nov 2009 10:23:31 -0500</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=5563</guid>
	</item>
	<item>
		<title>Question About Xml -- What Is This Element Or Node?</title>
		<link>http://forums.oreilly.com/index.php?showtopic=5364</link>
		<description><![CDATA[I'm parsing an XML file with Java but there's something in the XML I can't figure out.  Not sure if it's an "attribute" or data or an "element", etc. How would a person fetch the 16 digit id value that are listed? This XML file is well-formed and valid and created by EMC Documentum system.   Using DOM parser.<br /><br />I can parse and display all other data except for the Attachment ones<br /><br />...<br />    &lt;DropdownList1&gt;&lt;![CDATA[value1]]&gt;&lt;/DropdownList1&gt;<br />    &lt;DropdownList11&gt;&lt;![CDATA[value1]]&gt;&lt;/DropdownList11&gt;<br />    &lt;Attachment1 id_type="object_id"&gt;&lt;![CDATA[0984598e800302d6]&gt;&lt;/Attachment1&gt;<br />    &lt;Attachment1 id_type="object_id"&gt;&lt;![CDATA[0984598e800302d9]]&gt;&lt;/Attachment1&gt;<br />    &lt;Attachment1 id_type="object_id"&gt;&lt;![CDATA[0984598e800302dc]]&gt;&lt;/Attachment1&gt;<br />&lt;/CombinedForm2&gt;<br /><br />Thanks & this may not appear to be related to AJAX but I'm hoping someone will know.]]></description>
		<pubDate>Fri, 25 Sep 2009 11:48:53 -0400</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=5364</guid>
	</item>
	<item>
		<title>Where To Start?</title>
		<link>http://forums.oreilly.com/index.php?showtopic=1139</link>
		<description><![CDATA[Can anyone suggest a good starting point in this book for a junior programmer with limited experience that wants to learn ajax? I tried starting right at the beginning but really... page after page after page explaining some awfully simple things like "how to make a table in SQL' and then the book just jumps right into the ajax with pages of code separated with short vague paragraphs that have done nothing to help me out.<br /><br />]]></description>
		<pubDate>Mon, 09 Feb 2009 23:37:02 -0500</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=1139</guid>
	</item>
	<item>
		<title>Chat Server - Chapter 20 / Page 686</title>
		<link>http://forums.oreilly.com/index.php?showtopic=1122</link>
		<description><![CDATA[Fellows,<br /><br />I would apprecite if someone could provide the script that is used to create teh tables behind the Chat Server example.<br /><br />Thanks,]]></description>
		<pubDate>Sat, 07 Feb 2009 11:44:11 -0500</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=1122</guid>
	</item>
	<item>
		<title>Erase Drawing</title>
		<link>http://forums.oreilly.com/index.php?showtopic=1075</link>
		<description><![CDATA[the whiteboard example has the "drawing" functionality. Can it also erase the drawing?]]></description>
		<pubDate>Mon, 26 Jan 2009 10:54:08 -0500</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=1075</guid>
	</item>
	<item>
		<title>Tooltip Example 10.6</title>
		<link>http://forums.oreilly.com/index.php?showtopic=967</link>
		<description><![CDATA[Prototype JavaScript framework, version 1.6.0.3<br />Tooltip example 10-6<br /><br />I have been  struggling with this example. I have not yet implemented the Ajax functionality, though the tooltip does not seem to position in FF and Safari. Making an adjustment in the function <u>positionToolTip</u> by adding the pixel unit does the trick.<br /><br /><i>    return({<br />	top: tipTop+"px",<br />	left: tipLeft+"px",<br />    });</i><br /><br />I know it is minor, but imperative for this code to work cross-browser.  <img src="http://forums.oreilly.com/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> <br />And while I am at it to complete the code, the tooltip functionality should be evoked while loading the document. It is mentioned in the comments of the code, but hey ..  why not paste the code here. Place this at the beginning.<br /><i><br />    if(window.addEventListener) window.addEventListener('load', loadToolTips, false);<br />	else attachEvent('onload', loadToolTips);</i><br />]]></description>
		<pubDate>Thu, 08 Jan 2009 15:01:09 -0500</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=967</guid>
	</item>
	<item>
		<title>Whiteboard Example</title>
		<link>http://forums.oreilly.com/index.php?showtopic=873</link>
		<description><![CDATA[Anthony, first I must applaud your effort in writting such a large work.  Like anything, the larger (more complex) it gets the more risk there is for error or oversight.  I need a little help with your example for the White board.  I have entered the first section starting on page 703 and ending on 707.  When I attempt activating the WEB page I get an error on loading.  I have isolated the problem to the 1st function <!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->(marked in Red)<!--colorc--></span><!--/colorc-->, but fail to see the fault.  Even after emptying the first function and leaving the shell it still errors.  I have found similar functions on the internet and see no obvious error.  I am working off of a Linux Server and accessing the internet with Internet Explorer 7.<br /><br />I am hoping this section could start a discussion on the complete section Whiteboard and Chat.  I will even donate an example page with the work in progress as long as it is not abused.   <br /><br />Below is the code for the first section as taken from the book based on how I understood the instructions.  I retained the remark statements for ease of reading.  Since you did not say where to add Walter Zorn's code I added the link inside the Wrapper.<br /><br />You can see the WEB page in action (or not in action) at<br /><br /><a href="http://cls.rmtrain.com/vis_whiteboard/whiteboard.html" target="_blank">Example in Operation</a><br /><br />&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;<br />&lt;html xmlns-"http://www.w3.org/1999/xhtml" xml:lang-"en"&gt;<br />&lt;html&gt;<br />  &lt;head&gt;<br /><br />  &lt;title&gt;Whiteboard Example&lt;/title&gt;<br />  &lt;/head&gt;<br />  &lt;body&gt;<br />&lt;div id=bodyWrapper&gt;<br />  &lt!--All content goes here --&gt;<br />/* Path has been modified to protect WEB site */<br />  &lt;script type="text/javascript" src="http://XXX/XXX/ws_jsgraphics.js"&gt; &lt;/script&gt;<br />  &lt;script language=JavaScript&gt;<br />  &lt!--<br />  /**<br /> * This variable, POINT_SIZE , is the size of the pen drawing on the canvas<br /> */<br /> var POINT_SIZE = 1;<br /> /**<br />  * This variable, POINT_COLOR, is the color of the pen drawing on the canvas.<br />  */<br />  var POINT_COLOR = '#f00';<br />  /**<br />   * this variable, whiteboard, will be the instatntiation of the jsGraphics class.<br />  */<br />  var whiteBoard = null;<br />   /* Do all this when the page is done loading... */<br /><!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->   Event.observe(window, 'load', function() {<br />    /* Create a new canvas to use for the whiteboard */<br />    whiteBoard = new jsGraphics('whiteBoard');<br />    /* Set the initial color of the pen */<br />    whiteBoard.setColor(POINT_COLOR);<br />    /* Set the initial size of the pen */<br />    whiteBoard.setStroke(POINT_SIZE);<br />    /* Set up events to trap mouse events that occur on the /whiteBoard/ */<br />    Event.observe('whiteBoard', 'mousedown', StartDrawing);<br />    Event.observe('whiteBoard', 'mouseup', StopDrawing);<br />    });<!--colorc--></span><!--/colorc--><br />    <br />    /**<br />     * this function, StartDrawing, is called whenever there is a /mousedown/<br />     * event on the whiteboard, and astarts drawin on the canvas.<br />     * <br />     * @param {object} e The current trapped event.<br />     */<br />    function StartDrawing(e){<br />      /* did the event actually happen on the whiteboard? */<br />      if(Event.element(e).id == 'whiteBoard')<br />          DrawPoint(Event.pointerX(e), Event.pointerY(e));<br />      Event.observe('whiteBoard', 'mousemove', ContinueDrawing);<br />    }<br />    /**<br />     * This function, StopDrawing, is called whenever there is a /mouseup/<br />     *  event on the Whiteboard, and stops all drawing on the canvas.<br />     *  <br />     * @param {object} e The current trapped event.<br />     */<br />     <br />     function StopDrawing(e){<br />        /* Stop observin /mousmove/ on the board and reest the last coordinates */<br />        Event.stopObserving('whiteBoard', 'mousemove', ContinueDrawing);<br />        lastPointx = -1;<br />        lastPointY = -1;<br />    }<br />    <br />    /**<br />     * This function, Continue Drawing is called as long as there is a<br />     * /mouse/ event on the whiteboard, and draws on the canvas.<br />     * <br />     * @param {object} e The curretn trapped event.<br />     */<br />     function ContinueDrawing(e){<br />        /* did the event actually happen on the whiteboard? */<br />        if(Event.element(e).id == 'whiteBoard')<br />          DrawPoint(Event.pointerX(e), Event.pointerY(e));<br />     }<br />      <br />    /**<br />     ** This variable, X_OFFSET, is to act as the constant x-offset value of the <br />     * whiteboard.<br />     */<br />     var X_OFFSET = 10;<br />     /**<br />     ** This variable, Y_OFFSET, is to act as the constant Y-offset value of the <br />     * whiteboard.<br />     */                                                          <br />     var Y_OFFSET = 10;                                  <br />     /**<br />     ** This variable, lastPointX, holds the last mouse event X-coordinate on the <br />     * whiteboard.<br />     */                                                          <br />     var lastPointX = -1;<br />     /**<br />     ** This variable, lastPointY, holds the last mouse event Y-coordinate on the <br />     * whiteboard.<br />     */                                                          <br />     var lastPointY = -1;     <br />     <br />     /**<br />      * This function, DrwaPoint, draws the lines on the wiiteboard as the mouse<br />      * interaccts with it.  It takes into consideration all offsets for canvas<br />      * postion, and sets the last coordinates for the next line.<br />      * <br />      *@param {Integer} p_x The x-coordinate of the mouse event.                             <br />      *@param {Integer} p_y The y-coordinate of the mouse event.<br />      */<br />     function DrawPoint(p_x, p_y){<br />        /* Take offsets into consideration */<br />        p_x = p_x - (X_OFFSET + POINT_SIZE)<br />        p_y = p_y - (Y_OFFSET + POINT_SIZE)<br />        /* Is this the begining of a new drawin sequence? */<br />        If(lastPointX == -1 || lastPointY == -1){<br />          lastPointX = p_x;<br />          lastPointy = p_y;<br />        }<br />        <br />        /* Draw the line */<br />        whiteBoard.drawLine(p_x, p_y, lastPointX, lastPointY);<br />        /* Display the line */<br />        whiteBoard.paint();<br />        /* Set the last coordinates to the curretn coordinates */<br />        lastPointX = p_x;<br />        lastPointY = p_y;<br />     } <br />     //--&gt;<br />     &lt;/script&gt;                                          <br />     &lt;div id='whiteBoard'&gt;&lt;/div<br />     &lt;/div&gt;<br />  &lt;/body&gt;<br />&lt;/html&gt;<br /><br />Looking forward to an interesting discussion on this intriguing topic.]]></description>
		<pubDate>Thu, 18 Dec 2008 11:33:22 -0500</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=873</guid>
	</item>
	<item>
		<title>Example 7.9 Not Working</title>
		<link>http://forums.oreilly.com/index.php?showtopic=856</link>
		<description><![CDATA[I've been trying to get example 7.9 to work. I did everything exactly to no avail. Other times I tried to use examples in the book had the same problem. Is it something I'm doing? <br /><br />Here's what happens with the code.<br /><br />* It does nothing in firefox. No hiding of the desired element. Nothing happens.<br />* In ie sometimes it does nothing and other times it pretends to hide the DIV: parts of the DIV doesn't show on load of the page but when you scroll the page it appears, and the rest of the DIV still is not hidden as should be.<br />* In ie it always shows an error: "Effect" is undefined. I tried online to see if I could find the problem and its solution to no avail.  <br /><br />- WHAT ORDER SHOULD THE SCRIPTS BE PLACED? I DID EXACTLY AS THE BOOK INSTRUCTS WITH NO RESULT.]]></description>
		<pubDate>Sat, 13 Dec 2008 16:44:02 -0500</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=856</guid>
	</item>
	<item>
		<title>Chapter 4</title>
		<link>http://forums.oreilly.com/index.php?showtopic=794</link>
		<description><![CDATA[I wanted to drop a thread with changes I would like to make to Chapter 4 of the book, as there is one error that a reader caught, and there are a couple of places where the code could be tightened up.<br /><br />I want to first look at Example 4-1, which shows how to create an XHR object.  If I was really thinking about it when I first wrote this chapter, I would have shortened the name of the function to say, CreateXHR, instead of the terribly long createXMLHttpRequest.  The following shows the changes I would make to tighten this code, and make the variable names clearer:<br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>/* Example 4-1, Creating the XMLHttpRequest object. */<br /><br />/**<br /> * This function, CreateXHR, checks to see what object the browser supports<br /> * in order to create the correct XMLHttpRequest object type (XHR or ActiveX).<br /> *<br /> * @return Returns an XMLHttpRequest object, or null if one cannot be created.<br /> * @type Object<br /> */<br />function CreateXHR() {<br />	var retval = null;<br /><br />	if (window.XMLHttpRequest && typeof XMLHttpRequest != 'undefined') {<br />		try {<br />			retval = new XMLHttpRequest();<br />		} catch (ex) {<br />			retval = null;<br />		}<br />	} else if (window.ActiveXObject) {<br />		try {<br />			retval = new ActiveXObject('Msxml2.XMLHTTP');<br />		} catch (ex) {<br />			try {<br />				retval = new ActiveXObject('Microsoft.XMLHTTP');<br />			} catch (ex2) {<br />				retval = null;<br />			}<br />		}<br />	}<br />	return retval;<br />}</div><br /><br />I welcome comments and suggestions.  More on this chapter to come.]]></description>
		<pubDate>Mon, 01 Dec 2008 16:43:17 -0500</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=794</guid>
	</item>
	<item>
		<title>Welcome</title>
		<link>http://forums.oreilly.com/index.php?showtopic=691</link>
		<description><![CDATA[I would like to welcome everyone to the <i>Ajax: The Definitive Guide</i> book forum!  I hope that this will be a place to explore the examples from the book and expand and improve upon them.  I also hope this will be a place where we can help each other with our personal Ajax projects.<br /><br />If you have questions about Ajax, this is a great place to ask them!<br /><br />Anthony Holdener (author)<br />]]></description>
		<pubDate>Thu, 30 Oct 2008 01:11:57 -0400</pubDate>
		<guid>http://forums.oreilly.com/index.php?showtopic=691</guid>
	</item>
</channel>
</rss>