Okay
  Public Ticket #172681
Iframe Watch Video with problems
Closed

Comments

  • Hugo started the conversation

    Hey Phil,

    i'm worried about an error that is occuring when trying to play an embedded video on home page.The error is as image as attachment. I hope you can help me.

    Thanks

    HB

  • Hugo replied

    I think this problem is interfering with the comportment of the iframe, since sometimes the black background border around iframe doesn't show up.

    Regards

    HB

  • Hugo replied

    The problem is with this javascript line that is inside the image as attachment.

    Can you help me ?

    Regards,

    HB

  • Hugo replied

    To solve the problem i realized that the iframe's height equals to the pp_hoverContainer's element height ( iframe's container, right?!? ), so i changed the var height to the follow value:

    var height = jQuery('.pp_hoverContainer').height();

    Do you agree with this fix ?

    Regards

    HB

  •  1,069
    ThemeNectar replied

    Hey Hugo!

    Yes that will work, but there shouldn't be an issue with the sizing by default - what version of the theme are you on?

  • Hugo replied

    Hey Phil, the version is 3.0.5.

    The problem is in the way of the height is got. 

    I did some research and i found this:

    "Domain of parent page and the its origined iframe page must be same to access parent frame javascript from child frame javascript or jquery. This is a basic security feature which prevents javascript injection from cross-domain sites."

    Source: http://salesforce.stackexchange.com/questions/1763...

    The version that i am running is 3.0.5.

    Regards

  • Hugo replied

    PS: I'm using last release of Chrome. I tested in several computers, and the Salient Theme is having the same problem. Indeed, as i told you with that solution i fixed the issue. But for other side, the problem with the load of black background around the Iframe is not solved. Sometimes the black background doesn't load.

    You can see what i say here: http://www.openidea.com/ ( second banner - Button saying "Open Idea's Smart City Watch this video".

    Regards

    HB

  •  1,069
    ThemeNectar replied

    Hey again Hugo! The background overlay not fading is in another bug that Chrome 33 brought with it. I have now sorted a solution on my end and can apply it to your setup if you would like so you don't have to wait until the next release. If that sounds good to you, please just supply me admin credentials :)

    Cheers

  •   Hugo replied privately
  •  8,838
    Tahir replied

    Hey Hugo!

    I am afraid then you would have to wait two week for the next update. 

    Regards


    ThemeNectar Support Team