bhakti_thakkar
10-26-2007, 10:44 AM
hi all,
Let me first explain what is happining in my page [UnPlannedAudits.php]:
there are Audits[] and for every audit there are Modules getting loaded. i have branch wise inspectors in the DB. Inspectors are to be selected <select multiple></select> for every audit. i have displayed all this to the user. all is fine till now.
Now the working is :- there is an option for the user to select all the inspectors in the DB or only (MY OFFICE) inspectors. a radio button is provided for the same.
which is the best possible way to do it using AJAX??
1. whether to load the Inspectors from a different page using AJAX i.e the <select> will be on the UnPlannedAudits.php page itself only the SQL query will change on every click of the radio by ajax?
2. whether to load the Inspectors <textarea> in an entirely different page and calling that page in UnPlannedAudits.php using an iframe or a div??
any other way is also most welcomed...
i am not sure how to do it. i just want the idea. Please can some one guide me on this.
i am also attaching a .gif file so that the working will be more clear to all.
the data is going to be really a huge one. i am just showing you only 2 records. so keeping in mind all this i need to find the best possible way to do it.
Thanks
Let me first explain what is happining in my page [UnPlannedAudits.php]:
there are Audits[] and for every audit there are Modules getting loaded. i have branch wise inspectors in the DB. Inspectors are to be selected <select multiple></select> for every audit. i have displayed all this to the user. all is fine till now.
Now the working is :- there is an option for the user to select all the inspectors in the DB or only (MY OFFICE) inspectors. a radio button is provided for the same.
which is the best possible way to do it using AJAX??
1. whether to load the Inspectors from a different page using AJAX i.e the <select> will be on the UnPlannedAudits.php page itself only the SQL query will change on every click of the radio by ajax?
2. whether to load the Inspectors <textarea> in an entirely different page and calling that page in UnPlannedAudits.php using an iframe or a div??
any other way is also most welcomed...
i am not sure how to do it. i just want the idea. Please can some one guide me on this.
i am also attaching a .gif file so that the working will be more clear to all.
the data is going to be really a huge one. i am just showing you only 2 records. so keeping in mind all this i need to find the best possible way to do it.
Thanks