PopChart Embedder Problems

This section contains troubleshooting tips for problems that occur when using the PopChart Embedder.

Having Trouble Figuring What Values to Assign externalServerAddress and internalCommPortAddress

For more information, refer to "Setting the Server Information".

Microsoft VBScript Compilation: Expected End of Statement

This problem occurs when you accidentally use a semi-colon at the end of a line in VBScript. You may run into this problem when using the COM PopChart Embedder with Active Server Pages (ASPs).

Active Server Pages use VBScript, whose syntax requires that you do not have a semi-colon at the end of a line of code. Since other languages either require a semi-colon, or are indifferent, most of the example code in this documentation uses a semi-colon at the end of each line of code. You should be careful to remove any semi-colons from example code if you use it in an ASP.

For example, this line of code is invalid in an ASP:

myPopChart.appearanceFile="bar.pcxml";

This line of code is valid:

myPopChart.appearanceFile="bar.pcxml"

Microsoft VBScript Compilation: Cannot use parentheses when calling a Sub

This problem occurs when you accidentally use incorrect VBScript syntax for a method that does not return a value. You may run into this problem when using the COM PopChart Embedder with Active Server Pages (ASPs).

VBScript syntax requires any functions that do not return a value (void methods) to not have parenthesis around the parameters.

For example, we show the addHTMLTable syntax to be:

myPopChart.addHTMLTable("graph","title");

This is perfectly valid in every language except VBScript. So in ASPs, you would need to use the following syntax:

myPopChart.addHTMLTable "graph", "title"

For most ASP developers this will be a very obvious conversion process.

A Method or Attribute does not work in JavaScript

For more information, refer to "JavaScript Embedder limitations".

Problems Embedding SVG Images with JavaScript PopChart Embedder

Due to the nature of JavaScript, the JavaScript PopChart Embedder is subject to the 256 character URL length limitation when displaying SVG images (refer to "Overcoming the URL Length Restriction"). To workaround this problem, try importing your data from a data file or using a server-side command or PCXML file.

Problems Embedding Any Images When Using a Large Amount of PCScript With the JavaScript PopChart Embedder

Due to the nature of JavaScript, the JavaScript PopChart Embedder is subject to the 2000 character URL length limitation (refer to "Overcoming the URL Length Restriction"). To workaround this problem, try importing your data from a data file or using a server-side command or PCXML file.

JavaScript Error: 'PopChartEmbedder' is undefined

PopChart Server has either not been started, or is not running correctly. Please restart PopChart Server.

Unable to Load Files from Absolute Paths on UNIX Compatible Systems

In order to load appearance, PCXML, or data files from absolute paths on UNIX systems, you must place an extra slash in fromt of the path. For example, to load the file /home/mydirectory/myfile.txt, you would have to specify //home/mydirectory/myfile.txt as the file name.

This applies to PopChart Embedder methods and attributes (e.g. loadData(), appearanceFile) as well as PCScript and server commands (e.g. @_FILE, @_LOADREQUEST, graph.LoadFile())

COm PopChart Embedder Does Not Work with ColdFusion MX

ColdFusion MX currently does not allow access to the component object model. This is apparantly a bug in ColdFusion. Because of it, the COM version of the PopChart Embedder will not work with ColdFusion MX. You should use the Java version instead.