NetTalk Central

Author Topic: $ReferenceError: $ is not defined  (Read 5559 times)

alan

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • Email
$ReferenceError: $ is not defined
« on: July 19, 2013, 11:10:11 AM »
NT 7.16

I installed NT 7.16 and now anything I generate reports a javascript error.  In firebug I see  "$ReferenceError: $ is  not defined"  and the menu doesn't display correctly.  See the attached screenshot.

I deleted the menu extension and I still get the error:

ReferenceError: $ is not defined
     $(document).ready( function(){versionCheck('7.16');

I tried opening and compiling an example app HotDates (12) and got the same problem.  I also tried reinstalling NT 7.16.

Any suggestions?

[attachment deleted by admin]
« Last Edit: July 22, 2013, 08:16:06 AM by alan »
Alan Schoolcraft

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: $ReferenceError: $ is not defined
« Reply #1 on: July 22, 2013, 10:24:40 PM »
This is usually a sign that the Web folder is not right in some way.
Try running the "CopyAll.Bat" file and the "GzipAll.Bat" file from your app folder.
Check to see if the "copy" statement in CopyAll looks correct (ie folder names are correct etc) and perhaps run it manually to see if it's working ok.

It's copying from \clarion8\accessory\libsrc\netweb
so check there to see if that folder got updated by the install ok.

If all else fails, delete the netweb folder in \clarion8\accessory\libsrc, also delete the web folder for your app, and re-install 7.16
(make a backup of any custom css files etc before deleting the web folder <g>)

cheers
Bruce


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: $ReferenceError: $ is not defined
« Reply #2 on: July 22, 2013, 11:27:39 PM »
First thing to try though is Ctrl-F5 in the browser. This clears it for me sometimes.

cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: $ReferenceError: $ is not defined
« Reply #3 on: July 23, 2013, 01:57:56 AM »
Another thing to try;
Copy zlibwapi.dll from C:\Clarion8\accessory\bin to your application folder. (If this solves the problem for you please let me know.)

cheers
Bruce

alan

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • Email
Re: $ReferenceError: $ is not defined
« Reply #4 on: July 23, 2013, 03:39:43 AM »
Bruce,

I tried the prior suggestions with no success.  The batch files look ok and they ran ok and I moved zlibwapi.dll to the app folder.   I'm waiting for a new installation key to reinstall everything.

I noticed your path is C:\Clarion8\...........

I installed in C:\Softvelocity\Clarion8 and C:\Softvelocity\Capesoft\NetTalk.....

Could this be causing a problem with the batch files or Clarion's .red file.  If so, let me know the expected directory structure and I'll make it so.

Alan
« Last Edit: July 23, 2013, 04:30:47 AM by alan »
Alan Schoolcraft

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: $ReferenceError: $ is not defined
« Reply #5 on: July 23, 2013, 04:34:01 AM »
check that DLL name - should be zlibwapi.dll

check the copyall.bat - as long as the code in there looks ok, and it runs ok, then your folders should be ok.

cheers
Bruce


alan

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • Email
Re: $ReferenceError: $ is not defined
« Reply #6 on: July 25, 2013, 04:51:20 AM »
Bruce,

Problem solved - I did a new install of C8,  NT7.17 and StringTheory into a new folder.  Now I'm compiling and running my first webapp.

Alan
Alan Schoolcraft

alan

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • Email
Re: $ReferenceError: $ is not defined
« Reply #7 on: July 31, 2013, 07:58:39 AM »
Ok, it happened again and this time I figured out the cause.

My redirection (.red) file was set with ".exe = runtime".  So, the app was being generated in the app\runtime folder so it was not able to find the \web folder where my custom .css file was stored.

Solution - make sure the .red file is not causing your .exe to be generated in a folder that is not the parent to the \web folder.
Alan Schoolcraft

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: $ReferenceError: $ is not defined
« Reply #8 on: July 31, 2013, 09:32:22 PM »
good tip - thanks Alan.

cheers
Bruce