Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2008
    Posts
    32
    Thanks
    2
    Thanked 4 Times in 4 Posts

    onreadystatechange

    I am an AJAX newbie, I am trying to learn how to use onreadystatechange. First is it possible to load a <select> with names from a mysql database then when the user selects a name have a mysql_query executed to pull the correlating information loaded into a div; ex. say the names in the <select> are John Mike and Brad, if john is selected then all johns info(ssn, dob, address, phone number) is loaded into a div without the use of a submit button? If so can you point me to a good tutorial that can show me how to use onreadystatechange and / or what tools I will need to fully understand this. I know PHP / MySQL and a some JavaScript but am new to AJAX.

    Thanks in advance,

    Matthew Wawrzyniec

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    Start with a basic tutorial: http://developer.apple.com/internet/...mlhttpreq.html

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

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