The Javascript under the apache server seems to get stuck at some of the charting code. I'm using teechart 5 active x.
This code gets rendered:
function onloadtchartIncidentsByDepartment() {
TChartComtchartIncidentsByDepartment.Chart = tchartIncidentsByDepartment;
tchartIncidentsByDepartment.Header.Font.Bold = true;
tchartIncidentsByDepartment.Header.Font.Name = "Arial";
tchartIncidentsByDepartment.Header.Font.Size = 14;
tchartIncidentsByDepartment.Header.Text.Clear();
tchartIncidentsByDepartment.Header.Text.Add("Incidents By Department");
This code below does not get rendered, I get a Javascript error.
"Object Expected"
The code is all in the same function:
tchartIncidentsByDepartment.Series(0).VerticalAxis = aLeftAxis;
tchartIncidentsByDepartment.Series(0).Add (3, "10K", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5JO", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5PA", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "5SI", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (2, "ACC", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (23, "ADMIN", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (2, "ADMIT", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "GES", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (3, "QM", 536870912 );
tchartIncidentsByDepartment.Series(0).Add (1, "WCOMP", 536870912 );
Any ideas or help would be greatly appreciated.
Question about rendering chart under apache server
Question about rendering chart under apache server
Last edited by landa on Thu Oct 23, 2008 10:08 pm, edited 1 time in total.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi landa,
We have been checking references to Apache and ActiveX, though our initial thought is that this issue relates to clientside script only. Please could you send us your page at news://www.steema.net/steema.public.attachments newsgroup or at our upload page?
Thanks in advance.
We have been checking references to Apache and ActiveX, though our initial thought is that this issue relates to clientside script only. Please could you send us your page at news://www.steema.net/steema.public.attachments newsgroup or at our upload page?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hello,
Of the scriptfiles you sent, common_procs_tchart.tcl contains script to write to the browser an outputted page that includes a TeeChart object and script.
The script is similar though not exactly the same as the script with which you've reported the problem below. For us to view that script, understanding now that Apache may only be being used in this context to generate the web pages (not to process TeeChart), it may be easier if you do a right-mouseclick on the page in question to view source and to send us a copy of that page 'as is' in html.
Otherwise, something you could check beforehand, if your script is running correctly and only failing at the line in question:
..then that seems to be the first reference to a data Series. Please check that your code does actually add a Series to the Chart, otherwise that will report an 'object not found' error.
Regards,
Marc Meumann
Of the scriptfiles you sent, common_procs_tchart.tcl contains script to write to the browser an outputted page that includes a TeeChart object and script.
The script is similar though not exactly the same as the script with which you've reported the problem below. For us to view that script, understanding now that Apache may only be being used in this context to generate the web pages (not to process TeeChart), it may be easier if you do a right-mouseclick on the page in question to view source and to send us a copy of that page 'as is' in html.
Otherwise, something you could check beforehand, if your script is running correctly and only failing at the line in question:
Code: Select all
tchartIncidentsByDepartment.Series(0).VerticalAxis = aLeftAxis;
Regards,
Marc Meumann
Steema Support