Jump to content

 

Photo
- - - - -

Intranet / Internet Issue


  • Please log in to reply
14 replies to this topic

#1 pepsin

pepsin

    Member

  • Members
  • PipPip
  • 18 posts

Posted 15 December 2011 - 01:17 PM

Hi, (Intranet/Internet issue)
I have inserted a visifire chart in my website.
It is working fine with intranet links but not displayed in the internet link.
please help me in this...

#2 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 16 December 2011 - 03:57 AM

Pepsin,

Please make sure that the path for SL.Visifire.Charts.xap and Visifire.js files is correct. Also, check whether the MIME types for .xap files are properly configured in the server or not.

Regards,
Vivek
Team Visifire


#3 pepsin

pepsin

    Member

  • Members
  • PipPip
  • 18 posts

Posted 16 December 2011 - 02:40 PM

Pepsin,

Please make sure that the path for SL.Visifire.Charts.xap and Visifire.js files is correct. Also, check whether the MIME types for .xap files are properly configured in the server or not.



hey vivek,
if i reffer the SL.Visifire.Charts.xap file using intranet link, its working fine in intranet but not working in the other. if i reffer it using internet link, its working fine in internet and not working in the intranet.

#4 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 19 December 2011 - 03:49 AM

Can you please show me how and what path are you setting for SL.Visifire.Charts.xap.

Regards,
Vivek
Team Visifire


#5 pepsin

pepsin

    Member

  • Members
  • PipPip
  • 18 posts

Posted 19 December 2011 - 06:31 AM

Intranet link:
https://example/site...fire.Charts.xap

Internet link:
https://example.comp...fire.Charts.xap

#6 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 19 December 2011 - 07:35 AM

Pepsin,

Can you please tell me whether SL.Visifire.Charts.xap, Visifire.js and XML files are present in the same folder in web server?

Regards,
Vivek
Team Visifire


#7 pepsin

pepsin

    Member

  • Members
  • PipPip
  • 18 posts

Posted 19 December 2011 - 12:08 PM

yes vivek,
i dont have xml files.
i uploaded the xap and js files in the document library through upload option in the browser.
do i need to upload the xap file into the 'common files' folder in the server? (which needs admin level permissions and i cant do that)

#8 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 19 December 2011 - 12:35 PM

Where the HTML file (containing the chart) present in the web server? Can you please provide the path for it?

Regards,
Vivek
Team Visifire


#9 pepsin

pepsin

    Member

  • Members
  • PipPip
  • 18 posts

Posted 19 December 2011 - 01:05 PM

<script type="text/javascript" src="https://workspaces/s...e.js"></script> <div id="VisifireChart1">
<script language="javascript" type="text/javascript">

var VariableName1 = <xsl:value-of select="$ItemCount1" />
var VariableName2 = <xsl:value-of select="$ItemCount2" />
var VariableName3 = <xsl:value-of select="$ItemCount3" />
var VariableName4 = <xsl:value-of select="$ItemCount4" />
var VariableName5 = <xsl:value-of select="$ItemCount5" />

var chartXmlString = &apos;&apos;
+&apos;<vc:Chart Width="500" Height="250" BorderThickness="0" Theme="Theme1" View3D="True" AnimationEnabled="True" ToolBarEnabled="True" Watermark="False" xmlns:vc="clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts">&apos;
+&apos;<vc:Chart.AxesX>&apos;
+&apos;<vc:Axis Title="Tools" TitleFontWeight="Bold">&apos;
+&apos;<vc:Axis.Grids>&apos;
+&apos;<vc:ChartGrid Enabled="False" />&apos;
+&apos;</vc:Axis.Grids>&apos;
+&apos;</vc:Axis>&apos;
+&apos;</vc:Chart.AxesX>&apos;
+&apos;<vc:Chart.AxesY>&apos;
+&apos;<vc:Axis Title="Number of downloads" TitleFontWeight="Bold" AxisType="Primary">&apos;
+&apos;<vc:Axis.Grids>&apos;
+&apos;<vc:ChartGrid Enabled="True" />&apos;
+&apos;</vc:Axis.Grids>&apos;
+&apos;</vc:Axis>&apos;
+&apos;</vc:Chart.AxesY>&apos;
+&apos;<vc:Chart.Series>&apos;
+&apos;<vc:DataSeries RenderAs="bar" AxisYType="Primary" Bevel="False">&apos;
+&apos;<vc:DataSeries.DataPoints>&apos;
+&apos;<vc:DataPoint AxisXLabel="CLONE" YValue="'+VariableName1+'" Href="https://workspaces/s...cil/Lists/Tools Basket/AllItems.aspx?Name=CLONE" />&apos;
+&apos;<vc:DataPoint AxisXLabel="GLoG" YValue="'+VariableName2+'" Href="https://workspaces/s...cil/Lists/Tools Basket/AllItems.aspx?Name=GLoG" />&apos;
+&apos;<vc:DataPoint AxisXLabel="Analyzer" YValue="'+VariableName3+'" Href="https://workspaces/s...cil/Lists/Tools Basket/AllItems.aspx?Name=Analyzer" />&apos;
+&apos;<vc:DataPoint AxisXLabel="SLiM" YValue="'+VariableName4+'" Href="https://workspaces/s...cil/Lists/Tools Basket/AllItems.aspx?Name=SLiM" />&apos;
+&apos;<vc:DataPoint AxisXLabel="B-SMART" YValue="'+VariableName5+'" Href="https://workspaces/s...cil/Lists/Tools Basket/AllItems.aspx?Name=B-SMART" />&apos;
+&apos;</vc:DataSeries.DataPoints>&apos;
+&apos;</vc:DataSeries>&apos;
+&apos;</vc:Chart.Series>&apos;
+&apos;</vc:Chart>&apos;;
var vChart1 = new Visifire(&quot;https://workspaces/s...ire.Charts.xap&#34; , 500 , 250 );vChart1.setWindowlessState(true);
vChart1.setDataXml(chartXmlString);
vChart1.render(&quot;VisifireChart1&quot;);
</script>


this is the code, and im sorry, i am unable to give you the path and access to see it.

#10 pepsin

pepsin

    Member

  • Members
  • PipPip
  • 18 posts

Posted 19 December 2011 - 01:06 PM

here, i ve given intranet link, and now it is working only for intranet

#11 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 19 December 2011 - 01:10 PM

I was asking where this XML file is present in the server? Can you please provide me the sample path as you have provided for the .xap file. I just want to see the location for the file.

Regards,
Vivek
Team Visifire


#12 pepsin

pepsin

    Member

  • Members
  • PipPip
  • 18 posts

Posted 19 December 2011 - 01:43 PM

I am taking the values dynamically from lists.
this is a sharepoint website (MOSS 2007), and i have inserted a dataview from the lists which is present in the same site, and taking row count from the dataview, and populating them as graph.
----------------
<xsl:template name="dvt_1">
<xsl:variable name="dvt_StyleName">Table</xsl:variable>
<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
<xsl:variable name="dvt_RowCount" select="count($Rows)" />
<xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
<xsl:variable name="ItemCount1" select="count(/dsQueryResponse/Rows/Row[normalize-space(@Innovation_x0020_Name) = 'xyz'])" />
<xsl:variable name="ItemCount2" select="count(/dsQueryResponse/Rows/Row[normalize-space(@Innovation_x0020_Name) = 'asdf'])" />
<xsl:variable name="ItemCount3" select="count(/dsQueryResponse/Rows/Row[normalize-space(@Innovation_x0020_Name) = 'zxcv'])" /> <xsl:variable name="ItemCount4" select="count(/dsQueryResponse/Rows/Row[normalize-space(@Innovation_x0020_Name) = 'awed'])" />
<xsl:variable name="ItemCount5" select="count(/dsQueryResponse/Rows/Row[normalize-space(@Innovation_x0020_Name) = 'adsf'])" />
-------------
I am taking the values from here

#13 vivek

vivek

    Advanced Member

  • Team Visifire
  • PipPipPip
  • 3,587 posts
  • Gender:Male
  • Location:Bangalore

Posted 20 December 2011 - 04:56 AM

Please try setting the path for Visifire.js and SL.Visifire.Charts.xap as shown below.

<script type="text/javascript" src="./sites/SW38/InnovationCouncil/Supporting%20files/Visifire.js"></script> <div id="VisifireChart1">
var vChart1 = new Visifire("./sites/SW38/InnovationCouncil/Supporting%20files/SL.Visifire.Charts.xap", 500, 250);

Regards,
Vivek
Team Visifire


#14 pepsin

pepsin

    Member

  • Members
  • PipPip
  • 18 posts

Posted 20 December 2011 - 05:03 AM

thanks vivek,
I am able to make it

<script type="text/javascript" src="/sites/SW38/InnovationCouncil/Supporting%20files/Visifire.js"></script> <div id="VisifireChart1">
var vChart1 = new Visifire("/sites/SW38/InnovationCouncil/Supporting%20files/SL.Visifire.Charts.xap", 500, 250);

awesome!!

#15 NillNicks

NillNicks

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 02 March 2012 - 12:18 PM

Hey I am a new comer on this forum. This is my first comments on this forum. I wish to visit here everyday.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users