Hi all,
I am having a page where there is a drop down box for projects.Below that i had a list of users with check boxes. so wen i select a project in the drop down and assign some users to that project by checking on checkbox.
so here is my problem. wen i select the same project from drop down i should see the users who are assigned to that project as checked. so wen i select another project then users assigned to that project should be checked.
I came to know that this can be done by Ajax. so can any one help me please....

Member Avatar for rajarajan2017

Below link will help you how to communicate Ajax with PHP, the following sample shows two radio buttons and some result will shown based on the radio selection without refreshing the page. Implement the same method to get your job done.

http://www.w3schools.com/php/php_ajax_poll.asp

on change of the project i need to get the users who are assigned to that project as checked. so that link contains code of radio button and also different. As i am new to ajax i need some more clearly. so please...

Member Avatar for diafol

Post the code that you have so far and we'll have a look at it. jQuery or Prototype could save you some serious headaches.

Keep in mind that you don't need to use AJAX for this.

You could have your drop list trigger a javascript to reload the page pulling up the checked status relevant to the project selected in the droplist.

AJAX might be the best solution, but it's not necessarily the best solution.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.