I am facing javascript errors.Errors are shown below.
Further I am attaching entire war file with this.
I am trying to access page “testWebProject1/testHtml2.html” of deployment.
testHtml2.html page internaly calls servlet “masterServlet.java” through url “do.masterServlet”.
I am developing application using eclipse and deploying the same on jboss.
I have tried to replicate example given on link :
docs.dhtmlx.com/doku.php?id=dhtm … erver-side
In this example, php is used.I just changes necessary url to that of servlets.
I have included dhtmlx script which I had downloaded from site.
I am not able to understand why I am facing these issues.Please help.
Javascript errors:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)
Timestamp: Thu, 13 Oct 2011 07:34:26 UTC
Message: Syntax error
Line: 579
Char: 5
Code: 0
URI: localhost:8080/testWebProject1/d … tastore.js
Message: Invalid argument.
Line: 833
Char: 55
Code: 0
URI: localhost:8080/testWebProject1/d … /dhtmlx.js
Message: Invalid argument.
Line: 833
Char: 55
Code: 0
URI: localhost:8080/testWebProject1/d … /dhtmlx.js
testWebProject1.zip (1.71 MB)
Most probably - incorrect format of the incoming data is the reason of the problem.
In java files you are using - GridConnector , but for datastore you need to use JSONCommonConnector
Hi thank you for prompt response.
I replaced “GridConnector” to “JSONCommonConnector”.
I am still getting below mentioned javascript error:
javascript error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)
Timestamp: Thu, 13 Oct 2011 13:01:18 UTC
Message: Invalid argument.
Line: 833
Char: 55
Code: 0
URI: localhost:8080/testWebProject1/d … /dhtmlx.js
Message: Invalid argument.
Line: 833
Char: 55
Code: 0
URI: localhost:8080/testWebProject1/d … /dhtmlx.js
please let me know if i am using improper version of “dhtmlx.js” or any other issue.
Probably caused by grid’s configuration.
myGrid.setHeader("Name,#cspan,Department");
myGrid.setInitWidths("74,71");
you have 3 columns, but providing sizes only for 2 of them, try to change it as
myGrid.setHeader("Name,#cspan,Department");
myGrid.setInitWidths("74,71,150");
Thank again for keeping with me…
But problem has not resolved.
I have done changes suggested by you and still I am getting javascript error.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)
Timestamp: Fri, 14 Oct 2011 10:31:10 UTC
Message: ‘type’ is null or not an object
Line: 680
Char: 334
Code: 0
URI: localhost:8080/testWebProject1/d … /dhtmlx.js
Message: Syntax error
Line: 579
Char: 5
Code: 0
URI: localhost:8080/testWebProject1/d … tastore.js