ReferenceError: document is not defined on document.querySelector addEventListener - referenceerror

Hi I am building a simple calculator. When I execute got a get the following error. Any suggestions would be appreciated.
document.querySelector('loan-form').addEventListener('click', calculateResults)
document.querySelector('loan-form').addEventListener('click', calculateResults)
^
ReferenceError: document is not defined

Related

Error occurs in CPanel site when calling livewire actions

I am using Laravel 8 with livewire to create a website.
It works fine until I migrate it to CPanel.
I followed the guide from YouTube to split the whole directory into 2 parts, public_html/shop/v1 contains the public directory with index.php, and public_html/shop_main contains all the codes and files.
It shows this error but I fix it by adding the line 'asset_url' => 'http://myhost.com/shop/v1', in config/livewire.php.
Uncaught ReferenceError
Then I encounter another problem with livewire. The error occurs when i try to change the combo box value which bind to livewire public property.
New error appears
I hardly find any references online regarding this error. By the way, livewire-products is the livewire component to show the product.
I would appreciate any help from experts here.

highcharts.js and exporting.js version problem

I'm using highcharts v4.1.9. Currently, I'm in need of exporting highcharts in a pdf or whatever. The problem starts when I include exporting.js file on my website.
exporting.src.js:31 Uncaught TypeError: Cannot read property 'parts/Chart.js' of undefined
Uncaught TypeError: $(...).iCheck is not a function
These were the console error. I guessed this is due to version mismatch b/w highcharts.js and exporting.js (not sure though) so I tried looking for any lower version of exporting.js but no luck. please suggest a way to solve this without updating the highcharts version. Thank you in advance:)

How to fix "Unsupported Schema format for unwrapping! found all but expected sequence" in cfinvoke CF11?

I'm running into an odd issue when invoking a webservice from the cfinvoke tag on ColdFusion 11 Enterprise Edition. The error message I am getting is:
Unsupported Schema format for unwrapping! found all but expected
sequence
The stack trace starts with:
org.apache.axis2.wsdl.codegen.CodeGenerationException: Unsupported
Schema format for unwrapping! found all but expected sequence at
org.apache.axis2.wsdl.codegen.extension.SchemaUnwrapperExtension.processXMLSchemaSequence(SchemaUnwrapperExtension.java:405)
at...
Has anyone else encountered this issue or know how to fix it? A big thank you in advance for any help or advice.
The reason that I had this issue is that the web service is using Axis1. ColdFusion 11 by default assumes that the web service is using Axis2.
To fix it, I've added the wsversion attribute to the <cfinvoke> tag and set its value to 1.

Undefined namespace prefix 'jbdc'

Hi guys,
I'm trying create a webservice with SAP B1if whatching that tutorial:
Part1: https://www.youtube.com/watch?v=N9hLVwJDEz4
In part 4 at minute 7:23 the guy wrote a part of xsl on document and he saved, when i go save i have next error: "Undefined namespace prefix 'jbdc'"
Printscreen of the error:
Can someone help me?
Change "jbdc" to "jdbc" in your code.
jdbc stands for Java Database Connectivity

Slickgrid - dataView.setGrouping is not a function

I am trying to follow the code in the example:
http://mleibman.github.io/SlickGrid/examples/example-grouping
I am getting the error:
dataView.setGrouping is not a function
Am I missing a js include? Does anyone know where this function is defined?
Apparently I have the wrong version of slickgrid.
I looked at the slick.dataview.js file on the site and seems my file is outdated, the setGrouping function is present there.
https://github.com/mleibman/SlickGrid/commit/90964ce5541bc2f381b6c60893f60029f24f907b