UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
January
Su M Tu W Th F Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Sponsored Links
Latest Postings
也是福运似海、福运宏达的精神之源和力量之

by lmnopq127978
Today at 03:01 AM
饱餐大食
by lmnopq127978
Today at 03:00 AM
尊重任何人的选择
by lmnopq127978
Today at 03:00 AM
一直演进到篆书金文
by lmnopq127978
Today at 02:59 AM
里相思朋辈远
by lmnopq127978
Today at 02:59 AM
谁欠了谁一生的情
by lmnopq127978
Today at 02:58 AM
谁人之痛
by lmnopq127978
Today at 02:57 AM
【煦色韶华问佛】
by lmnopq127978
Yesterday at 03:38 AM
【听,梦里雪落的声音】
by lmnopq127978
Yesterday at 03:37 AM
那天,她留下了眼泪
by lmnopq127978
01/26/15 04:09 AM
Latest Reviews
Topic Options
Rate This Topic
#19237 - 09/06/05 11:29 AM PHP Ajax
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
http://xajax.sourceforge.net/

For those of you in the dark, ajax is how google dose many of the nifty things it does. Like scrolling maps without page re-load.

Now there is a package for PHP to do this. Anyone played with it?
_________________________
My New site OpenEyes

Top
Sponsored Links
      
#19238 - 09/08/05 11:22 PM Re: PHP Ajax
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Some xajax features


* xajax's unique XML response / javascript message-pump system does the work for you, automatically handling the data returned from your functions and updating your content or state according to the instructions you return from your PHP functions. Because xajax does the work, you don't have to write javascript callback handler functions.
* xajax is object oriented to maintain tighter relationships between the code and data, and to keep the xajax code separate from other code. Because it is object oriented, you can add your own custom functionality to xajax by extending the xajaxResponse class and using the addScript() method.
* xajax works in Firefox, Mozilla, probably other Mozilla based browsers, Internet Explorer, and Safari.
* In addition to updating element values and innerHTML, xajax can be used to update styles, css classes, checkbox and radio button selection, or nearly any other element attribute.
* xajax supports passing single and multidimensional arrays and associative arrays from javascript to PHP as parameters to your xajax functions. Additionally, if you pass a javascript object into an xajax function, the PHP function will receive an associative array representing the properties of the object.
* xajax provides easy asynchronous Form processing. By using the xajax.getFormValues() javascript method, you can easily submit an array representing the values in a form as a parameter to a xajax asynchronous function:

xajax_processForm(xajax.getFormValues('formId');

. It even works with complex input names like "checkbox[][]" and "name[first]" to produce multidimensional and associative arrays, just as if you had submitted the form and used the PHP $_GET array
* Using xajax you can dynamically send additional javascript to your application to be run in response to a request as well as dynamically update element attributes.
* xajax automatically compares the data returned from the PHP functions to the data that is already in the attribute of the element you have marked for change. The attribute is only updated with the new data if it will actually change what is already in the attribute. This eliminates the flicker often observed in applications that update content at a regular time interval with data which may or may not differ from extant content.
* Each function registered to be accessible through xajax can have a different request type. All functions default to use POST unless GET is explicitly set. This is to encourage careful consideration of when to use GET requests
* If no request URI is specified, xajax tries to autodetect the URL of the script. The xajax autodetection algorithm is sophisticated enough that, on most servers, it will work under a secure https:// protocol as well as http:// and with nonstandard ports.
* xajax encodes all of its requests and responses in UTF-8 so that it can support a wider range of characters and languages. xajax has been successfully tested with various unicode characters including Spanish, Russian, Arabic, and Hebrew
* Nearly all of the javascript generated by xajax is included into your web application through dynamic external javascript. When you view the source of your application in your browser, the markup will be not cluttered by JavaScript function definitions.
* xajax can be used with the Smarty templating system by creating a variable in smarty that contains the xajax javascript:

$smarty->assign('xajax_javascript', $xajax->getJavascript());

Then you can use

{$xajax_javascript}

in your header template to use xajax on your site.


Man I have got to learn this shit...
_________________________
My New site OpenEyes

Top
#19239 - 09/23/05 08:01 PM Re: PHP Ajax
§intå× Offline


*****

Registered: 12/03/02
Posts: 3255
Loc: Maryland
Never knew what AJAX stood for, for thoose who like to know such things like myself...

Asynchronous JavaScript Technology and XML (AJAX)

Here is a link to a Java solution for AJAX.
http://java.sun.com/developer/technicalArticles/J2EE/AJAX/index.html
_________________________
My New site OpenEyes

Top

Moderator:  §intå×, Gremelin 
Featured Member
Registered: 10/28/14
Posts: 1
Forum Stats
2153 Members
46 Forums
36677 Topics
71847 Posts

Max Online: 1567 @ 04/25/10 05:20 AM
Top Posters
UGN Security 29823
Gremelin 7193
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
claralobo, cdefgh368568, HushHush, golqm, Tim050
2152 Registered Users
Who's Online
1 registered (lmnopq127978), 220 Guests and 198 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!