15,913,487 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sushant Mandhare (Top 18 by date)
Sushant Mandhare
16-Apr-14 4:14am
View
Now i got
Sushant Mandhare
16-Apr-14 4:13am
View
Ok thanks
Sushant Mandhare
16-Apr-14 3:59am
View
No but i need it in JSP Only
Sushant Mandhare
30-Oct-13 1:39am
View
It's ok friend.Still i have that issue
Sushant Mandhare
16-Oct-13 23:50pm
View
Have you got any answer???
Sushant Mandhare
15-Oct-13 5:09am
View
Got any solution???
Sushant Mandhare
11-Oct-13 4:17am
View
Any data structure?
Take XYZ as example
Sushant Mandhare
11-Oct-13 2:41am
View
Have you look at it???
Sushant Mandhare
10-Oct-13 0:35am
View
Where are you my friend??
Have you got any solution???
Sushant Mandhare
10-Oct-13 0:01am
View
Huh means????
Sushant Mandhare
9-Oct-13 5:20am
View
Have you got solution for same???
Sushant Mandhare
9-Oct-13 4:21am
View
Have you seen this example???
Sushant Mandhare
9-Oct-13 4:10am
View
index.jsp
<html>
<head>
<title>Jsp Page</title>
<!--script type="text/javascript" src="https://www.google.com/jsapi"></script-->
<script>
var flag=1;
setInterval(function(){refreshPage()},1000);
function refreshPage()
{
try
{
var xreq;
if(window.XMLHttpRequest)
{
xreq=new XMLHttpRequest();
}
else
{
xreq=new ActiveXObject("Microsoft.XMLHTTP");
}
xreq.onreadystatechange=function ()
{
if( (xreq.readyState==4) && (xreq.status==200) )
{
var Resp=xreq.responseText;
document.getElementById("chart_div").innerHTML=Resp;
var scripts = document.getElementById("chart_div").getElementsByTagName('script');
var e = document.getElementById("div1");
e.innerHTML = scripts;
try
{
if(flag==1)
{
eval(document.getElementById("exc1").innerHTML);
var x=0;
flag=x;
}
eval(document.getElementById("exc").innerHTML);
}
catch(err)
{
alert(err);
}
}
}
xreq.open("get","a.html","true");
xreq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xreq.send();
}
catch(e)
{
////alert(e);
}
}
</script>
</head>
<body>
<div id="div1"></div>
<div id="chart_div">The response will come here</div>
</body>
</html>
a.jsp
<html>
<Head>
<link href="CSS/Welcome.css" rel="stylesheet" type="text/css" >
<script id="exc1" type="text/javascript" src="https://www.google.com/jsapi">
google.load('visualization', '1', {packages:['orgchart']});
</script>
<script id="exc" type='text/javascript'>
google.setOnLoadCallback(drawChart);
var data;
function drawChart()
{
data= new google.visualization.DataTable();
data.addColumn('string', 'Parent');
data.addColumn('string', 'Child');
data.addColumn('string', 'Comment');
data.addRows([
['Selec Controls Pvt Ltd','','Organization'],
['Mahape','Selec Controls Pvt Ltd','Location'],
['EL27','Mahape','Site'],
['EL67','Mahape','Site']
]);
var chart = new google.visualization.OrgChart(document.getElementById('chart_div'));
chart.draw(data, {allowHtml:true,allowCollapse:true,nodeClass:"NodeView"});
}
</script>
</Head>
<body>
<div id="chart_div">aaaaaaaaaaaa</div>
</body>
</html>
Sushant Mandhare
9-Oct-13 4:02am
View
Yes i m seen that example.Can we call library in one eval function and load chart in another eval funstion.
Sushant Mandhare
9-Oct-13 3:01am
View
Google chart can not load and can not call Drwachart in single script.
Sushant Mandhare
9-Oct-13 2:34am
View
I m trying to load google chart api.for that i m excute script function by using eval, but load in one script and DrawChart in another script so im getting confused how to resolve this problem.
Sushant Mandhare
14-Mar-13 6:25am
View
Hello Prasad,
I had tried with JasperDesign class use for dyanamic design of PDF page.
but wont work.
reagrds,
Sushant
Sushant Mandhare
13-Feb-12 23:32pm
View
I just want to send and recive the CObaraay.But it not possible to me to code it
Show More