Welcome Guest, Not a member yet? Register   Sign In
[solved] javascript not working
#1

[eluser]souri84[/eluser]
Hi everybody,

I have a little problem.

I am currently building an intranet and I wanted to get the menu of CodeIgniter userguide (with javascript). At the same time, I want to use HighCharts library from crustiz. The problem is that I need to include a jquery file just before my chart like this for example :

Code:
<body>
...
//my chart
<s_cript type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></s_cript>
<s_cript src="http://www.highcharts.com/js/highcharts.js" type="text/javascript"></s_cript>
<s_cript type="text/javascript">$(document).ready(function(){var options = {"chart":{"renderTo":"highchart_id","defaultSeriesType":"spline","shadow":true},"credits":{"enabled":false},"series":[{"name":"The first Serie","data":[450,419,255,343,406,206,241,447,497,102]},{"type":"areaspline","name":"This is the second Serie","data":[55,65,70,54,50,56,67,54,58,64]}],"legend":{"enabled":true},"xAxis":{"labels":{"rotation":"-45"},"categories":[1,2,3,4,5,6,7,8,9,10]},"title":{"text":null,"align":"center","x":0,"y":20},"yAxis":{"title":{"text":"Clicks"}}};var chart = new Highcharts.Chart(options);});</s_cript><div id="highchart_id">
</div>
...
&lt;/body&gt;


But if I do that, my menu (the same as CodeIgniter userguide) does not work : it will stay on and will not disappear if you click on the right menu button. There must be a conflict somewhere but I can not find it ...

I think that the problem file is the jquery.min.js file from ajax.googleapis.com

Can anyone help me?

Thanks,

Thibaut




Theme © iAndrew 2016 - Forum software by © MyBB