Why my jQuery and updatepanel is not working after postback?

instununkdign

New Member
\[code\]<script type="text/javascript" charset="utf-8"> $(document).ready(function () { $(function autoComp() { $('[id*="tipcombo"]').selectToAutocomplete(); $('[id*="aractipi"]').selectToAutocomplete(); $('[id*="bulundugu"]').selectToAutocomplete(); }); }); function pageLoad(sender, args) { if (args.get_isPartialLoad()) { $('[id*="tipcombo"]').selectToAutocomplete(); $('[id*="aractipi"]').selectToAutocomplete(); $('[id*="bulundugu"]').selectToAutocomplete(); } }</script>\[/code\]I use that code to prevent from postback but it's not working. I also tried Sys.WebForms.PageRequestManager.getInstance() method and it's again not working.\[code\]var prm = Sys.WebForms.PageRequestManager.getInstance();prm.add_endRequest(function() { autoComp();});\[/code\]Now I just wrote simple function in codebehind, and every postback event it's bind it again with stringbuilder append. But this is not a healty solution.How can I fix this?
 
Back
Top