NetTalk Central

Poll

Why am I getting errors when trying to fill in javascript embed point

Did I made a mistake
0 (0%)
Is there an issue
0 (0%)

Total Members Voted: 0

Author Topic: javascript embed in WebNetBrowse field onclick error  (Read 872 times)

de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
javascript embed in WebNetBrowse field onclick error
« on: October 09, 2023, 04:03:16 PM »
Hi Bruce,

In the NetWebBrowse field OnClick javascript embed point, if I try to enter anything, devtools responds as follows:

nt-idb.js:508 Uncaught DOMException: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.
    at doGet (http://192.168.7.123:88/scripts/nt-idb.js:508:35)
    at idbOpen (http://192.168.7.123:88/scripts/nt-idb.js:84:20)
    at idbGet (http://192.168.7.123:88/scripts/nt-idb.js:506:2)
    at V.<computed>.<computed>.clickRow (http://192.168.7.123:88/scripts/jquery.nt-browse-ls.js:389:3)
    at a.<computed> [as clickRow] (http://192.168.7.123:88/scripts/jquery-ui-1.13.2.custom.min.js:17:10)
    at HTMLDivElement.<anonymous> (http://192.168.7.123:88/scripts/jquery-ui-1.13.2.custom.min.js:26:955)
    at Function.each (http://192.168.7.123:88/scripts/jquery-3.7.0.min.js:2:3129)
    at ce.fn.init.each (http://192.168.7.123:88/scripts/jquery-3.7.0.min.js:2:1594)
    at V.fn.<computed> [as ntbrowsels] (http://192.168.7.123:88/scripts/jquery-ui-1.13.2.custom.min.js:26:773)
    at V.<computed>.<computed>.clickRow (http://192.168.7.123:88/scripts/jquery.nt-browse.js:598:27)


- Under Javascript, there are two entry fields,  onclick and javascript, what is the plain javascript for?
« Last Edit: October 09, 2023, 04:05:37 PM by de la Rosa »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: javascript embed in WebNetBrowse field onclick error
« Reply #1 on: October 09, 2023, 09:08:40 PM »
>> if I try to enter anything,

what did you enter?

de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
Re: javascript embed in WebNetBrowse field onclick error
« Reply #2 on: October 10, 2023, 07:10:15 AM »
any entry in quotes such as 'console.log("am here")'

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: javascript embed in WebNetBrowse field onclick error
« Reply #3 on: October 10, 2023, 10:46:44 PM »
console.log("am here")

works in my console.
(I'm presuming you did not include the ' s)

I recommend you attend the User Group webinar this week so I can see what you are doing.

Cheers
Bruce

de la Rosa

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • Email
Re: javascript embed in WebNetBrowse field onclick error
« Reply #4 on: October 11, 2023, 07:33:30 AM »
Ok, I'll try to attend.

Btw, my 14.07 app wizard generates two scripts in the PageFooterTag  "one" html routine as follows

one  Routine
  packet.append(p_web.AsciiToUTF(|
    '<<div class="nt-left">Copyright <<!-- Net:d:year --><</div><<div id="countdown" class="nt-countdown"><</div><13,10>'&|
    '',net:OnlyIfUTF,net:StoreAsAscii))

  Routine
  packet.append(p_web.AsciiToUTF(|
    '<<div class="nt-left">Copyright <<!-- Net:d:year --><</div><<div id="countdown" class="nt-countdown"><</div><13,10>'&|
    '',net:OnlyIfUTF,net:StoreAsAscii))


« Last Edit: October 12, 2023, 08:21:31 PM by de la Rosa »