Community
Showing results for 
Search instead for 
Do you mean 
Reply

Javascript error on all mobile devices

Accepted Solution Solved
Copper Contributor
Posts: 5
Country: USA
Accepted Solution

Javascript error on all mobile devices

[ Edited ]

Act Premium for Web has been working fine for over a year now. Suddenly (I suspect browser updates on our mobile devices) We get constant errors on the login screen about needing to enable javascript, and the login button is disabled.

This is happening on multiple Apple and Android devices. I have verified in multiple ways that javascript is enabled in the browser including going to enable-javascript.com.

Website works fine on PC's though I did see one error about IE11 on Windows 8.1 not being supported.

Act Premium version 16.0.304.0 running on Windows server 2012 R2.

Do we need to upgrade to Act 17 to support modern browsers?

Thanks in advance for any ideas. 

 


Accepted Solutions
Solution
Accepted by topic author blarson
‎11-24-2015 08:32 AM
Administrator
Posts: 4,024
Country: United_Kingdom

Re: Javascript error on all mobile devices

Further to my reply: The steps outlined in this thread have also been reported to resolve the issue, and also explain why it occurs.

Please let us know the outcome as we'd like to further investigate this issue.

View solution in original post


All Replies
Administrator
Posts: 4,024
Country: United_Kingdom

Re: Javascript error on all mobile devices

Does the error also appear when accessing http://afwdemo.act.com/apfw/ on the mobile device?

Does the error occur on alternate browsers (i.e. Dolphin, Chrome)?
Copper Contributor
Posts: 5
Country: USA

Re: Javascript error on all mobile devices

[ Edited ]

That link works fine on several of our mobile devices (works on every one we tried).

The link to our local site fails on Chrome and Firefox.

 

Administrator
Posts: 4,024
Country: United_Kingdom

Re: Javascript error on all mobile devices

We have a Knowledgebase article that has a potential solution which would be worth trying:
http://kb.swiftpage.com/app/answers/detail/a_id/37448

Solution
Accepted by topic author blarson
‎11-24-2015 08:32 AM
Administrator
Posts: 4,024
Country: United_Kingdom

Re: Javascript error on all mobile devices

Further to my reply: The steps outlined in this thread have also been reported to resolve the issue, and also explain why it occurs.

Please let us know the outcome as we'd like to further investigate this issue.

Copper Contributor
Posts: 5
Country: USA

Re: Javascript error on all mobile devices

Unfortunately this did not work. 

The first section did not seem to apply as I am running on the Default Site and did not move the site folders. It always worked fine in that location.

The second section seemed like exactly what I needed, but I modified both files by dong a search and replace to remove "http:" and the mobile site continues to throw the javascript errors even after a restart.

 

This fix was posted 2 years ago - is there an officially supported fix or upgraded version that addresses this now?

 

I should mention - though I don't think it's causing any issues - we are using a self generated cert so we are living with cert errors related to the name of the site and are using https only for encryption, not for identity.

 

 

Copper Contributor
Posts: 5
Country: USA

Re: Javascript error on all mobile devices

From Chrome Developer Tools. I wonder if there is another file that needs to be edited?

 

Mixed Content: The page at 'https://web01/apfw/M' was loaded over HTTPS, but requested an insecure stylesheet 'http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css'. This request has been blocked; the content must be served over HTTPS.


M:1 Mixed Content: The page at 'https://web01/apfw/M' was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/jquery-1.8.3.min.js'. This request has been blocked; the content must be served over HTTPS.


M:1 Mixed Content: The page at 'https://web01/apfw/M' was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js'. This request has been blocked; the content must be served over HTTPS.


/APFW/default.aspx?ReturnUrl=%2fAPFW%2fJavaScript%2fMobile%2fjquery.mobile.fixedToolbar.polyfill.debug.js:2 Uncaught SyntaxError: Unexpected token <
Logon-16.0.304.min.js:1 Uncaught ReferenceError: $ is not defined

Copper Contributor
Posts: 5
Country: USA

Re: Javascript error on all mobile devices

Ha! I'm an idiot. I knew this had to work.

Helps if you edit the files on the actual web server (virtual machine) and not on the physical host server where I had originally built the first test site...

 

Thank you!

 

 

Administrator
Posts: 4,024
Country: United_Kingdom

Re: Javascript error on all mobile devices

Awesome, glad you got this resolved.

I'd just begun testing with a self signed cert on our side and testing in mobile devices and couldn't replicate it at all.