display JqPlot Bar graph as dialog

603 views
Skip to first unread message

Jasper

unread,
Apr 11, 2011, 2:55:54 AM4/11/11
to jqplot-users
Hi,
I would like to display a popup dialog specifically jqueryui dialog
and display the jqplot bar graph on the dialog. Can you please help me
do that?

Thanks

Redtopia

unread,
Apr 11, 2011, 1:49:08 PM4/11/11
to jqplot-users
Very simple... just add the javascript to the ajax response. For
example, here's your main file:

<script type="text/javascript" src="jqplot... add them all here "></
script>
<script type="text/javascript">
// button click to generate jquery UI dialog
$('#my-button').click (function (e) {
$('#my-plot').load ('my-jqplot.html').dialog ({
modal: true,
title: 'my jq plot',
width: 400,
height: 400
});
});
</script>

<a href='#' id='my-button'>open plot</a>
<div id='my-plot'></div>

... then create a file "my-jqplot.html" (probably a php, asp or
coldfusion file), which has your jqplot javascript code.

Aparajita K

unread,
May 15, 2013, 7:11:00 AM5/15/13
to jqplot...@googlegroups.com
Hi,

I tried this solution but its giving me 

Error: can't load XRegExp twice in the same frame

can u please let me know some thing else.

Thanks & regards,
Aparajita
Reply all
Reply to author
Forward
0 new messages