I have a very simple webpage called a.html where I want to click on an image and I want a modal window to be opened, loading the content from b.html#main instead of from the main div from the a.html webpage.
How can I do this?
Thanks a lot in advance!
Check out the "iframe" option. There's some code here on the fancybox Howto page.
Cheers,
Al
Related
I have an Apex 19.2 page. Inside the page there is an iframe from another page of the same application.
Once some process are successful inside the iFrame, I would like to allow the user to close the modal page by clicking a button inside the iFrame.
I tried a dynamic action with Close/Cancel dialog but it's not working.
Has anyone an idea how to do that please ?
Thanks,
cheers,
.
Here is the solution.
From the iFrame :
parent.apex.navigation.dialog.close(true)
I have a few Pretty Photo images in my app, but they are opening in a new page instead of in a PrettyPhoto display.
Here's the index of my app, which is stripped down of everything not nescessary to run it.
Click the down arrow in order to view the pretty photo page.
I use the jQuery version from the download. Also PrettyPhoto and it's script are initialised right before the closing div tag.
What could possibly be wrong with it? Why are the images opening in a new page?
Thx in advance!
It's because you are calling the plugin once the document is loaded but not after clicking on the down arrow.
If you go to your site. Click on the down arrow. Open the js inspector and copy/paste this
//jQuery.noConflict();
jQuery(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({
social_tools: false,
theme: 'light_square'
});
});
You will see it's working.
So try to trigger the prettyPhoto once the pictures are loaded.
Currently a lightbox is triggered when a visitor clicks a certain link on my page. However, as an introduction to new users I'd also like to show the lightbox when a visitor loads a page.
I've been looking into click events, but I can't seem to get it to work. Could somebody please point me in the right direction?
The site is located on http://wandree.websites.xs4all.nl/test, and the lightbox is currently triggered when you press the image of the tv located in the sidebar.
Thanks for any help!
Try this in the head section of the page:
$(document).ready(function(){
// Call the lightbox function.
});
I'm trying to open the Twitter share URL http://twitter.com/share?url=http://google.com&text=Google using Highslide iframe http://highslide.com/ref/hs.objectType
But the Highslide popup has no content!
Anybody knows what seems to be the problem?
The page has code specifically to prevent you from displaying it in a frame. The page is only made visible if it detects that it's not inside a frame.
So, you shouldn't put it in an iframe.
Hi I have an html page with jQuery accordian menu, that shows, hides divs on click. What I can't seem to figure out is how to load a swf into a div that sits on the page. Please help!!
$("#divId").html(swfHtmlString);