You are not logged in.

#1 2009-12-16 23:21:37

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

jQuery Facebox Question

Does anyone else here use the jQuery package Facebox? (http://famspam.com/facebox)

I'm using the AJAX option so that I can load a remote page inside the popup. Mostly it works great; however, I notice that when I click a link inside the remote page which has been loaded inside the popup, the popup closes and the main page behind it moves to that link href. Instead, I'd like for the popup to stay up and change to the new page. Anyone have any ideas?

Offline

#2 2009-12-17 04:29:12

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: jQuery Facebox Question

I think you'll have to somehow make the remote page load inside an iframe for this to work, rather than loading directly into the facebox div. Not sure if this is a feature you can make use of or whether you will have to modify the JS code, but it should solve your problem

Edit: Something like

jQuery.facebox('<iframe src="url"></iframe>')

would work, or maybe you can modify the way it modifies the <a> links to insert iframes

Last edited by HashBox (2009-12-17 04:31:34)

Offline

#3 2009-12-17 07:15:36

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

Re: jQuery Facebox Question

Awesome (should have thought of that tongue). Thanks!!

Offline

#4 2009-12-17 07:35:39

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: jQuery Facebox Question

No problem mate!

btw you have 666 posts as of this comment XD

Offline

Board footer

Powered by FluxBB