SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist priti's Avatar
    Join Date
    Aug 2006
    Location
    India
    Posts
    488
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ajax-php question

    Hello,

    I always get struggle and thought of finding a nice fix.

    Consider you are validating your zipcodes via ajax request.you expect first If zip code is incorrect then ajax function shoudl show alert and carry on other validation.

    But what i am facing is after spawing a new request it start ahead to validate other fields...and when response arrives it show the response "Invalid zip code"

    i am trying hard that javascript function sud return false when it is invlid but ajax request function is returning nothing seems it never come back...

    Any one can throw some light on it.

    Thanks

  2. #2
    SitePoint Addict
    Join Date
    Jul 2008
    Location
    sudo rm -rf /
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you show us the php and javascript code?
    you may have some mistakes within the code.

  3. #3
    SitePoint Evangelist priti's Avatar
    Join Date
    Aug 2006
    Location
    India
    Posts
    488
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oops code is at office ... i will create the exercise at home and post the code for sure...


Bookmarks

Posting Permissions

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