Notifications
Clear all

Urgent - Auto-resize stopped working?

5 Posts
2 Users
0 Likes
422 Views
Posts: 14
Topic starter
(@mayumibk)
Eminent Member
Joined: 3 years ago

Hi Michael,

I have been using the Pro version for a year with these hotel booking pages for auto-resize function, and the they used to work perfectly before. 

However, my customer just told us that they only show a part of the page and doesn't allow to make any booking.

https://cupoftea-takayama.net/ensemble/reserve/

https://cupoftea-takayama.net/guesthouse/reserve/

I am using the shortcode below:

[advanced_iframe use_shortcode_attributes_only="true" src="https://beds24.com/booking2.php?propid=123477&layout=6" width="100%" height="100vh" scrolling="no" id="beds24_iframe" enable_external_height_workaround="true" url_forward_parameter="ALL" add_iframe_url_as_param="remote" onload_resize="true" onload_resize_delay="1000"  resize_on_element_resize="#formlook"]

I am not quite sure when it started screwing up. I haven't updated Advanced iFrame Pro from the last June nor any plugin settings, the embedded page.

We are now losing our potential sales because of this, so it would be great if you help us fix this issue.

 

Regards,

Mayumi

4 Replies
TinyWebGallery
Posts: 880
Admin
(@admin)
Prominent Member
Joined: 15 years ago

Hi,

I see

Uncaught SyntaxError: Unexpected token '>' (at (index):104:9)

on your page: <script>>     There is one > too much.

you should fix this as no Javascript is executed right now.

also the

onload_resize="true" onload_resize_delay="1000"  resize_on_element_resize="#formlook"

are not used as you use 

enable_external_height_workaround="true"

 

 

 

Reply
1 Reply
(@mayumibk)
Joined: 3 years ago

Eminent Member
Posts: 14

@admin 

Thanks for your comment.

In addition to your pointing out, I've just noticed that the id in the ai_external.js and one in the shortcode was different.

What's weird is that I previously specified the id as "beds24_iframe" in the basic tab (see attached), and it was applied to the ai_external.js file, and everything used to work fine.

However, the .js file was somehow modified yesterday, and the id got overridden like "advanced_iframe" , although I haven't updated any of plugin settings!

https://cupoftea-takayama.net/ensemble/wp-content/plugins/advanced-iframe/js/ai_external.js

Now I am temporarily using the original version of js file that remains in the demo environment ( https://demo.cupoftea-takayama.net/ensemble/wp-content/plugins/advanced-iframe/js/ai_external.js ) and this works as a good workaround for now.

I have two questions:

1. Why do you think my id in the js file got overridden to this unwanted value, though I haven't modified any settings in admin? Does any operation such as updating other plugins, theme, WP have an effect to the js file settings by chance? This is really weird....

2. To add the correct javascript file in the production environment, I would love to re-override the id specified in the js file to my original value "beds24_iframe", but don't know how. As you can see from the attached, I've already set this value in the basic tab, but the js still holds the unknown value. How do you think can I modify this?

Regards,

Mayumi

 

Reply
TinyWebGallery
Posts: 880
Admin
(@admin)
Prominent Member
Joined: 15 years ago

Was maybe a backup done which overwrote it? 

ai_external.js is always generated if you press the save button in the administration. 

I have seen you have a version number after the ai_external.js 

Increase this number. I think this cached by your server if the number does not change. 

Best regards, Michael

Reply
TinyWebGallery
Posts: 880
Admin
(@admin)
Prominent Member
Joined: 15 years ago

@Gikan: and what is you question?

Reply