Opening links in pop-up windows |
FusionWidgets XT also allows you to open your links in pop-up windows. To open a link in pop-up window, you need to define the link as under: <set .. value='235' link="P-detailsWin,width=400,height=300,toolbar=no,scrollbars=no, resizable=no-ShowDetails.asp%3FMonth%3DJan" /> Here, we've done the following:
|
Possible attributes for new window |
|
<chart caption="Monthly Sales Summary" subcaption="For the year 2006" xAxisName="Month" yAxisName="Sales" numberPrefix="$"> { "chart": { "caption": "Monthly Sales Summary", "subcaption": "For the year 2006", "xaxisname": "Month", "yaxisname": "Sales", "numberprefix": "$" }, "data": [ { "label": "Jan", "value": "17400", "link": "P-detailsPopUp,width=400,height=300,toolbar=no, scrollbars=no,resizable=no-DemoLinkPages/DemoLink1.html" }, { "label": "Feb", "value": "19800", "link": "P-detailsPopUp,width=400,height=300,toolbar=no, scrollbars=no,resizable=no-DemoLinkPages/DemoLink2.html" }, { "label": "Mar", "value": "21800", "link": "P-detailsPopUp,width=400,height=300,toolbar=no, scrollbars=no,resizable=no-DemoLinkPages/DemoLink3.html" }, { "label": "Apr", "value": "23800", "link": "P-detailsPopUp,width=400,height=300,toolbar=no, scrollbars=no,resizable=no-DemoLinkPages/DemoLink4.html" }, { "label": "May", "value": "29600", "link": "P-detailsPopUp,width=400,height=300,toolbar=no, scrollbars=no,resizable=no-DemoLinkPages/DemoLink5.html" }, { "label": "Jun", "value": "27600", "link": "P-detailsPopUp,width=400,height=300,toolbar=no, scrollbars=no,resizable=no-DemoLinkPages/DemoLink6.html" } ] } |
See it live! |
Note: Internally the chart decodes a URL that you set as link. Before invoking the link it again encodes the URL. If you are passing multilingual characters via a URL or do not want this decode-encode mechanism to be handled by chart you can set unescapeLinks='0' in <chart> element of the chart's XML data. If you are using JSON data, you need to use { "chart" : { "unescapeLinks" : "0" ... } ... } . |