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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to select box with three times condition?

    Dear developing members,

    I am a bigginer of ajax learner.
    My problem is I want to use ajax to select three times without refresh page.
    Example I select the first select box, then it lists the secend select box with data according to the first.
    After that I select the second select box, it lists the third select box with data according to the second.

    How can I do it?
    Could any one tell me how to do it, or tell me the tutorial link of it?

  • #2
    New Coder
    Join Date
    Dec 2008
    Location
    Western Belgium
    Posts
    32
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Hi,

    I'm also new with ajax, but maybe something like:

    When you have select a value from first selectbox, add a ajax-call on onchange-method (or javascipt function, which do it's call)
    Code:
    onchange="javascript:listvalues()"
    
    function listvalues() {
       ajax_call('list.php','values='+document.form.field.value,GetValues);
    }
    You can find basic functions eg. from:
    http://www.degraeve.com/reference/si...ax-example.php

    When you have plenty of values, your answer is best to be as xml.

    --B_R_H

  • #3
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much.


  •  

    Posting Permissions

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