NetTalk Central

Author Topic: Script Error 8.13  (Read 6287 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Script Error 8.13
« on: June 02, 2014, 02:11:12 AM »
These errors are beyond my abilities....

see attached picture.

/Niels

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Script Error 8.13
« Reply #1 on: June 02, 2014, 05:44:36 AM »
can you duplicate in any of the examples? I seem to remember this error from a long time ago, but I'm not able to duplicate it here. Any hints you can give me?

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Script Error 8.13
« Reply #2 on: June 02, 2014, 08:04:14 AM »
Not sure if this is the same problem.

Change example Web3 Nettalk Object  Extension Performance tab

Change Combine Common Files from False to True.

Java script errors.

Nettalk 8.13

JPMacDonald

  • Full Member
  • ***
  • Posts: 106
    • View Profile
    • Email
Re: Script Error 8.13
« Reply #3 on: June 02, 2014, 08:04:58 AM »
Hi,

The last 2 errors seem to indicate that jQuery is not loaded at the time these scripts are being executed.

Make sure that jQuery is loaded first before any other scripts and if you are loading it from a CDN, that it is available online.

Just a thought.

Regards

Parker

urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: Script Error 8.13
« Reply #4 on: June 02, 2014, 08:16:44 AM »
Neils, try the following.

Check the Custom.Css and check for lines in the CSS declarations that contain files.

Example
#counter {
   display: block;
   background: transparent url("../images/ImageName.jpg") no-repeat;
   width:170px;
   height:115px;
   margin: 0 auto;
   padding: 0px;
}

In the ../ remove the dots and just leave / (look at the green line). Run the gzip again and try check if it fixed.

Something similar happen to me when i check the option Combine Common Files with the images and that change fixed the problem (Bruce, does this ring a bell?)


trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Script Error 8.13
« Reply #5 on: June 02, 2014, 02:13:35 PM »
Hi Bruce,

There is definitely a problem with 8.13. My app is showing the same issues as Neils. Attached is example web3 that also has the same problem.

Regards,
Trent

[attachment deleted by admin]

rainerwallenius

  • Jr. Member
  • **
  • Posts: 70
    • View Profile
    • Email
Re: Script Error 8.13
« Reply #6 on: June 02, 2014, 11:17:38 PM »
Bruce, same happens here.
FYI: IE and Safari do not display error, Firefox and Chrome does. (on the other hand, popups ceased to work but that's probably not related)

:: rainer

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 431
    • View Profile
    • Email
Re: Script Error 8.13
« Reply #7 on: June 03, 2014, 02:26:55 AM »
Setting the "Combine common files" to 0 solved it.... but why?

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: Script Error 8.13
« Reply #8 on: June 03, 2014, 03:43:13 AM »
It was problem with previous version too.
The problem occurs when Netalk has to load several small files on one page. No meter .JS or .CSS or .PNG. I've experienced it when I was loading several .JSON files in a sequence. Files does not need to be big to cause problem.
It is the only major weakness of NetTalk server I found till now. It could be avoided but still it need to be fixed.

Best regards,

Djordje Radovanovic

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Script Error 8.13
« Reply #9 on: June 03, 2014, 04:01:17 AM »
unzip the attached into your
\clarion\accessory\libsrc\win\netweb\web\scripts
folder.

This is a replacement for jquery-ui-1.10.4.custom.min.js

then (in your app folder) run
COPYALL.BAT
and
GZIPALL.BAT

(this bug is obviously fixed in 8.14, which should be up soon.)

Cheers
Bruce


[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Script Error 8.13
« Reply #10 on: June 03, 2014, 04:06:25 AM »
>> Setting the "Combine common files" to 0 solved it.... but why?

because the combiner appends all the JS files together, and then runs the combined file through jsmin.exe to "minify it". the bug is actually in jsmin - which has been fixe din a later version of jsmin.

Djordje,

>> The problem occurs when Netalk has to load several small files on one page. No mater .JS or .CSS or .PNG. I've experienced it when I was loading several .JSON files in a sequence. Files does not need to be big to cause problem.
It is the only major weakness of NetTalk server I found till now. It could be avoided but still it need to be fixed.

The issue you are referring to is unrelated to the issue in this thread. Indeed your issue is the complete opposite in that it occurs only if keep-alive is on, but the files are not combined. the issue in this thread is limited to combined files (which is why I did not duplicate it at first.)

Urayoan's error;
>> In the ../ remove the dots and just leave / (look at the green line). Run the gzip again and try check if it fixed.

is also unrelated - and has to do with the location of images relative to the location of the css file. Setting the name starting with / makes it web folder relative. Starting it with ../ makes it relative to the CSS folder.

Cheers
Bruce



urayoan

  • Full Member
  • ***
  • Posts: 222
    • View Profile
    • AZ Rock Radio
Re: Script Error 8.13
« Reply #11 on: June 03, 2014, 05:43:21 AM »
This thread sound like a trivia =D

Glad you found the problem Bruce.


trent

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Script Error 8.13
« Reply #12 on: June 03, 2014, 01:42:09 PM »
Thank you Bruce, apps are now working successfully.

Regards,
Trent