Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesFusionWidgetsFusionWidgets
Previous
 
Next
New Post
11/4/2014 2:14 PM
 

Hello all,

I cannot get FusionWidgets to load properly on my DNN site. I have a full paid version of the FC suite, and I'm attempting to load the chart using JavaScript rather than Flash. Everything seems to be running fine, but all I see is: "Loading chart. Please wait."

Has anyone else successfully implemented FusionWidgets (or charts) into their DNN solution?

 

Thanks!

 
New Post
11/5/2014 8:49 AM
 

Code:

<%@ Control Language="C#" AutoEventWireup="false" Inherits="Owner.FusionChart.View" CodeFile="View.ascx.cs" %>

<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>

<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.Web.Client.ClientResourceManagement" Assembly="DotNetNuke.Web.Client" %>

  <dnn:DnnJsInclude runat="server" FilePath="~/js/FusionCharts.js" />

 

  <div class="ChartClass" id="MyData">

    <script type="text/javascript">

      FusionCharts.setCurrentRenderer("javascript");

      var fc = new FusionCharts("~/_FusionCharts/SparkLine.swf", "MyData1", "340", "50");

      fc.setXMLData("<%=Sparks("Line","Data","")%>");

      fc.render("MyData");

    </script>

  </div>

 

 
New Post
11/5/2014 4:42 PM
 
I suspect you problem is the tilde (~) in the FusionCharts("~/_ definition - tilde can be used in server side code so <%~...%> is fine, but js doesnt understand it

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
11/6/2014 8:40 AM
 
Hi Cathal - thanks for the reply, unfortunately that's not the issue. I tried substituting "../_" and also tried removing it altogether as to leave just the "/_" and still no luck. Can't think of what could possibly be creating this issue.
 
New Post
11/7/2014 4:00 AM
 
I'm with Cathal.

Did you check to see that the browser downloaded the file?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesFusionWidgetsFusionWidgets


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out