A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: jquery anyone?

  1. #1
    Senior Member mrkvavle's Avatar
    Join Date
    Nov 2004

    jquery anyone?

    instead of writing ajax from scratch im attempting to use the jquery library. anyone have any experience with it?

  2. #2
    Retired Mod aversion's Avatar
    Join Date
    Jun 2000
    I use the jquery library for projects all the time. I used to use the Prototype JS library but the lack of support and documentation really put me off. JQuery has a great and active community.

    The AJAX functions are pretty simple to use, here's a quick example I did that sends a user's email address to the server, checks that the email belongs to a registered user, then sends back and ok or an error.

       	type: "POST",
       	url: "../modules/checkmail.php",
       	data: "e=" + emlSt,
      	success: function(msg){
                    if(msg == "error"){
    		// show error message
                    } else {
    		// show success message
    I show a tick mark or a cross next to the email input to show its validity in context and the user doesn't have to submit the form to find out.

    There are different 'flavours' that can handle more complex transactions, handling timeouts etc, but this is the quick and easy way to do something simple in the background.
    Last edited by aversion; 04-03-2007 at 03:54 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center