<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>:. IT Media Connect</title>
	<atom:link href="http://www.itmediaconnect.ro/lang/ro/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itmediaconnect.ro</link>
	<description>Dear to be a dreamer...</description>
	<lastBuildDate>Thu, 19 Nov 2009 05:23:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>ro</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jsx : jajax : mime</title>
		<link>http://www.itmediaconnect.ro/lang/ro/no-cateogory/jsx-jajax-mime</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/no-cateogory/jsx-jajax-mime#comments</comments>
		<pubDate>Wed, 11 Nov 2009 14:51:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[No Category]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=521</guid>
		<description><![CDATA[
Field Summary


Field Attributes
Field Name and Description




&#60;static&#62; &#160;

javax.mime.TEXT
text/plain



&#60;static&#62; &#160;

javax.mime.XML
text/xml



&#60;static&#62; &#160;

javax.mime.HTML
text/html




Field Detail
 
&#60;static&#62; javax.mime.TEXT
text/plain

 
&#60;static&#62; javax.mime.XML
text/xml

 
&#60;static&#62; javax.mime.HTML
text/html

]]></description>
			<content:encoded><![CDATA[<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class jajax.">
<caption>Field Summary</caption>
<thead>
<tr>
<th scope="col">Field Attributes</th>
<th scope="col">Field Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">&#60;static&#62; &#160;</td>
<td class="nameDescription">
<div class="fixedFont">javax.mime.<b><a href="#.TEXT">TEXT</a></b></div>
<div class="description">text/plain</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62; &#160;</td>
<td class="nameDescription">
<div class="fixedFont">javax.mime.<b><a href="#.XML">XML</a></b></div>
<div class="description">text/xml</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62; &#160;</td>
<td class="nameDescription">
<div class="fixedFont">javax.mime.<b><a href="#.HTML">HTML</a></b></div>
<div class="description">text/html</div>
</td>
</tr>
</tbody>
</table>
<div class="sectionTitle">Field Detail</div>
<p><a name=".TEXT"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">javax.mime.</span><b>TEXT</b></div>
<div class="description">text/plain</div>
<hr />
<p><a name=".XML"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">javax.mime.</span><b>XML</b></div>
<div class="description">text/xml</div>
<hr />
<p><a name=".HTML"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">javax.mime.</span><b>HTML</b></div>
<div class="description">text/html</div>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/no-cateogory/jsx-jajax-mime/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsx-page : most simple browser test</title>
		<link>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-page-most-simple-browser-test</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-page-most-simple-browser-test#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:56:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jsx-page]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=494</guid>
		<description><![CDATA[
Most simple browser test function ever found.
juAx.is('firefox gt 2.1')
]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-251" title="sidebar_horizontal" src="http://www.itmediaconnect.ro/wp-content/uploads/2009/10/sidebar_horizontal.jpg" alt="sidebar_horizontal" width="80%" height="1" /><br />
<strong>Most simple browser test function ever found.</strong></p>
<pre class="prettyprint" style="border: 0px none; width: 90%;">juAx.is('firefox gt 2.1')</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-page-most-simple-browser-test/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsx-page : jajax most simple</title>
		<link>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-page-jajax-most-simple</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-page-jajax-most-simple#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:06:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jsx-page]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=470</guid>
		<description><![CDATA[
Most simple AJAX call ever made by humans.
jajax.call({
  url : 'http://foo.org/ajax.php',
  request : {
    param1 : 'value1',
    param2 : 'value2'
  }
});
]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-251" title="sidebar_horizontal" src="http://www.itmediaconnect.ro/wp-content/uploads/2009/10/sidebar_horizontal.jpg" alt="sidebar_horizontal" width="80%" height="1" /><br />
<strong>Most simple AJAX call ever made by humans.</strong></p>
<pre class="prettyprint" style="border: 0px none; width: 90%;">jajax.call({
  url : 'http://foo.org/ajax.php',
  request : {
    param1 : 'value1',
    param2 : 'value2'
  }
});</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-page-jajax-most-simple/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsx-page : fjajax most simple</title>
		<link>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-pagefjajax-most-simple</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-pagefjajax-most-simple#comments</comments>
		<pubDate>Tue, 03 Nov 2009 18:59:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jsx-page]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=464</guid>
		<description><![CDATA[
Most simple server side interaction AJAX call ever made by humans.
Server side:
&#60;?php
  $fjajax = new fjajax();
  $fjajax-&#62;addCall('dummy_function');
  function dummy_function($text) {
    // ...
  }
?&#62;
Client side:
  &#60;a href="#"
onclick="dummy_function('a text')"&#62;
dummy_function&#60;/a&#62;
Our functional functional AJAX classes will do everything for you. All that remains is call the function within javascript.
]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-251" title="sidebar_horizontal" src="http://www.itmediaconnect.ro/wp-content/uploads/2009/10/sidebar_horizontal.jpg" alt="sidebar_horizontal" width="80%" height="1" /><br />
<strong>Most simple server side interaction AJAX call ever made by humans.</strong><br />
Server side:</p>
<pre class="prettyprint" style="border: 0px none; width: 90%;">&#60;?php
  $fjajax = new fjajax();
  $fjajax-&#62;addCall('dummy_function');
  function dummy_function($text) {
    // ...
  }
?&#62;</pre>
<p>Client side:</p>
<pre class="prettyprint" style="border: 0px none; width: 90%;">  &#60;a href="#"
onclick="dummy_function('a text')"&#62;
dummy_function&#60;/a&#62;</pre>
<p>Our functional functional AJAX classes will do everything for you. All that remains is call the function within javascript.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/side-categories/our-projects/gpl/jsx-page/jsx-pagefjajax-most-simple/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsX : fjajaxh</title>
		<link>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajaxh</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajaxh#comments</comments>
		<pubDate>Tue, 03 Nov 2009 14:00:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[jsx]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=429</guid>
		<description><![CDATA[
Class Summary


Constructor Attributes
Constructor Name and Description




&#160;

fjajax()
Functional Javascript AJAX caller.



&#160;

fjajaxh()
Functional Javascript AJAX handler.






Method Summary


Method Attributes
Method Name and Description




public &#160;

fjajaxh::__construct()
fjajaxh constructor.



public &#160;

fjajaxh::get_request()
Grabs request info and executes the function that is called.



public &#160;

fjajaxh::html_add($object, $content, $property = &#8216;innerHTML&#8217;)
Postadds content to a property of a HTML object.



public &#160;

fjajaxh::html_push($object, $content, $property = &#8216;innerHTML&#8217;)
Preadds content to a property of a HTML object.



public [...]]]></description>
			<content:encoded><![CDATA[<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class jajax.">
<caption>Class Summary</caption>
<thead>
<tr>
<th scope="col">Constructor Attributes</th>
<th scope="col">Constructor Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="http://www.itmediaconnect.ro/documentation/jsx-fjajax/#constructor">fjajax</a></b>()</div>
<div class="description">Functional Javascript AJAX caller.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="http://www.itmediaconnect.ro/documentation/jsx-fjajaxh/#constructor">fjajaxh</a></b>()</div>
<div class="description">Functional Javascript AJAX handler.</div>
</td>
</tr>
</tbody>
</table>
<p><!-- ============================== methods summary ======================== --></p>
<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class jajax.">
<caption>Method Summary</caption>
<thead>
<tr>
<th scope="col">Method Attributes</th>
<th scope="col">Method Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajaxh::<b><a href="#.__construct">__construct</a></b>()</div>
<div class="description">fjajaxh constructor.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajaxh::<b><a href="#.get_request">get_request</a></b>()</div>
<div class="description">Grabs request info and executes the function that is called.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajaxh::<b><a href="#.html_add">html_add</a></b>($object, $content, $property = &#8216;innerHTML&#8217;)</div>
<div class="description"><i>Post</i>adds content to a property of a HTML object.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajaxh::<b><a href="#.html_push">html_push</a></b>($object, $content, $property = &#8216;innerHTML&#8217;)</div>
<div class="description"><i>Pre</i>adds content to a property of a HTML object.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajaxh::<b><a href="#.html_set">html_set</a></b>($object, $content, $property = &#8216;innerHTML&#8217;, $replace = NULL)</div>
<div class="description">Modifies the content of a HTML object&#8217;s property.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajaxh::<b><a href="#.js_alert">js_alert</a></b>($string, $f = &#8216;alert&#8217;)</div>
<div class="description">Adds an alert.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajaxh::<b><a href="#.js_alert">js_eval</a></b>($string)</div>
<div class="description">Sends a string to be evaluated by javascript engine.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajaxh::<b><a href="#.set_response">set_response</a></b>()</div>
<div class="description">Prints the response to the output.</div>
</td>
</tr>
</tbody>
</table>
<p><!-- ============================== events summary ======================== --></p>
<p><!-- ============================== constructor details ==================== --></p>
<p><a name="constructor"> </a></p>
<div class="details"><a name="constructor"> </a></p>
<div class="sectionTitle">Class Detail</div>
<div class="fixedFont">fjajaxh()</div>
<div class="description">Make an AJAX request.</div>
<pre class="prettyprint">
&#60;?php
	include PATH_TO . '/fjajax/php/fjajaxh.php';
	$fjajaxh = new fjajaxh();
?>
</pre>
<hr />
</div>
<p><!-- ============================== method details ========================= --></p>
<div class="sectionTitle">Method Detail</div>
<p><a name=".__construct"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>__construct</b>()</div>
<div class="description">fjajaxh constructor. See <a href="">fjajax()</a>.</div>
<hr />
<p><a name=".get_request"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>get_request</b>()</div>
<div class="description">Grabs request info and executes the function that is called.</div>
<pre class="prettyprint">
&#60;?php
	$fjajaxh->get_request();
?>
</pre>
<hr />
<p><a name=".html_add"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>html_add</b>($object, $content, $property = &#8216;innerHTML&#8217;)</div>
<div class="description"><i>Post</i>adds content to a property of a HTML object. This means that, if the property will have a value already the action will be: property.value = concat(property.value, content)</div>
<pre class="prettyprint">
&#60;?php
	$fjajaxh->html_add('dummy_object', 'dummy_text_post');
?>
</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>object</b></dt>
<dd>Name of the HTML Object</dd>
<dt><span class="light fixedFont">string</span> <b>content</b></dt>
<dd>Content to add/set to the HTML Object&#8217;s property</dd>
<dt><span class="light fixedFont">string</span> <b>property</b></dt>
<dd>Name of the HTML Object&#8217;s property. Default: innerHTML.</dd>
</dl>
<hr />
<p><a name=".html_push"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>html_push</b>($object, $content, $property = &#8216;innerHTML&#8217;)</div>
<div class="description"><i>Pre</i>adds content to a property of a HTML object. This means that, if the property will have a value already the action will be: property.value = concat(content, property.value)</div>
<pre class="prettyprint">
&#60;?php
	$fjajaxh->html_push('dummy_object', 'dummy_text_pre');
?>
</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>object</b></dt>
<dd>Name of the HTML Object</dd>
<dt><span class="light fixedFont">string</span> <b>content</b></dt>
<dd>Content to add/set to the HTML Object&#8217;s property</dd>
<dt><span class="light fixedFont">string</span> <b>property</b></dt>
<dd>Name of the HTML Object&#8217;s property. Default: innerHTML.</dd>
</dl>
<hr />
<p><a name=".html_set"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>html_set</b>($object, $content, $property = &#8216;innerHTML&#8217;, $replace = NULL)</div>
<div class="description">Modifies the content of a HTML object&#8217;s property.</div>
<pre class="prettyprint">
&#60;?php
	// this will set innerHTML to 'dummy_text'
	$fjajaxh->html_set('dummy_object', 'dummy_text');
	// this will act as fjajaxh::html_push
	$fjajaxh->html_set('dummy_object', 'dummy_text_pre', '+innerHTML');
	// this will act as fjajaxh::html_add
	$fjajaxh->html_set('dummy_object', 'dummy_text_post', 'innerHMLT+');
	// this will remove all 'dummy_' texts in innerHTML property with void
	$fjajaxh->html_set('dummy_object', '', 'innerHTML', '/dummy_/i');
?>
</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>object</b></dt>
<dd>Name of the HTML Object</dd>
<dt><span class="light fixedFont">string</span> <b>content</b></dt>
<dd>Content to add/set to the HTML Object&#8217;s property</dd>
<dt><span class="light fixedFont">string</span> <b>property</b></dt>
<dd>Name of the HTML Object&#8217;s property. Default: innerHTML.</dd>
<dt><span class="light fixedFont">string</span> <b>property</b></dt>
<dd>Name of the HTML Object&#8217;s property. Default: innerHTML.</dd>
</dl>
<hr />
<p><a name=".js_alert"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>js_alert</b>($string, $f = &#8216;alert&#8217;)</div>
<div class="description">Adds an alert.</div>
<pre class="prettyprint">
&#60;?php
	$fjajaxh->js_alert('This is an alert.');
?>
</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>string</b></dt>
<dd>The message you want to send.</dd>
<dt><span class="light fixedFont">string</span> <b>f</b></dt>
<dd>Name of the function used to send the message. Default is Javascript function: alert.</dd>
</dl>
<hr />
<p><a name=".js_eval"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>js_eval</b>($string)</div>
<div class="description">Adds an alert.</div>
<pre class="prettyprint">
&#60;?php
	$fjajaxh->js_eval('var test = "A test";');
?>
</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>string</b></dt>
<dd>Javascript string sent to be evaluated.</dd>
</dl>
<hr />
<p><a name=".set_response"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>set_response</b>()</div>
<div class="description">Prints the response to the output.</div>
<pre class="prettyprint">
&#60;?php
	$fjajaxh->set_response();
?>
</pre>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajaxh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsX : fjajax PHP Tutorial</title>
		<link>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajax-php-tutorial</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajax-php-tutorial#comments</comments>
		<pubDate>Tue, 03 Nov 2009 13:11:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[jsx]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=430</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajax-php-tutorial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsX : fjajax</title>
		<link>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajax</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajax#comments</comments>
		<pubDate>Tue, 03 Nov 2009 13:10:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[jsx]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=427</guid>
		<description><![CDATA[
Class Summary


Constructor Attributes
Constructor Name and Description




&#160;

fjajax()
Functional Javascript AJAX caller.



&#160;

fjajaxh()
Functional Javascript AJAX handler.






Field Summary


Field Attributes
Field Name and Description




const &#160;

fjajax::JSON




const &#160;

fjajax::JXML




const &#160;

fjajax::JPHP







Method Summary


Method Attributes
Method Name and Description




public &#160;

fjajax::__construct()
fjajax constructor.



public &#160;

fjajax::addCall($f)
Add a new javascript function call.



public &#160;

fjajax::initCalls($print = false)
Constructs the Javascript content that needs to be put in the HTML page.



public &#160;

fjajax::initScript($print = false)
Creates the Javascript includers for [...]]]></description>
			<content:encoded><![CDATA[<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class jajax.">
<caption>Class Summary</caption>
<thead>
<tr>
<th scope="col">Constructor Attributes</th>
<th scope="col">Constructor Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="http://www.itmediaconnect.ro/documentation/jsx-fjajax/#constructor">fjajax</a></b>()</div>
<div class="description">Functional Javascript AJAX caller.</div>
</td>
</tr>
<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="http://www.itmediaconnect.ro/documentation/jsx-fjajaxh/#constructor">fjajaxh</a></b>()</div>
<div class="description">Functional Javascript AJAX handler.</div>
</td>
</tr>
</tbody>
</table>
<p><!-- ============================== properties summary ===================== --></p>
<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class jajax.">
<caption>Field Summary</caption>
<thead>
<tr>
<th scope="col">Field Attributes</th>
<th scope="col">Field Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">const &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.JSON">JSON</a></b></div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">const &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.JXML">JXML</a></b></div>
<div class="description"></div>
</td>
</tr>
<tr>
<td class="attributes">const &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.JPHP">JPHP</a></b></div>
<div class="description"></div>
</td>
</tr>
</tbody>
</table>
<p><!-- ============================== methods summary ======================== --></p>
<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class jajax.">
<caption>Method Summary</caption>
<thead>
<tr>
<th scope="col">Method Attributes</th>
<th scope="col">Method Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.__construct">__construct</a></b>()</div>
<div class="description">fjajax constructor.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.addCall">addCall</a></b>($f)</div>
<div class="description">Add a new javascript function call.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.initCalls">initCalls</a></b>($print = false)</div>
<div class="description">Constructs the Javascript content that needs to be put in the HTML page.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.initScript">initScript</a></b>($print = false)</div>
<div class="description">Creates the Javascript includers for the js files.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.setJsxRoot">setJsxRoot</a></b>($string)</div>
<div class="description">Sets the URL root for the js files.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.setSerializeMethod">setSerializeMethod</a></b>($string)</div>
<div class="description">Defines the used serialize method.</div>
</td>
</tr>
<tr>
<td class="attributes">public &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">fjajax::<b><a href="#.setURL">setURL</a></b>($string)</div>
<div class="description">Defines the URL which will handle all AJAX function calls.</div>
</td>
</tr>
</tbody>
</table>
<p><!-- ============================== events summary ======================== --></p>
<p><!-- ============================== constructor details ==================== --></p>
<p><a name="constructor"> </a></p>
<div class="details"><a name="constructor"> </a></p>
<div class="sectionTitle">Class Detail</div>
<div class="fixedFont">fjajax()</div>
<div class="description">Class used to create AJAX function calls.</div>
<pre class="prettyprint">
&#60;?php
	include PATH_TO . '/fjajax/php/fjajax.php';
	$fjajax = new fjajax();
?>
</pre>
<hr />
<div>
<p><!-- ============================== field details ========================== --></p>
<div class="sectionTitle">Field Detail</div>
<p><a name=".JSON"> </a></p>
<div class="fixedFont">const <span class="light">fjajax::</span><b>JSON</b></div>
<div class="description">Constant specifying the use of JSON serializer.</div>
<hr />
<p><a name=".JSML"> </a></p>
<div class="fixedFont">const <span class="light">fjajax::</span><b>JXML</b></div>
<div class="description">(NOT AVAILABLE) Constant specifying the use of jsx&#8217;s own XML serializer. </div>
<hr />
<p><a name=".JPHP"> </a></p>
<div class="fixedFont">const <span class="light">fjajax::</span><b>JPHP</b></div>
<div class="description">(NOT AVAILABLE) Constant specifying the user of php serialize function for serializing data.</div>
<hr />
<p><!-- ============================== method details ========================= --></p>
<div class="sectionTitle">Method Detail</div>
<p><a name=".__construct"> </a></p>
<div class="fixedFont">public <span class="light">fjajaxh::</span><b>__construct</b>()</div>
<div class="description">fjajaxh constructor. See <a href="">fjajax()</a>.</div>
<hr />
<p><a name=".addCall"> </a></p>
<div class="fixedFont">public <span class="light">fjajax::</span><b>addCall</b>($f)</div>
<div class="description">Add a new javascript function call.</div>
<pre class="prettyprint">&#60;?php
	$fjajax->addCall('dummy_function');
?></pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>f</b></dt>
<dd>Specifies the name of the function do add.</dd>
</dl>
<hr />
<p><a name=".initCalls"> </a></p>
<div class="fixedFont">public <span class="light">fjajax::</span><b>initCalls</b>($print = false)</div>
<div class="description">Specifies the name of the function do add.</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">boolean</span> <b>print</b></dt>
<dd>If $print is set to true, it auto prints the information.</dd>
</dl>
<hr />
<p><a name=".initScript"> </a></p>
<div class="fixedFont">public <span class="light">fjajax::</span><b>initScript</b>($print = false)</div>
<div class="description">Creates the Javascript includers for the js files.</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">boolean</span> <b>print</b></dt>
<dd> If $print is set to true, it auto prints the information.</dd>
</dl>
<hr />
<p><a name=".setJsxRoot"> </a></p>
<div class="fixedFont">public <span class="light">fjajax::</span><b>setJsxRoot</b>($string)</div>
<div class="description">Sets the URL root for the js files.</div>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>string</b></dt>
<dd>String specifying the root URL for the jsX script.</dd>
</dl>
<hr />
<p><a name=".setSerializeMethod"> </a></p>
<div class="fixedFont">public <span class="light">fjajax::</span><b>setSerializeMethod</b>($string)</div>
<div class="description">Defines the used serialize method.</div>
<pre class="prettyprint">&#60;?php
	$fjajax->setSerializeMethod(fjajax::JSON);
?></pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>string</b></dt>
<dd>See <a href="#.JSON">fjajax::JSON</a>, <a href="#.JXML">fjajax::JXML</a>, <a href="#.JPHP">fjajax::JPHP</a>, </dd>
</dl>
<hr />
<p><a name=".setURL"> </a></p>
<div class="fixedFont">public <span class="light">fjajax::</span><b>setURL</b>($string)</div>
<div class="description">Defines the URL which will handle all AJAX function calls.</div>
<pre class="prettyprint">&#60;?php
	$fjajax->setUrl('http://path/to/request');
?></pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">string</span> <b>string</b></dt>
<dd>String defining the URL called by AJAX.</dd>
</dl>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-fjajax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsX : juAx : js</title>
		<link>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-juax-js</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-juax-js#comments</comments>
		<pubDate>Tue, 03 Nov 2009 09:55:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[jsx]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=412</guid>
		<description><![CDATA[
Field Summary


Field Attributes
Field Name and Description




&#60;static&#62;

juAx.js.is_10
Javascript 1.0.



&#60;static&#62;

juAx.js.is_11
Javascript 1.1.



&#60;static&#62;

juAx.js.is_12
Javascript 1.2.



&#60;static&#62;

juAx.js.is_13
Javascript 1.3.



&#60;static&#62;

juAx.js.is_14
Javascript 1.4.



&#60;static&#62;

juAx.js.is_15
Javascript 1.5.



&#60;static&#62;

juAx.js.is_16
Javascript 1.6.



&#60;static&#62;

juAx.js.is_17
Javascript 1.7.



&#60;static&#62;

juAx.js.is_18
Javascript 1.8.



&#60;static&#62;

juAx.js.is_19
Javascript 1.9.





Field Detail
 
&#60;static&#62; juAx.js.is_10
Javascript 1.0.
Known to be supported by: Netscape 2.x, MSIE 3

 
&#60;static&#62; juAx.js.is_11
Javascript 1.1.
Known to be supported by: Netscape 3

 
&#60;static&#62; juAx.js.is_12
Javascript 1.2.
Known to be supported by: Netscape 4 to 4.0.5

 
&#60;static&#62; juAx.js.is_13
Javascript 1.3.
Known to be supported by: [...]]]></description>
			<content:encoded><![CDATA[<table class="summaryTable" border="0" cellspacing="0" summary="A summary of the fields documented in the class juAx.js.">
<caption>Field Summary</caption>
<thead>
<tr>
<th scope="col">Field Attributes</th>
<th scope="col">Field Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_10">is_10</a></strong></div>
<div class="description">Javascript 1.0.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_11">is_11</a></strong></div>
<div class="description">Javascript 1.1.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_12">is_12</a></strong></div>
<div class="description">Javascript 1.2.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_13">is_13</a></strong></div>
<div class="description">Javascript 1.3.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_14">is_14</a></strong></div>
<div class="description">Javascript 1.4.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_15">is_15</a></strong></div>
<div class="description">Javascript 1.5.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_16">is_16</a></strong></div>
<div class="description">Javascript 1.6.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_17">is_17</a></strong></div>
<div class="description">Javascript 1.7.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_18">is_18</a></strong></div>
<div class="description">Javascript 1.8.</div>
</td>
</tr>
<tr>
<td class="attributes">&#60;static&#62;</td>
<td class="nameDescription">
<div class="fixedFont">juAx.js.<strong><a href="#.is_19">is_19</a></strong></div>
<div class="description">Javascript 1.9.</div>
</td>
</tr>
</tbody>
</table>
<p><!-- ============================== field details ========================== --></p>
<div class="sectionTitle">Field Detail</div>
<p><a name=".is_10"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_10</strong></div>
<div class="description">Javascript 1.0.<br />
Known to be supported by: Netscape 2.x, MSIE 3</div>
<hr />
<p><a name=".is_11"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_11</strong></div>
<div class="description">Javascript 1.1.<br />
Known to be supported by: Netscape 3</div>
<hr />
<p><a name=".is_12"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_12</strong></div>
<div class="description">Javascript 1.2.<br />
Known to be supported by: Netscape 4 to 4.0.5</div>
<hr />
<p><a name=".is_13"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_13</strong></div>
<div class="description">Javascript 1.3.<br />
Known to be supported by: Netscape 4.06 to 4.7x, MSIE 4 to 8</div>
<hr />
<p><a name=".is_14"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_14</strong></div>
<div class="description">Javascript 1.4.<br />
Known to be supported by: Opera 6</div>
<hr />
<p><a name=".is_15"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_15</strong></div>
<div class="description">Javascript 1.5.<br />
Known to be supported by: Firefox 1.5, Netscape 7,8, Opera 7+</div>
<hr />
<p><a name=".is_16"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_16</strong></div>
<div class="description">Javascript 1.6.<br />
Known to be supported by: Firefox 2, Safari 3</div>
<hr />
<p><a name=".is_18"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_18</strong></div>
<div class="description">Javascript 1.8.<br />
Known to be supported by: Firefox 3</div>
<hr />
<p><a name=".is_19"> </a></p>
<div class="fixedFont">&#60;static&#62; <span class="light">juAx.js.</span><strong>is_19</strong></div>
<div class="description">Javascript 1.9.<br />
Known to be supported by: Firefox 3.1 to 3.5</div>
<hr />
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-juax-js/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsx : jajax : cc</title>
		<link>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-jajax-cc</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-jajax-cc#comments</comments>
		<pubDate>Mon, 02 Nov 2009 20:27:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[jsx]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=399</guid>
		<description><![CDATA[
Field Summary


Field Attributes
Field Name and Description




&#60;static&#62; &#160;

jajax.cc.url
Requested URL



&#60;static&#62; &#160;

jajax.cc.mime
Mime used for response. Default value: text/plain.



&#60;static&#62; &#160;

jajax.cc.method
Sets request method type. Default value: post.



&#60;static&#62; &#160;

jajax.cc.response
Sets response type. Default value: text.



&#60;static&#62; &#160;

jajax.cc.request
Request package object.



&#60;static&#62; &#160;

jajax.cc.async
AJAX call option: asyncronous or not. Default value: true.



&#60;static&#62; &#160;

jajax.cc.username
Username for http call.



&#60;static&#62; &#160;

jajax.cc.password
Password for http call.



&#60;static&#62; &#160;

jajax.cc.serialize
Method used for serialize. Default value: json. [...]]]></description>
			<content:encoded><![CDATA[<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class jajax.">
<caption>Field Summary</caption>
<thead>
<tr>
<th scope="col">Field Attributes</th>
<th scope="col">Field Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.url">url</a></b></div>
<div class="description">Requested URL</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.mime">mime</a></b></div>
<div class="description">Mime used for response. Default value: <i>text/plain</i>.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.method">method</a></b></div>
<div class="description">Sets request method type. Default value: <i>post</i>.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.response">response</a></b></div>
<div class="description">Sets response type. Default value: <i>text</i>.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.request">request</a></b></div>
<div class="description">Request package object.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.async">async</a></b></div>
<div class="description">AJAX call option: asyncronous or not. Default value: <i>true</i>.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.username">username</a></b></div>
<div class="description">Username for http call.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.password">password</a></b></div>
<div class="description">Password for http call.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.serialize">serialize</a></b></div>
<div class="description">Method used for serialize. Default value: <i>json</i>. <i>jxml</i> and <i>jphp</i> are not supported yet.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.timeout">timeout</a></b></div>
<div class="description">Timeout period for a request. Default value: <i>10 seconds</i>.</div>
</td>
</tr>
</tbody>
</table>
<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class jajax.">
<caption>Events Summary</caption>
<thead>
<tr>
<th scope="col">Method Attributes</th>
<th scope="col">Method Name and Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.onComplete">onComplete</a></b>(htreq)</div>
<div class="description">Function runable no matter what value XMLHttpRequest.readyState has.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.onSuccess">onSuccess</a></b>(text)</div>
<div class="description">Function runnable only at XMLHttpRequest.readyState == 4.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.onError">onError</a></b>(htreq)</div>
<div class="description">Function runnable when XMLHttpRequest.status != 200.</div>
</td>
</tr>
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">jajax.cc.<b><a href="#.onTimeout">onTimeout</a></b>(htreq)</div>
<div class="description">Function runnable at timeout.</div>
</td>
</tr>
</tbody>
</table>
<div class="sectionTitle">Field Detail</div>
<p><a name=".url"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>url</b></div>
<div class="description">Requested URL</div>
<hr />
<p><a name=".mime"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>mime</b></div>
<div class="description">Mime used for response. Default value: <i>text/plain</i>.</div>
<hr />
<p><a name=".method"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>method</b></div>
<div class="description">Sets request method type. Default value: <i>post</i>.</div>
<hr />
<p><a name=".response"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>response</b></div>
<div class="description">Sets response type. Default value: <i>text</i>.</div>
<hr />
<p><a name=".request"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>request</b></div>
<div class="description">Request package object.</div>
<hr />
<p><a name=".async"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>async</b></div>
<div class="description">AJAX call option: asyncronous or not. Default value: <i>true</i>.</div>
<hr />
<p><a name=".username"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>username</b></div>
<div class="description">Username for http call.</div>
<hr />
<p><a name=".password"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>password</b></div>
<div class="description">Password for http call.</div>
<hr />
<p><a name=".serialize"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>serialize</b></div>
<div class="description">Method used for serialize:</p>
<li><i>json</i> -> serialize request object with JSON<br /> 
<li><i>jxml</i> -> (NOT AVAILABLE) serialize request object as XML
<li><i>jphp</i> -> (NOT AVAILABLE) serialize request with php serialize function like.<br />
Default value: <i>json</i>.</div>
<hr />
<p><a name=".timeout"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>timeout</b></div>
<div class="description">Timeout period for a request.</div>
<hr />
<div class="sectionTitle">Event Detail</div>
<p><a name=".onComplete"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>onComplete</b>(htreq)</div>
<div class="description">Function runable no matter what value XMLHttpRequest.readyState has.</div>
<pre class="prettyprint">jajax.call({
	//...
	onComplete : function(htreq) { alert(htreq.readyState); }
	//...
});</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">{XMLHttpRequest}</span> <b>htreq</b></dt>
<dd></dd>
</dl>
<hr />
<p><a name=".onSuccess"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>onSuccess</b>(text)</div>
<div class="description">Function runnable only at XMLHttpRequest.readyState == 4.</div>
<pre class="prettyprint">jajax.call({
	//...
	onSuccess : function(text) { alert(text); }
	//...
});</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">{String}</span> <b>text</b></dt>
<dd></dd>
</dl>
<hr />
<p><a name=".onError"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>onError</b>(htreq)</div>
<div class="description">Function runnable when XMLHttpRequest.status != 200.</div>
<pre class="prettyprint">jajax.call({
	//...
	onError : function(htreq) { alert("Request died with HTTP Status: " + htreq.status); }
	//...
});</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">{XMLHttpRequest}</span> <b>htreq</b></dt>
<dd></dd>
</dl>
<hr />
<p><a name=".onTimeout"> </a></p>
<div class="fixedFont">&lt;static&gt; <span class="light">jajax.cc.</span><b>onTimeout</b>(htreq)</div>
<div class="description">Function runnable at timeout.</div>
<pre class="prettyprint">jajax.call({
	//...
	onTimeout : function(htreq) { alert("Request timeout.") },
	timeout: 2000,
	//...
});</pre>
<dl class="detailList">
<dt class="heading">Parameters:</dt>
<dt><span class="light fixedFont">{XMLHttpRequest}</span> <b>htreq</b></dt>
<dd></dd>
</dl>
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-jajax-cc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsX : juAx::is Function Tutorial</title>
		<link>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-juax-is-function-tutorial</link>
		<comments>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-juax-is-function-tutorial#comments</comments>
		<pubDate>Fri, 30 Oct 2009 10:49:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[jsx]]></category>

		<guid isPermaLink="false">http://www.itmediaconnect.ro/?p=379</guid>
		<description><![CDATA[Javascript userAgent Extended
juAx methods
&#60;static&#62; is(browser[, matchKey, userAgent])
Verifies browser information.
Parameters: String browser, RegExp matchKey, String userAgent
Returns: Boolean
if (juAx.is('firefox lt 3')) {
    document.write("this firefox is older than version 3");
}
Parameters description
browser
browser parameter is composed of 3 elements:
# the name of the browser
# an operator to compare the versions
# the version we want to compare
Both name [...]]]></description>
			<content:encoded><![CDATA[<h3>Javascript userAgent Extended</h3>
<p><strong>juAx methods</strong></p>
<p>&#60;static<strong>&#62; is</strong>(browser[, matchKey, userAgent])</p>
<p style="padding-left: 30px;">Verifies browser information.<br />
<strong>Parameters</strong>: <em>String</em> browser, <em>RegExp</em> matchKey, <em>String </em>userAgent<br />
<strong>Returns</strong>: <em>Boolean</em></p>
<pre class="prettyprint">if (juAx.is('firefox lt 3')) {
    document.write("this firefox is older than version 3");
}</pre>
<h3>Parameters description</h3>
<p><strong>browser</strong></p>
<p style="padding-left: 30px;">browser parameter is composed of 3 elements:</p>
<p style="padding-left: 60px;"># the name of the browser<br />
# an operator to compare the versions<br />
# the version we want to compare</p>
<p style="padding-left: 30px;">Both name of the browser and version can be found in the userAgent string provided by browser.<br />
For example, the newers Firefox userAgent string looks like this: <em>Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.4) Gecko/20091016 <strong>Firefox</strong>/<strong>3.5.4</strong></em></p>
<p><em> </em>Thus, the name of the browser becomes a lowercase string, signifying the browser&#8217;s real name in the userAgent string.</p>
<p style="padding-left: 30px;">For the operator we decided to use the batch like  form, so we got to this types of operators</p>
<p style="padding-left: 60px;">eq / equal<br />
neq / not equa l<br />
gt / greater than<br />
gte / greater than or equal to<br />
lt / lower than<br />
lte / lower than or equal to</p>
<p style="padding-left: 30px;">For the version we stoped at the first to components from the versioning convention: the version and the subversion.</p>
<pre class="prettyprint">if (juAx.is('firefox')) {
// this tests ONLY if the browser is firefox
}
if (juAx.is('firefox eq 3.0')) {
// this tests if the Firefox browser's version is exactly 3.0
}
if (juAx.is('firefox gte 2.5')) {
// this tests if the Firefox browser's version is greater than
// or eaqual to 2.5
}</pre>
<p>matchKey</p>
<p style="padding-left: 30px;">Since we cannot cover all the browsers in the world, we had to create a convetion. If we can&#8217;t obtain the browser&#8217;s version ourselves, we tell the user how to get it. The matchKey variable is a regluar expression ment to tell the <em>is</em> function how to obtain information about the browser&#8217;s version.</p>
<p style="padding-left: 30px;">For example, let&#8217;s say, that the Konqueror (KDE Linux) browser was not added in our list already, and you will have to create a regular expression to get the info for us. We 1st look into a useragent database like http://www.useragentstring.com and notice that Konqueror&#8217;s user agent .<br />
i.e.<br />
<em>Mozilla/5.0 (compatible; <strong>Konqueror/4.2</strong>; Linux; X11; x86_64) KHTML/4.2.4 (like Gecko) Fedora/4.2.4-2.fc11</em><br />
After seing how the version model is set into the user agent we came up with the next regular expression:</p>
<pre class="prettyprint">if (juAx.is('konqueror gt 3', /konqueror\/([0-9]+\.?[0-9]*)/i)) {
// this tests Konqueror browsers for versions greater than 3.0
}</pre>
<p style="padding-left: 30px;">The group we created in the regular expression ( /konqueror\/<strong>([0-9]+\.?[0-9]*)</strong>/i ) will be able to tell the <em>is</em> function the browser&#8217;s version.</p>
<p><strong>userAgent</strong></p>
<p style="padding-left: 30px;">User agent parameter is nothing but a dummy variable for test. It replaces the userAgent memorized by juAx with a userAgent string of your choice.<br />
For example</p>
<pre class="prettyprint">if (juAx.is(
    'konqueror gt 3',
    /konqueror\/([0-9]+\.?[0-9]*)/i,
    'Mozilla/5.0 (compatible; Konqueror/4.2; Linux; X11; x86_64) \
KHTML/4.2.4 (like Gecko) Fedora/4.2.4-2.fc11')) {
// this tests Konqueror browsers for versions greater than 3.0
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.itmediaconnect.ro/lang/ro/documentation/jsx-juax-is-function-tutorial/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
