Ajax app with tabs
-
Hi. I'm creating a web app with ajax. I added tab control(from jquery ui) that enables to add tabs dynamically. So if the user wants for example to add a new customer he will open a new tab with the "add customer form". Now, if i open a couple of this tabs i have a problem with conflicting id's because each tab that opens receives from the server a chunk of ready html that contains a form with controls that some of them have a id's. My question is , what are the main techniques to add lots of html to a single aspx page that avoids confilicting id's and etc. Thanks.
-
Hi. I'm creating a web app with ajax. I added tab control(from jquery ui) that enables to add tabs dynamically. So if the user wants for example to add a new customer he will open a new tab with the "add customer form". Now, if i open a couple of this tabs i have a problem with conflicting id's because each tab that opens receives from the server a chunk of ready html that contains a form with controls that some of them have a id's. My question is , what are the main techniques to add lots of html to a single aspx page that avoids confilicting id's and etc. Thanks.
Obviously you need to maintain a count of the number of controls and increment the number using said number in the control ID. You can keep a variable somewhere, client-side or server-side, or you can count the number of existing elements and increment.
I know the language. I've read a book. - _Madmatt