Getting error with require_once ($lib);

8 years 3 months ago #570 by ritesh123
Replied by ritesh123 on topic Getting error with require_once ($lib);
Now my solution is working

Thanks a lot

Please Log in or Create an account to join the conversation.

8 years 3 months ago #569 by jochen
Replied by jochen on topic Getting error with require_once ($lib);
hi,

"$script" in testApp0.php is used for the title-string. With Jumi the length of script (now the title) will corrupt the chart - so change it back or use your own title.

I cannot check with firefox v8 as I do not have it anymore - this is probably a problem with the flash-plugin for firefox - try to install the latest plugin or use current firefox (now version 14)
The following user(s) said Thank You: ritesh123

Please Log in or Create an account to join the conversation.

8 years 3 months ago #568 by ritesh123
Replied by ritesh123 on topic Getting error with require_once ($lib);
all javascripts and open-flash-chart.swf is available in both IE and Mozilla Firefox.( i checked with Browser view source)

But it is working fine in IE and not in Mozilla Firefox 8.0.

Also you told me to replace $script = $_SERVER ; with
$uri = & JFactory::getURI();
$script = $uri->toString();

After replacing it , the chart in IE is corrupted ( it is showing half bars and the chart is rotated with 180 degree like a image view.)

Please Log in or Create an account to join the conversation.

8 years 3 months ago #567 by jochen
Replied by jochen on topic Getting error with require_once ($lib);
hi,

note that the code of testApp0.php and testApp1.php has not be designed to be used with jumi - you may have to change some parts of the samples.
(e.g. change
$script = $_SERVER ['PHP_SELF'];
to
$uri = & JFactory::getURI();
$script = $uri->toString();
Check html-source of genned chart - it should look like this:
  <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en-gb' lang='en-gb' >
<head> 
 <script type='text/javascript' src='http://localhost/plugins/content/flashchart/js/swfobject.js'></script>
 <script type='text/javascript' src='http://localhost/plugins/content/flashchart/js/json/json2.js'></script>
 <script type='text/javascript' src='http://localhost/plugins/content/flashchart/js/jquery-1.5.1.min.js'></script>
 <script type='text/javascript' src='http://localhost/plugins/content/flashchart/js/flashchart.js'></script>
</head>
<body style='min-width: 650px;'>
<script type='text/javascript'> 
 // flashchart script 
  swfobject.embedSWF('http://localhost/plugins/content/flashchart/open-flash-chart.swf', 'chart01', '100%', '100%', '9.0.0',  'expressInstall.swf', 
  { 'get-data':'get_data_chart01', 'id':'chart01' } ) 
...
...
</script>
<div id='chart01'></div>
</body>
</html>
Especially check, if all javascripts and open-flash-chart.swf can be found.

Please Log in or Create an account to join the conversation.

8 years 3 months ago #566 by ritesh123
Replied by ritesh123 on topic Getting error with require_once ($lib);
Oops!!! its working in IE but not in Firefox
Why it is like that.....

I am using Firefox 8.0

Any Solution to fix this?

Please Log in or Create an account to join the conversation.

8 years 3 months ago #565 by ritesh123
Replied by ritesh123 on topic Getting error with require_once ($lib);
Now the script is working, all paths are correct but i am not seeing any chart.

Also i tried the other code "testApp1.php"
Here also i am getting the dropdown menu but not able to generate the chart.
Do we need to do any other setting to see the chart.

Jumi is correct and the codes that you have given in your website that is also correct but i am not seeing the chart.

Please tell me what can be done to see the chart.

Please Log in or Create an account to join the conversation.

Time to create page: 0.124 seconds
Powered by Kunena Forum

Visitors

Today: 59
Yesterday: 103
This Week: 162
Last Week: 309
This Month: 59
Last Month: 1,699
0162115
United States 31.9% USA
Germany 17.8% Germany
Russia 4.6% Russia
France 3.5% France
Indonesia 2.6% Indonesia
Italy 2.6% Italy
India 2.3% India
Poland 2.2% Poland

Total:

204

countries

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.