Hi there
im using overylay from jquery tools, however I cant seem to get the example working
I get the following error:
"$("a[rel='overlay']").overlay(function() {" is not a function
In my HTML file i have the jquery/overlay package then i have "common.js" where I call overlay for all links with rel=overlay
// jQuery functions go in here
if (typeof(jQuery) != "undefined") {
/* Pops overlay windows for links with rel="overlay" */
$(function() {
$("body").append("<div class='overlay' id='overlay'><div class='overlay-wrap'></div></div>");
// if the function argument is given to overlay, it is assumed to be the onBeforeLoad event listener
$("a[rel='overlay']").overlay(function() {
// grab wrapper element inside content
var wrap = this.getContent().find("div.overlay-wrap");
// load only for the first time it is opened
if (wrap.is(":empty")) {
wrap.load(this.getTrigger().attr("href"));
}
});
});
}
any idea where im going wrong?