Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Ajax
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4201
Page 1 of 1

Author:  aparisis [ 1. Jan 2017, 21:10 ]
Post subject:  Ajax

Hi and a happy new year,

I'm using Adavanced iframe pro and it's working fine.
I made my site ajaxed with a plugin (AWS pro) and now I'm getting this error from an iframe...


var ai_iframe_width_advanced_iframe = 0; var ai_iframe_height_advanced_iframe = 0;var aiIsIe8=false; if (typeof aiReadyCallbacks === 'undefined') { var aiReadyCallbacks = []; } else if (!(aiReadyCallbacks instanceof Array)) { var aiReadyCallbacks = []; }var onloadFiredadvanced_iframe = false; function aiShowIframe() { jQuery("#advanced_iframe").css("visibility", "visible"); } function aiShowIframeId(id_iframe) { jQuery("#"+id_iframe).css("visibility", "visible"); } function aiResizeIframeHeight(height) { aiResizeIframeHeight(height,advanced_iframe); } function aiResizeIframeHeightId(height,width,id) {aiResizeIframeHeightById(id,height);}

var ifrm_advanced_iframe = document.getElementById("advanced_iframe");var hiddenTabsDoneadvanced_iframe = false; function resizeCallbackadvanced_iframe() {}function aiChangeUrl(loc) {}
var recalculateIframeResizeadvanced_iframe = 0; var recalculateIframeOrientationchangeadvanced_iframe = 0; function recalculateIframeadvanced_iframe() { clearTimeout(recalculateIframeResizeadvanced_iframe); clearTimeout(recalculateIframeOrientationchangeadvanced_iframe);aiResizeIframe(ifrm_advanced_iframe, "false","1");} function initResponsiveIframeadvanced_iframe() { jQuery(window).resize(function() { recalculateIframeResize = window.setTimeout("recalculateIframeadvanced_iframe()",100); }); if (window.addEventListener) { window.addEventListener("orientationchange", function() { recalculateIframeOrientationchange = window.setTimeout("recalculateIframeadvanced_iframe()",100); }, false); } } aiReadyCallbacks.push(initResponsiveIframeadvanced_iframe);


Any help about?

Regards
Andreas

Author:  TinyWebGallery [ 1. Jan 2017, 22:28 ]
Post subject:  Re: Ajax

This is the content of the page (Javascript) rendered on the parent side...
Seems the plugin does not execute Javascript but treats this as html..

You maybe have to configure this plugin this this is done properly.
Check if it does support inline Javascript!

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/