[jQuery] Striped Tables and loaded content
I am a bit new to this jquery lark please bear with me
I am loading content called #content this works fine but my striped
tables when loaded into the content div are not striped and activated
any suggestions? I am also using a method suggestion to enable
compatibility with inferior explorer
isInit =false;
$(document).ready(init)
$(window).load(init)
function init()
{
if(isInit == false) {
isInit == true;
// striped tables
$(".stripeMe tr").mouseover(function()
{$(this).addClass("over");}).mouseout(function()
{$(this).removeClass("over");});
$(".stripeMe tr:even").addClass("alt");
// jLink
$("a.jLink").click(function(event){
// console.info('load jLink');
htmlDoc = new String(this.href);
htmlDoc = htmlDoc.substring((htmlDoc.indexOf("=")+1),
htmlDoc.length);
$("div#main").load("html/"+htmlDoc);
/*
console.info(' indexOf: ' + htmlDoc.indexOf("="));
console.info(' length: ' + htmlDoc.length);
console.info(' substring: ' +
htmlDoc.substring((htmlDoc.indexOf("=")+1), htmlDoc.length));
console.info(' htmlDoc: ' + htmlDoc);*/
return false;
});
}
}
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/