You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Expose and Overlay issue with closeOnClick Created Jun 10, 2009

This thread is solved

Views: 2153     Replies: 2     Last reply Jun 16, 2009  
You must login first before you can use this feature

josh

Posts: 2

Registered:
Jun 10, 2009

Expose and Overlay issue with closeOnClick

Posted: Jun 10, 2009

I've implemented expose and overlay together and it looks like there's an issue with closeOnClick. When I don't implement the expose piece of the code, the closeOnClick works fine but when implemented together the functionality does not work as planned.

Any help would be great. Thanks!

Here's my code:

  
jQuery(document).ready(function($) {

$("a[rel]").each(function(i) {
	$(this).overlay({

		expose: '#AAAAAA',
		oneInstance: false,
		closeOnClick: false,

		onLoad: function() {
			var wrap = this.getContent().find("div.wrap");
			if (wrap.is(":empty")) {
				wrap.load(this.getTrigger().attr("href"));
			}
		}

	});
  });
});

josh

Posts: 2

Registered:
Jun 10, 2009

I figured out the issue

Posted: Jun 11, 2009

Reply to: Expose and Overlay issue with closeOnClick, from josh
For those who might have been wondering here's the resolution to the above issue:

  

jQuery(document).ready(function($) {

$("a[rel]").each(function(i) {
	$(this).overlay({

		expose: {
		color: '#AAAAAA',
		closeOnClick: false
		},
		
		closeOnClick: false,

		onLoad: function() {
			var wrap = this.getContent().find("div.wrap");
			if (wrap.is(":empty")) {
				wrap.load(this.getTrigger().attr("href"));
			}
		}

	});
  });
});

higherweb

Posts: 3

Registered:
Jun 16, 2009

» I figured out the issue

Posted: Jun 16, 2009

Reply to: I figured out the issue, from josh
Thanks...

Finally I found the solution for my pb...

Cool