NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: de la Rosa on October 09, 2023, 04:03:16 PM

Title: javascript embed in WebNetBrowse field onclick error
Post by: de la Rosa 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?
Title: Re: javascript embed in WebNetBrowse field onclick error
Post by: Bruce on October 09, 2023, 09:08:40 PM
>> if I try to enter anything,

what did you enter?
Title: Re: javascript embed in WebNetBrowse field onclick error
Post by: de la Rosa on October 10, 2023, 07:10:15 AM
any entry in quotes such as 'console.log("am here")'
Title: Re: javascript embed in WebNetBrowse field onclick error
Post by: Bruce 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
Title: Re: javascript embed in WebNetBrowse field onclick error
Post by: de la Rosa 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))