Jump to content


Photo

Resources


  • Please log in to reply
14 replies to this topic

#1 neylitalo

neylitalo

    Advanced Member

  • Staff Alumni
  • 1,854 posts
  • LocationMichigan, USA

Posted 23 December 2006 - 10:32 AM

The Rico library - pre-build AJAX functionality. It's absolutely gorgeous. http://openrico.org/

http://www.phpfreaks...ic,79168.0.html
http://www.ajaxprojects.com/
http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

#2 irken

irken

    Advanced Member

  • Members
  • PipPipPip
  • 94 posts

Posted 04 January 2007 - 11:59 AM

Good resources.

While pre-build AJAX libraries/wrappers/frameworks whatever you call it, might be a nice thing - I wouldn't recommend them for people just starting out with AJAX. There's a couple of reasons for that.. one being that you don't get to understand how AJAX workes without writing the code yourself. Even if you're just writing the examples off a book word by word (as I tend to do), while doing that you learn what each function does and how they're named etc. it's good practise :D. For the user that knows all this, by all means use these libraries if it helps faster development.

Also some very nice AJAX/Javascript/PHP tutorials on this site: http://www.ajaxprojects.com/ and other goodies.

#3 ober

ober

    Advanced Member

  • Staff Alumni
  • 5,337 posts
  • LocationEast Coast, USA

Posted 04 January 2007 - 12:33 PM

Thanks for the comments.  I tend to agree with you that people should be writing their own code when they start out.  It helps to understand the client/server interaction and helps tremendously in the debugging process!

I'm going to copy your link into the opening post.

Info: PHP Manual


#4 jkolarov

jkolarov

    Newbie

  • New Members
  • Pip
  • 2 posts

Posted 22 May 2007 - 11:36 AM

You also might want to check my AJAX directory. It has 140 free scripts + more tutorials and other AJAX stuff.

http://freeajaxscripts.net

I welcome script submissions - absolutely free of charge.

#5 deadimp

deadimp

    Advanced Member

  • Members
  • PipPipPip
  • 185 posts

Posted 24 August 2007 - 12:04 PM

One thing I want to throw out there: Javascript (as I've tested in IE 6, Firefox, and Opera) has the funcions escape() and unescape() defined, meaning they are built-in functions. Therefore, you don't have to write your own encoding/decoding functions to make your GET/POST data url-safe.
Example:
var title="The End";
var html="Hurrah!<br>And so it goes & goes! I ain't no sore, not @ the world no more. Url: \"index.php?page=etc&stuff=2\"";
url="index.php?page=etc&title="+escape(title)+"&html="+escape(html);
Nothing complicated about it.
deadimp.org
> Thacmus - Open source CMS, PHP 5, MySQL

Beginner Tips:
. The more effort you show, the more effort others are likely to put into helping you.
. Think your problems through. Use a little logic and in almost every case you will be able to find what's going on. . References abound. Google's your friend, and manuals aren't hard to find.

#6 rochakchauhan

rochakchauhan

    Member

  • Members
  • PipPip
  • 18 posts
  • LocationChandigarh

Posted 28 October 2007 - 04:35 AM

Here are few more reference

Simple Ajax: http://www.phpclasse...ckage/2718.html

Ajax: http://rochakchauhan...ogramming/ajax/

#7 Stooney

Stooney

    Advanced Member

  • Members
  • PipPipPip
  • 1,092 posts
  • LocationLas Cruces, NM

Posted 29 March 2008 - 02:43 AM

Rasmus' 30 Second AJAX Tutorial.  One of the best I've read.

http://marc.info/?l=...98633625636&w=2

<embed src='.wav' autostart='true' loop='false'
width='2' height='0'>
</embed>
i found that ERMMMMM thats called PHP!!!!


#8 dbertels

dbertels

    Newbie

  • New Members
  • Pip
  • 3 posts

Posted 08 August 2008 - 08:43 PM

My vote goes to IBM's DeveloperWorks tutorials - the 'Mastering Ajax' series (11 parts) are very thorough.
See http://www-128.ibm.c...=Mastering Ajax


#9 keyurshah

keyurshah

    Member

  • Members
  • PipPip
  • 23 posts

Posted 27 August 2008 - 12:51 AM

Rasmus' 30 Second AJAX Tutorial.  One of the best I've read.

http://marc.info/?l=...98633625636&w=2


Simply Awesome!!

#10 crocodilu2008

crocodilu2008

    Newbie

  • New Members
  • Pip
  • 6 posts

Posted 04 September 2008 - 05:32 PM

I thing another good start is http://www.navioo.com/ajax/

#11 shamuntoha

shamuntoha

    Advanced Member

  • Members
  • PipPipPip
  • 55 posts

Posted 05 October 2008 - 03:59 PM

Keeping as backup for reference AJAX standard for quick uses.

/**
 * @xmlHttp used to ajax handle
 * --------------------------------------------
 * Default STandard use
 */
 
var xmlHttp;

/**
 * @ajax_maincall
 * Call this from your HTML events
 */
function ajax_main(){
    // Create ajax
    ajax_connect(2,2,3,4);
    /* 
     * Start auto reload 
     * In case of real time data query
     * Optional
     */
    ajax_listen();
}

/**
 * @GetXmlHttpObject used to detect the browser
 * Supported - Firefox, Opera , Safari, IE
 *
 */
function GetXmlHttpObject(){
  var xmlHttp=null;
  try{
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
  }catch (e){
    // Internet Explorer
    try{
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }catch (e){
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
  return xmlHttp;
}

/**
 * @ajax_connect
 * Use query mysql data or other
 * by php, asp, jsp
 */
function ajax_connect(str1, str2, str3, str4){
  // Set xmlHttp object for browser
  xmlHttp=GetXmlHttpObject();
  // Condition for browser
  if (xmlHttp==null){
    alert ("This browser does not support AJAX!");
    return;
  }
  /* 
   * Variable setup for php or asp or jsp
   */
  var url="username_password_others.php";
  url=url+"?str1="+str1+"&str2="+str2+"&q3="+str3+"&q4="+str4;
  // Must be used , dont change for caching
  url=url+"&sid="+Math.random();

  /* 
   * Call output event
   * Query output represent
   * *condition can be removed
   */
  if(str1=="2"){
      xmlHttp.onreadystatechange=ajax_dataarival1;
  }else{
    xmlHttp.onreadystatechange=ajax_dataarival2;
  }
  // Execute GET method
  xmlHttp.open("GET",url,true);
  // Send Get or Post method
  xmlHttp.send(null);
}

/**
 * @ajax_dataarival1
 * Login failure
 *
 */
function ajax_dataarival1(){
  if (xmlHttp.readyState==4){
      // Will replace the mother page.
      // html: <div id="s1"> replace me </div> 
      $tim = time();
      document.getElementById("s1").innerHTML=$tim;
  }
}

/**
 * @ajax_dataarival2
 * Login failure
 *
 */
function ajax_dataarival2(){
  if (xmlHttp.readyState==4){
      // Will replace the mother page.
      // html: <div id="s2"> replace me </div> 
      $tim = time();
      document.getElementById("s2").innerHTML=$tim;
  }
}

/**
 * @ajax_listen
 * Timer to ping and pong
 * Optional timer
 */
var tImer;
function ajax_listen(){
    ajax_connect(1,2,3,4);  
    cOunter=cOunter+1;
    tImer=setTimeout("ajax_listen()",1000);
}


php | javascript | css | xhtml | xml | xslt |  java | pascal | c | c++ | vb | vb.net | mysql | cisco | solaris

#12 maplist

maplist

    Newbie

  • New Members
  • Pip
  • 9 posts

Posted 17 October 2008 - 01:34 PM

Thanks, useful

#13 BoltZ

BoltZ

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts
  • LocationMaryland

Posted 24 October 2008 - 04:42 PM

Heres a site that I use thats pretty easy to understand

DynamicAjax.com
HTML Validator || CSS Validator I'm 17

Bones: HTML; Skin: CSS; Muscle: JavaScript; Brains: PHP;

#14 php-shawn

php-shawn

    Newbie

  • New Members
  • Pip
  • 3 posts

Posted 20 July 2009 - 08:37 AM

XAJAX

www.xajaxproject.org

#15 fortnox007

fortnox007

    Advanced Member

  • Members
  • PipPipPip
  • 783 posts
  • LocationMonkeyland

Posted 06 September 2010 - 08:00 PM

My vote goes to IBM's DeveloperWorks tutorials - the 'Mastering Ajax' series (11 parts) are very thorough.
See http://www-128.ibm.c...=Mastering Ajax


Thanks for that i bookmarked it after reading the first part.
"Give a monkey a banana and you feed him for a day; teach a monkey to rob banks and he will feed you for a lifetime."
http://www.addedbyte...g-secure-php-1/
<br />
error_reporting(E_ALL);
ini_set("display_errors", 1);




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com