Figured out what the problem was. I was displaying an outside html page in the overlay and in that page was another call to the jquery library.
After commenting this line and jquery ui just to be safe it worked beautifully. I also replaced the live() function with on() since I'm using 1.7. So here is how the function looks, called in $(document).ready:
Now, I can do as many searches as I need and the overlay will open every time. Hope this helps someone cause it took me about 2 days to figure it out.
<script type="text/javascript" src="jquery/jquery-1.7.js"></script>
After commenting this line and jquery ui just to be safe it worked beautifully. I also replaced the live() function with on() since I'm using 1.7. So here is how the function looks, called in $(document).ready:
$("#employeesTable").on("mouseover", "a", function(event) {
$(this).overlay({
mask: "white",
effect: "apple",
onBeforeLoad: function() {
// grab wrapper element inside content
var wrap = this.getOverlay().find(".contentWrap");
// load the page specified in the trigger
wrap.load(this.getTrigger().attr("href"));
}
});
Now, I can do as many searches as I need and the overlay will open every time. Hope this helps someone cause it took me about 2 days to figure it out.