Atozed Forums
java script errors - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: java script errors (/thread-1921.html)



java script errors - joel - 08-30-2020

Environment.  Iw15.2.15, cgdevtools. 4.1.0.257

I have upgraded to iw15.2.15 and the access violations have disappeared; however, I am still having some issues with the pages locking up because of Javascript errors.    I tried setting RednderAsyncEnabled := False, but that did not make any difference.

Here are the errors

1.

(index):102 Uncaught TypeError: Cannot read property 'selection' of undefined
    at HTMLDocument.<anonymous> ((index):102)
    at i (IWLib__1837908247.js:2)
    at Object.fireWith [as resolveWith] (IWLib__1837908247.js:2)
    at Function.ready (IWLib__1837908247.js:2)
    at HTMLDocument.K (IWLib__1837908247.js:2)

2.

IWBase__870463085.js:2 Error in SendRequest(): Cannot read property 'cloneNode' of undefined
consoleError @ IWBase__870463085.js:2
SendRequest @ IWBase__870463085.js:6
executeAjaxEvent @ IWBase__870463085.js:6
(anonymous) @ (index):59
dispatch @ IWLib__1837908247.js:3
r.handle @ IWLib__1837908247.js:3

The 2nd error "the send request error" is triggered when I click the cgdevtools button.

(08-30-2020, 02:04 AM)joel Wrote: Environment.  Iw15.2.15, cgdevtools. 4.1.0.257

I have upgraded to iw15.2.15 and the access violations have disappeared; however, I am still having some issues with the pages locking up because of Javascript errors.    I tried setting RednderAsyncEnabled := False, but that did not make any difference.

Here are the errors

1.

(index):102 Uncaught TypeError: Cannot read property 'selection' of undefined
    at HTMLDocument.<anonymous> ((index):102)
    at i (IWLib__1837908247.js:2)
    at Object.fireWith [as resolveWith] (IWLib__1837908247.js:2)
    at Function.ready (IWLib__1837908247.js:2)
    at HTMLDocument.K (IWLib__1837908247.js:2)

2.

IWBase__870463085.js:2 Error in SendRequest(): Cannot read property 'cloneNode' of undefined
consoleError @ IWBase__870463085.js:2
SendRequest @ IWBase__870463085.js:6
executeAjaxEvent @ IWBase__870463085.js:6
(anonymous) @ (index):59
dispatch @ IWLib__1837908247.js:3
r.handle @ IWLib__1837908247.js:3

The 2nd error "the send request error" is triggered when I click the cgdevtools button.

I did change out the button to just an IWButton and when I tried that I get the following error.

IWBase__870463085.js:2 Error in SendRequest(): Cannot read property 'cloneNode' of undefined
consoleError @ IWBase__870463085.js:2
SendRequest @ IWBase__870463085.js:6
(anonymous) @ IWBase__870463085.js:6
setTimeout (async)
executeAjaxEvent @ IWBase__870463085.js:6
processAjaxEvent @ IWBase__870463085.js:6
IWCL_DoOnClick @ IWBase__870463085.js:5
IWEventHandler @ IWBase__870463085.js:4


RE: java script errors - joelcc - 09-02-2020

I am working on putting a demo together so that I can get past this java script error.

Alex,

Can I send the demo to your email for you to look at?


RE: java script errors - joelcc - 09-03-2020

I finally was able to resolve these java script issues. It turned out to be a miss place div that was being generated through a template processor. I reworked my code and it is working now.


RE: java script errors - kudzu - 09-04-2020

Thanks for the follow up.