Ajax not working on resposnive

Posted in: Newspaper
Post count: 31

Hi,

since on my previous post on same issue there is no reply in days, I will try opening new one.

So, my site is all good on Desktop, but in Responsive version loaded on mobile device directly – Ajax is not working.

Search box not opening.

Slide menu not opening.

Sub categories can not be selected.

Sliders not working.

I have tried disabling all plugins, clearing all cache, nothing helped.

I need help ASAP as we are going live in one day!

Site is : http://dev.fokus.ba

Thanks!

Post count: 555

I just test ur search box and it work fine for me on my side…

The slide is working on my end as well…

you have a lot of errors in your javascrpit console.. fix these issues..

Blocked a frame with origin "http://tpc.googlesyndication.com" from accessing a frame with origin "http://dev.fokus.ba". Protocols, domains, and ports must match.(anonymous function) @ jquery.min.js:2
jquery.min.js:2 Blocked a frame with origin "https://googleads.g.doubleclick.net" from accessing a frame with origin "http://dev.fokus.ba". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
(anonymous function) @ jquery.min.js:2
http://dev.fokus.ba/wp-content/uploads/2015/05/facebook.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://dev.fokus.ba/wp-content/uploads/2015/08/dragan-haris-lopare.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://dev.fokus.ba/wp-content/uploads/2015/07/facebook-video.png Failed to load resource: the server responded with a status of 404 (Not Found)
http://dev.fokus.ba/wp-content/themes/fokus/images/icons/newspaper.woff Failed to load resource: the server responded with a status of 404 (Not Found)
http://dev.fokus.ba/wp-content/uploads/2015/07/protesti-3.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
container.html:17 Blocked a frame with origin "http://tpc.googlesyndication.com" from accessing a frame with origin "http://dev.fokus.ba". Protocols, domains, and ports must match.kb @ container.html:17
hiro_dynamic_player.js:578 Running Hiro version: 107.8.1-71
hiro_dynamic_player.js:578 Running Hiro version: 107.8.1-71
https://b.scorecardresearch.com/p?C1=1&C2=16580707&C5=09 Failed to load resource: net::ERR_INSECURE_RESPONSE
(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
2(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
3(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
2(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
2(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
5(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
2(program):1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ (program):1
VM649:1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ VM649:1
VM656:1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ VM656:1
VM666:1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001(anonymous function) @ VM666:1
2VM674:1 Error: Ad adLoadError error: No ads were found in the ad response. At least one ad is required to be able to load or play. errorCode: 1001

Post count: 555

All those issues you complaining about i can’t find any every thing is working on my end,clear ur browser cache are try a different browser because it’s not any issues with the theme…

Post count: 31

Hi, it is working for me on Desktop, it is even working when I turn on Console in Chrome and test it on mobile view.

But it is not working directly on phone – I am using iPhone6 …

Are you testing it on the phone directly or via desktop / console mobile view?

Please test it directly on mobile and tell me which device / browser are you using, as for me issue is present on iPhone6 with Safari, all cache cleared.

I will fix these errors, they mostly come from different domain name used in staging before migration.

Thanks!

Post count: 555

I test with my Samsung 6 android phone using chrome browser and it work fine but site is very slow on mobile,don’t have a iphone because i don’t like them..if this was a theme issue all of us will have the same issues here…

  • This reply was modified 10 years by Steven.
Post count: 555

May be you should fix all the errors first and then see what happen..

ur GTmetrix Test >> https://gtmetrix.com/reports/dev.fokus.ba/k46k2LMf

Post count: 31

Dear Steven,

Just for your information – I had these same problems when I got 100/100 on Google PageSpeed test, 98% on GTMetrix test. When these errors were not there – these errors come from my migrated files because I have not yet setup ads correctly as it seams.

So this issue is with iPhone models, if Samsung/Android works, or theme, not these errors, as this was happening before as I say, and I tested it on two iPhone devices with same results.

Can anyone from tagDiv support take a look at this, or anyone with iPhone?

Thanks!

Post count: 555

wait till tomorrow when the support team come online to help you,they don’t work on the weekend..

Can you test my site on ur iphone 6 and see if there are issues with the ajax… https://jahliveradio.com

  • This reply was modified 10 years by Steven.
Post count: 31

Just found one Samsung/Android phone, and it works there … and I tried Chrome on iPhone again, does not work.

Steven, I have disabled ads now, do you still see these errors? Apart from missing images to some posts?

Thanks!

Post count: 555

Just these few…

Failed to load resource: the server responded with a status of 404 (Not Found)
http://dev.fokus.ba/wp-content/uploads/2015/07/protesti-3.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://dev.fokus.ba/wp-content/themes/fokus/images/icons/newspaper.woff Failed to load resource: the server responded with a status of 404 (Not Found)
http://dev.fokus.ba/wp-content/uploads/2015/08/dragan-haris-lopare.jpg Failed to load resource: the server responded with a status of 404 (Not Found)
http://dev.fokus.ba/wp-content/uploads/2015/07/facebook-video.png Failed to load resource: the server responded with a status of 404 (Not Found)

Post count: 555

I’m not sure if this code is coming from a plugin you have install are something else you done but i have a feeling this code is why ur ajax is jack up..

` // CUSTOM AJAX CONTENT LOADING FUNCTION
var ajaxRevslider = function(obj) {

// obj.type : Post Type
// obj.id : ID of Content to Load
// obj.aspectratio : The Aspect Ratio of the Container / Media
// obj.selector : The Container Selector where the Content of Ajax will be injected. It is done via the Essential Grid on Return of Content

var content = "";

data = {};

data.action = 'revslider_ajax_call_front';
data.client_action = 'get_slider_html';
data.token = '15bba73ac3';
data.type = obj.type;
data.id = obj.id;
data.aspectratio = obj.aspectratio;

// SYNC AJAX REQUEST
jQuery.ajax({
type:"post",
url:"http://dev.fokus.ba/wp-admin/admin-ajax.php",
dataType: 'json',
data:data,
async:false,
success: function(ret, textStatus, XMLHttpRequest) {
if(ret.success == true)
content = ret.data;
},
error: function(e) {
console.log(e);
}
});

// FIRST RETURN THE CONTENT WHEN IT IS LOADED !!
return content;
};

// CUSTOM AJAX FUNCTION TO REMOVE THE SLIDER
var ajaxRemoveRevslider = function(obj) {
return jQuery(obj.selector+" .rev_slider").revkill();
};

// EXTEND THE AJAX CONTENT LOADING TYPES WITH TYPE AND FUNCTION
var extendessential = setInterval(function() {
if (jQuery.fn.tpessential != undefined) {
clearInterval(extendessential);
if(typeof(jQuery.fn.tpessential.defaults) !== 'undefined') {
jQuery.fn.tpessential.defaults.ajaxTypes.push({type:"revslider",func:ajaxRevslider,killfunc:ajaxRemoveRevslider,openAnimationSpeed:0.3});
// type: Name of the Post to load via Ajax into the Essential Grid Ajax Container
// func: the Function Name which is Called once the Item with the Post Type has been clicked
// killfunc: function to kill in case the Ajax Window going to be removed (before Remove function !
// openAnimationSpeed: how quick the Ajax Content window should be animated (default is 0.3)
}
}
},30);
});
`

  • This reply was modified 10 years by Steven.
  • This reply was modified 10 years by Steven.
Post count: 31

Hi Steven,

by the content of this call, it is Revolution Slider plugin, so it could not be the case, as it is standard Plugin for this theme.

Other plugins I have are standard theme plugins.

Only non-Theme plugins active are Yoast SEO, WP Smush, Limit Login Attempts – so nothing that could have this code in it … dont think this is cause of my issues, as Revolution slider I need 🙂

Thanks!

Post count: 555

I’ve been using this theme going 2 years now and trust me when something is broken it means something you install are something you change..this theme has been tested with every devices to work correctly and when something is not working it means a plugin is making the problem are some code you add some where.. well you can wait till tomorrow and see what the support team tell you and i know they going tell you the same thing i just did…

  • This reply was modified 10 years by Steven.
Post count: 31

Well I am using it also for 2 years on old server, this is new server, and new 6.4 version, and it is really strange to me that this does not wrong. On old server I had many more plugins, and all was working.

Support on Friday told me to disable all plugins, clear or caches and test – which I did – and it did not help, I updated that ticket, but no reply since there, thats why I started this topic …

Thanks for your effort anyway – lets wait what support will say tomorrow!

Have a great evening 🙂

Post count: 555

Same too you and good luck…

Viewing 15 posts - 1 through 15 (of 15 total)
The forum ‘Newspaper’ is closed to new topics and replies.