Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Using FB V3 & opening an iFrame programmatically. But, the hash is missing!  #2647

@halukkaramete

Description

@halukkaramete

Hello...

When I open a iframe URL thru litebox programmatically ( with the basic code below), hash does not change.

I'd like the hast to be part of the URL, just like the normal hrefs with data attributes automatically do.

The reason I like this is because when you load a page with that URL ( with the hash ),as soon as the browser loads the main URL, your code kicks in and fires up the litebox of that iframed URL

But when I open my lightbox thru this code, this functionality is missing in action.

$.fancybox.open({
                type: 'iframe',
                src:url,
                opts : {
                    afterClose : function( instance, current ) {
                        $('.closerX').css('visibility', 'visible');
                    },
                    afterLoad : function( instance, current ) {
                        $("body").css("cursor", "default");
                    }
                }
            });

Is there a way to add the hash programmatically into the above code so I can enjoy the same functionality?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions