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.
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();
"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."
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".
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 :)
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
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
The problem is with this javascript line that is inside the image as attachment.
Can you help me ?
Regards,
HB
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
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?
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
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
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
Hey Hugo!
I am afraid then you would have to wait two week for the next update.
Regards
ThemeNectar Support Team