Hello, I am using jQuery with ASP.Net. I have some content which needs jquery to be applied to it inside of an update panel. So, I just put it in a regular script tag to discover that the script doesn't get called on postbacks. So I put it in pageLoad
to find a large amount of flicker, so I now I have it in regular script blocks and pageLoad so that at least it doesn't flicker on the first load..
Is there some way to get my code to be even more flicker resistant? My [messy] javascript code:
function pageLoad() {
$('#some_id').accordion({
header:'h3'
}).sortable({
items:'>div.acc_some_id'
});
}
/*Shouldn't hurt to do it twice.. */
$('#some_id').accordion({
header:'h3'
}).sortable({
items:'>div.acc_some_id'
});