Notifications
Clear all

Cant seem to get Iframe working.

13 Posts
2 Users
0 Reactions
2,423 Views
Posts: 7
Topic starter
(@kizza1234)
Active Member
Joined: 4 years ago

Any idea whats happening? Would you like me to give you login details so you can see whats happening? Ive made this stire with the Divi builder as well. I am able to make an Iframe normally, but using your plugin appears to make the page break and not load. 

Reply
TinyWebGallery
Posts: 925
Admin
(@admin)
Prominent Member
Joined: 16 years ago

Check your Javascript I only get an error

<script type="text/javascript">
function check_if_should_close(url) {
if ( url.match(/\checkout/?add-to-cart=208491/)
return true;
return false;
}

I think the whole Javascript is broken after that.

Best, Michael

Reply
Posts: 7
Topic starter
(@kizza1234)
Active Member
Joined: 4 years ago

I get these errors because of cross origin subframe. Its your plugin... 

 

Any idea how to fix? 

Reply
Posts: 7
Topic starter
(@kizza1234)
Active Member
Joined: 4 years ago

Hi, just chasing this up. Really need to get this working, haven't been able to use it at all. Cheers! 

Reply
TinyWebGallery
Posts: 925
Admin
(@admin)
Prominent Member
Joined: 16 years ago

Hi,

Like I wrote in the last post. Please fix your Javascript error before first! This has nothing to to with the iframe. This is the 3rd error on your screenshot. 

The autofocusing errors are coming from something from myfence. I think there is something in the iframe that tries to autofocus inside the iframe. You need to check with myfence. Maybe this can be disabled.

Remove hide_page_until_loaded_external="true" and hide_content_until_iframe_color="#ffffff"  for now. Because if the Javascript on your page is not running without errors the page is not shown as the Javascript after the error is not executed anymore! 

As your failing code is not surrounded by try/catch the rest of the code is not executed!

Best Regards, Michael

 

Reply
1 Reply
(@kizza1234)
Joined: 4 years ago

Active Member
Posts: 7

@admin But I have the same error when using any other URL - Not just the Myfence URL. I have tried 3 different URL's all with the same non loading page. When I dont use your Plugin and I simply make an Iframe it works without any issues. Would it be possible to login and check for your self what the issue is? 

Reply
Page 2 / 3