NetTalk Central

Author Topic: Geting "Error in site JavaScript"  (Read 5662 times)

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Geting "Error in site JavaScript"
« on: November 22, 2011, 11:45:14 AM »
Upgraded pre-existing NT5 app to NT6

Followed the upgrading to NT6 docs to the letter.

BAT file ran fine (I think this is a neat feature)..

Compiles run fine.

Something is amiss in the Javascript...

Don't have a clue.  Example apps seem to be fine.

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

jtailleur

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #1 on: November 22, 2011, 12:12:22 PM »
Same for me as well.  The NT5 site was working great; installed the upgrade, followed the docs, and now the main page gets a javascript error.  If I don't do the batfile update; the site complains it's out of date; but it works.  When I do run the batch file (great idea); the index page loads but I get the error and can't login.

Skip Williams

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #2 on: November 22, 2011, 12:15:23 PM »
Same problem here with me.

NT5 app compiles fine under 6, but puts up the signon page with a javascript error and the round cursor spinning. Refuses to go any farther.

btw, the copy web and gzip bat jobs seemed to run fine here.

Skip

jtailleur

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #3 on: November 22, 2011, 01:17:40 PM »
Strangely; if I access my website using the localhost address (http:/127.0.0.1:88) I don't get the javascript error.  If I log in using my actual IP address (172.17.1.113:88) I get the javacript error.  Weird...

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #4 on: November 22, 2011, 03:33:24 PM »
I'm getting it no matter what.

Seems to me that if the examples are working correctly, that there must be some setting in my app that is incorrect...

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #5 on: November 22, 2011, 03:47:57 PM »
Scratch that..got the error after compiling and running Example 22.

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #6 on: November 22, 2011, 04:27:30 PM »
Okay, started with a dictionary I had laying around...

Generated a brand new web server app from scratch.

The first tab of the wizard (where you select the theme?), looks like there's supposed to be some images showing examples of the themes.  No images here.

Same for the tab where you select the menus.

Anyway, the wizard works fine.  It generated a complete web server application.

I compiled the app with no errors on the first attempt.  I made no modifications to any procedure.

The batch file did it's thing and appears to work fine.

I got the "Error in Site Javascript" with the busy animated GIF thingy...

Oh, also, I cannot get any of the example apps to "detect" my Android smart phone.  Almost a brand new phone. 

Despite this, I think this is going to be the best NetTalk yet.  With as many features as this has, I'm expecting some growing pains.  I mean, this is some kick arse stuff here!  I freaking App Gen for NetTalk?!  Amazing!

Thanks,
Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: Geting "Error in site JavaScript"
« Reply #7 on: November 22, 2011, 10:12:14 PM »
hi Don,

>> The first tab of the wizard (where you select the theme?), looks like there's supposed to be some images showing examples of the themes.  No images here. Same for the tab where you select the menus.

thanks for the heads-up, yes the images for the wizard were missing from the build. I've sorted that out for the next build.

>> I got the "Error in Site Javascript" with the busy animated GIF thingy...

you shouldn't get that - try a refresh. however if that doesn't work go to the WebServer Advanced tab and turn off the "compress and combine" options. Let me know if that changes anything.

>> Oh, also, I cannot get any of the example apps to "detect" my Android smart phone.  Almost a brand new phone. 

can you post the User-agent string from the phone please. ie in the log, the UserAgent of any of the requests.

Cheers
Bruce

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Geting "Error in site JavaScript"
« Reply #8 on: November 23, 2011, 01:02:48 AM »
Hi Bruce,

>you shouldn't get that - try a refresh. however if that doesn't work go to the WebServer Advanced tab >and turn off the "compress and combine" options. Let me know if that changes anything.

I can confirm that this makes it work.

Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: Geting "Error in site JavaScript"
« Reply #9 on: November 23, 2011, 02:28:19 AM »
If you have an app that works with combine / compress OFF but not ON then please email me directly. I'd like to understand (and probably document) any issues related with that.

cheers
Bruce

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #10 on: November 23, 2011, 03:21:43 AM »
User Agent Info For My Phone:  Mozilla/5.0 (Linux; U; Android 2.3.3; en-us; Sprint APA9292KT Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

(Emailing you direct to inform you)

My app works fine with combine/compress = off

Thanks Bruce!

Don
« Last Edit: November 23, 2011, 03:38:15 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Skip Williams

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #11 on: November 23, 2011, 03:24:06 AM »
Hi Bruce,

Turning compress/combine to OFF got me past the javascript error and spinning cursor problem on the signon screen.

The app works now but...

i have some significant heading and footer formatting problems.  It may have been something that I have done as i have added ...

<head><meta name="viewport" content="user-scalable=yes, width=device-width" /></head>

to my header, which may not be necessary in nt6. I need to spend some time looking at that...

Skip

jtailleur

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
Re: Geting "Error in site JavaScript"
« Reply #12 on: November 23, 2011, 08:24:49 AM »
>> I got the "Error in Site Javascript" with the busy animated GIF thingy...

you shouldn't get that - try a refresh. however if that doesn't work go to the WebServer Advanced tab and turn off the "compress and combine" options. Let me know if that changes anything.

Turning off the compress and combine options fixed Javascript error for me; thanks Bruce.


Joe.