Jump to content
Sign in to follow this  
justin

iBlog Modal Popup Window

Recommended Posts

justin

Is there a way in iBlog pro to use the jQuery modal popup window? If not, is there a good plugin to do this? Basically just have an image I want to popup in a modal box.

Share this post


Link to post
Share on other sites
Andrew

There are tons of plugins for this type of thing... did you look around?

Share this post


Link to post
Share on other sites
justin

Acutally no plugin needed, since we are already loading the jQuery and jQuery UI. But the problem was no jQuery UI css and images were loaded, so I had to go build a theme in jQuery UI and upload the jQuery UI css and image files. Then I added a custom.js file, and wrote the following:

	// On document load
	$j(document).ready(function() {
		// Solution comparison dialog setup
		$j("#compare-solutions-popup").dialog({
			autoOpen: false,
			closeOnEscape: true,
			draggable: true,
			height: 'auto',
			modal: true,
			resizable: false,
			title: 'Solution Comparison',
			width: 645
		});
	
		// Show the solution comparison dialog onclick of #
		$j(".compare-solutions").click(function() {
			$j("#compare-solutions-popup").dialog("open");
		});
	});
	

Share this post


Link to post
Share on other sites
Andrew

thanks for the update justin, some advanced JS there :)

Share this post


Link to post
Share on other sites
harryfear

The content of my custom.js file doesn't seem to render anywhere as output, there is no script link to it on the HTML page, and i can't see it imported into another file. Does it need enabling? Please help, I'm desperate! :P

Share this post


Link to post
Share on other sites
cmunns

Harry, Are you trying to duplicate Justin's solution? As Andrew stated there are plug-ins that will do this stuff for you if you are struggling with the code.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×