hi, thanks dave.
as i mentioned that we are using this caching system for tabs. and we have same ids present in each tab.so if i just hide then widgets in those tabs will stop working. as multiple elements with same id will be present in dom. let me know what can i do to solve this in jquery or jquery-ui regards, saurabh On Mar 22, 12:56 am, Fontzter <[email protected]> wrote: > The quick guess is that you have a conflict with IDs. By cloning, you > now have two elements with the same ID, which is always a nightmare. > Why not just create a hidden div and "hide" the stuff in there? You > can just use the move function to do so. Depending on you needs you > could just hide the element. > > $("#div2cache").after("<div class='plchldr'>Place Holder </div>").hide > (); > > and bring it back like this: > > $("#div2cache").show().next().remove(); > > Dave > > On Mar 21, 1:22 am, Saurabh <[email protected]> wrote: > > > hi, > > > in our application we are caching the dom when we change tabs. by > > caching i mean we clone whole dom in a javascript variable and keep in > > memory. once the user returns to the cached tab we render that dom > > again. > > > what i have created here is a simple example of what we are doing in > > our application. here in example i an taking full dom in a variable > > when you press "cache and render again". you will see some alerts > > which will explain the process. > > >http://reach1to1.com/sandbox/jquery/cache_problem/index.html > > > problem is datepicker or any other widget stops working once i do > > this. > > > waiting for replies, > > > thanks in advance, > > > regards, > > saurabh --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
