You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by bb...@apache.org on 2007/07/06 01:35:35 UTC
svn commit: r553690 -
/incubator/xap/site/docs/xmodify/content/sendmeapic.html
Author: bbuffone
Date: Thu Jul 5 18:35:34 2007
New Revision: 553690
URL: http://svn.apache.org/viewvc?view=rev&rev=553690
Log:
fixed several typos.
Modified:
incubator/xap/site/docs/xmodify/content/sendmeapic.html
Modified: incubator/xap/site/docs/xmodify/content/sendmeapic.html
URL: http://svn.apache.org/viewvc/incubator/xap/site/docs/xmodify/content/sendmeapic.html?view=diff&rev=553690&r1=553689&r2=553690
==============================================================================
--- incubator/xap/site/docs/xmodify/content/sendmeapic.html (original)
+++ incubator/xap/site/docs/xmodify/content/sendmeapic.html Thu Jul 5 18:35:34 2007
@@ -26,19 +26,20 @@
utilizes xModify to page the display of the image grid. This is a
perfect example of an application that can utilize xModify to make it easy to page data. Send me a pic
loads data from flickr.com to via a server request them process the information into an xModify XML document.
-When the XAP client receives the response to the page request XAP will execute the instructions in any modification
+When the XAP client receives the response to the page request, XAP will execute the operations in any modification
block.
<p><h2><span class="Title">Images</span></h2></p>
<p align="center"><img src="../images/initial-screen.gif"></p>
<p>
- The initial screen to the application display the process of loading images and send them to a cell phone. Once a
- user click a popular search or types in the search field and clicks "Submit Query" the screen will transition to
- the next screen that display the results of the query.
+ The initial screen to the application displays the process of loading images and sends them to a cell phone. Once a
+ user click a popular search link or types in the search field and clicks "Submit Query" the page will transition to
+ the next screen that displays the results of the query.
</p>
<p align="center"><img src="../images/initial-search.gif"></p>
<p>
- Users can page through the image using the "Prev" and "Next" buttons. Once the buttons is clicked that
+ Users can page through the image using the "Prev" and "Next" buttons. Once the buttons is clicked, the user will be
+ told that the data is being loaded, and the new page of data will be fetched.
</p>
<p><h2><span class="Title">Create the application</span></h2></p>
@@ -59,7 +60,7 @@
<script>
//keep a reference to the application that was created
- //will use it later to execute a xModify.
+ //we will use it later to execute a xModify.
var myApp = null;
function createXap(){
@@ -80,8 +81,8 @@
<p>
This is a two step process;
<ul>
- <li>from the buttons call the JavaScript methods</li>
- <li>call the fireEvent function on the XAP application reference</li>
+ <li>From the buttons onclick event call a JavaScript function</li>
+ <li>In the JavaScript function call the fireEvent function on the XAP application reference</li>
</ul>
</p>
@@ -113,8 +114,8 @@
}
function searchFlickr(searchValue, page){
- //If the search value is null pull it out of the search value
- //Input field.
+ //If the search value is null, pull it out of
+ //the search value input field.
if (searchValue == null){
searchValue = document.getElementById("search2").value;
}
@@ -137,15 +138,15 @@
</pre>
-<div>That is the complete set of JavaScript, xModify make the paging of the data very easy. The underlying XAP engine
-handles the execution of the xModify instructions.</div>
+<div>That is the complete set of JavaScript for paging data, xModify operations will handle the paging. The underlying XAP engine
+handles the execution of the xModify operations.</div>
</p>
<p><h2><span class="Title">xModify Script</span></h2></p>
<p>
- <p>The retieving of information from flick is handled on the application host server using
- PHP. Once the fireEvent function is called XAP will make an an asynchronous request to the
- URL. The response to the request is an XML document that has xModify instruction.</p>
+ <p>The retieving of information from flick is handled on the application's host server using
+ PHP. Once the fireEvent function is called, XAP will make an an asynchronous request to the
+ URL. The response to the request is an XML document that has xModify operations.</p>
<div><b>php/flickr-xm.php.</b></div>
<pre>
@@ -154,14 +155,14 @@
xmlns:xm="http://www.openxal.org/xmodify">
<!--
- The instrustion will be run against the html document. This is
+ The operations will be run against the html document. This is
denoted by the document="html" attribute of the modifications tag
-->
<xm:modifications document="html">
<!--
- The first instruction is to set the inner HTML of the
+ The first operation is to set the inner HTML of the
photoPanel div to be the contents of the CDATA block.
I used the CDATA block to minimize the number of dom nodes, and
because I will be converting it to a string.
@@ -213,9 +214,9 @@
</xm:set-innerhtml>
<!--
- The second instruction is to set the inner HTML of the
+ The second operation is to set the inner HTML of the
searchBar div to be the contents of the CDATA block. The results
- of this instruction will be the displaying the current page and total
+ of this operation will be the displaying the current page and total
number of pages for the query string provided.
-->
<xm:set-innerhtml select="id('searchBar')"><![CDATA[
@@ -246,7 +247,8 @@
To get start with XAP, go to the <a href="../../../download.html" target="_top">download</a> page. After you unzip the
achive file you can place the contents of the dist diretory into your application.
- Any questions on this or anything else about XAP
+ Any questions on this or anything else about XAP, can be anwsered by submitting question to the XAP email list. Go to <a href="../../../gettinghelp.html">Getting Help</a> page for
+ more information on XAP feedback and mailing lists.
</p>
<!-- end: body of page -->
</div>