AJAX, tab interface and FORMS
Posted: Mon Jan 21, 2008 6:46 am
I participated in one project - web-based application for integrating CRM with a call-center (Asterisk based). It's extremely AJAX based with tab interface. I made a Javascript framework for it by using jQuery, but I faced a problem with targeting FORMs:
by submitting a form, there are optionally several tabs to be refreshed. So, I added hidden fields in every form like these:
i.e. the name parameter is for "action", and the value parameter is for "tab target". The default FORM submit is cancelled, but instead an AJAX POST is performed.
I wonder whether some of you have been facing this problem and what solutions do you have?
by submitting a form, there are optionally several tabs to be refreshed. So, I added hidden fields in every form like these:
Code: Select all
<input type='hidden' class='tabControl' name='refresh' value='tab_name_goes_here' disabled='1'><input type='hidden' class='tabControl' name='close' value='tab_name_goes_here' disabled='1'><input type='hidden' class='tabControl' name='open' value='tab_name_goes_here' disabled='1'> I wonder whether some of you have been facing this problem and what solutions do you have?