Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 20. Oct 2017, 16:01

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 19. Jan 2017, 00:07 
Offline

Joined: 18. Jan 2017, 23:59
Posts: 5
I'm having real problems getting auto zoom to work on mobile browsers; I'm a noob so I'm guessing it's me rather than the plugin!

My page at http://seppo.co.uk/about/#1483712972005-6d7a7ede-084f has a script hosted on a remote domain and whilst it displays ok on a desktop, I can't get it to work on mobile browsers; basically I want it to zoom nicely and show all at a size that means there's no horizontal scrolling. Instead, nothing is showing on mobiles. What am I doing wrong?

My plugin has the following:

Code:
[advanced_iframe securitykey="my_key" src="http://lawquotes.co.uk/quotes/seppo/default.asp" use_shortcode_attributes_only="true" id="advanced_iframe_31" auto_zoom="remote" width="100%" height="1250" enable_responsive_iframe="true" pass_id_by_url="ai_id"]


I have the following in the header on my asp page on the remote domain:
Code:
<script>
var iframe_id = "advanced_iframe_31";
var updateIframeHeight = "true";
var hide_page_until_loaded_external = "true";
var iframe_url_id ='ai_id';
</script>
<script src="http://www.tinywebgallery.com/blog/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>
<script>document.domain='www.seppo.co.uk';</script>

Any help gratefully received!

Seppo


Top
 Profile  
 
PostPosted: 19. Jan 2017, 14:30 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10498
What are the default settings in your config? (press on create shortcode on the basic tab and post this).

Because the remote script does not know (yet) when to send updates for the size!

auto_zoom="remote" enable_responsive_iframe="true"
have also to be known for the external script.

also you include my script!

<script src="http://www.tinywebgallery.com/blog/wp-content/plugins/advanced-iframe/js/ai_external.js">

you need to include YOURS like shown on the "external workaround" tab.
http://seppo.co.uk/wp-content/plugins/advanced-iframe/js/ai_external.js
maybe...

Also
<script>document.domain='www.seppo.co.uk';</script>
does not make sense as you are NOT on a sub domain but a completely different!

Best, Michael


Top
 Profile  
 
PostPosted: 20. Jan 2017, 01:08 
Offline

Joined: 18. Jan 2017, 23:59
Posts: 5
Thanks for getting back to me; I think I'm a bit further forward :D

My shortcode is:

Code:
[advanced_iframe securitykey="my_key" use_shortcode_attributes_only="true" src="http://lawquotes.co.uk/quotes/conveyancinglawyers" width="100%" scrolling="no" id="advanced_iframe" enable_responsive_iframe="true" add_css_class_parent="true" add_css_class_iframe="true" resize_on_ajax_jquery="false" add_document_domain="true" enable_external_height_workaround="true" ]


My external page now has the following in the <head> tags:

Code:
<script src="http://seppo.co.uk/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>
<script>document.domain='www.lawquotes.co.uk';</script>


(seppo is my WP domain, the external page is on lawquotes)

On a desktop browser it sort of works, but not on a mobile one. Am I still missing something?

thanks

Seppo


Top
 Profile  
 
PostPosted: 20. Jan 2017, 02:21 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10498
you are getting closer :).

remove
<script>document.domain='www.lawquotes.co.uk';</script>
as this does not make sense for your setup.

now you have to configure ai_external.js!!

In the administration all settings that have a "save icon" are saved to this file!

So http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/auto-zoom-iframe-content#e31
is what you need.

It is important that you enable the auto height on the external workaround tab and save it! you have done this already.

So with your current ai_external.js use

[advanced_iframe securitykey="my_key" src="http://lawquotes.co.uk/quotes/seppo/default.asp" use_shortcode_attributes_only="true" id="advanced_iframe" auto_zoom="remote" width="100%" height="1250" enable_responsive_iframe="true"]

Where is the iframe parent?

Best, Michael


Top
 Profile  
 
PostPosted: 20. Jan 2017, 16:53 
Offline

Joined: 18. Jan 2017, 23:59
Posts: 5
Thanks; not at my computer at the moment but the iframe parent is on http://seppo.co.uk/about/#1483712972005-6d7a7ede-084f in the Sell & Purchase tab.


Top
 Profile  
 
PostPosted: 21. Jan 2017, 04:29 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10498
check the error console of your browser:

"advanced iframe configuration error: The id of the parent and the external workaround are different! Check your settings."

Please start simple. Most likely you only use 5% of the settings!
check my latest post.

Best, Michael


Top
 Profile  
 
PostPosted: 23. Jan 2017, 23:58 
Offline

Joined: 18. Jan 2017, 23:59
Posts: 5
Thanks again have changed the id now; getting a bit further now but still not getting the mobile view to zoom correctly - the iframe scrolls side to side:

Code:
[advanced_iframe securitykey="mykey" src="http://lawquotes.co.uk/quotes/seppo/default.asp" enable_external_height_workaround="true" use_shortcode_attributes_only="true" id="advanced_iframe" auto_zoom="remote" width="150%" height="1250" enable_responsive_iframe="true" pass_id_by_url="ai_id"]


Should that happen?

Calum


Top
 Profile  
 
PostPosted: 7. Feb 2017, 22:47 
Offline

Joined: 18. Jan 2017, 23:59
Posts: 5
I still haven't been able to get this sorted; any ideas what I'm doing wrong please?


Top
 Profile  
 
PostPosted: 13. Feb 2017, 10:15 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10498
Why do you use width 150%? This does not make sense to me. Especially when you enable zoom which always tries to zoom to 100% width.

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO