NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: debzidoodle on March 20, 2014, 12:18:01 PM

Title: NT 8.02 Mobile mode: ReferenceError: getScreenSize is not defined
Post by: debzidoodle on March 20, 2014, 12:18:01 PM
In mobile mode I am getting the following error, preventing any form from submitting.

ReferenceError: getScreenSize is not defined
https://10.211.55.4/?_mobile_=1
Line 42

[Edit] probably related, but I am also getting this error if I tell the getScreenSize to ignore
ReferenceError: getLocation is not defined
https://10.211.55.4/IndexPage?_mobile_=1
Line 42

Thanks,
Debra
Title: Re: NT 8.02 Mobile mode: ReferenceError: getScreenSize is not defined
Post by: Bruce on March 20, 2014, 10:02:49 PM
Morning Debra,
Did you deploy the web folder?
you'd get errors like that if some of the javascript was missing.
Also, make sure it's 8.02 - I would expect a problem like this in 8.01 but not 8.02.

cheers
Bruce
Title: Re: NT 8.02 Mobile mode: ReferenceError: getScreenSize is not defined
Post by: trent on April 10, 2014, 01:55:03 PM
Hi Bruce,

I'm getting this error too in 8.07. The javascript as an error:

$(document).ready( function(){getScreenSize();

Should be (according to Lint):

$(document).ready( function(){getScreenSize();});

Regards,
Trent
Title: Re: NT 8.02 Mobile mode: ReferenceError: getScreenSize is not defined
Post by: Bruce on April 10, 2014, 10:03:42 PM
Do a right click ; view source ; on the web page.
I tried it with an example app and I see;

<script defer="defer">
$(document).ready( function(){
versionCheck('8.04');
getScreenSize();
})</script>


which is correct as far as I can see. What do you see in the source?

Cheers
Bruce
Title: Re: NT 8.02 Mobile mode: ReferenceError: getScreenSize is not defined
Post by: trent on April 10, 2014, 11:00:38 PM
As it did the other day, the error messages have disappeared all of a sudden! They happened on some builds and then they were gone...

Regards,
Trent