garnold

Members
  • Content count

    11
  • Joined

  • Last visited

Everything posted by garnold

  1. Is it possible to make the frame around the map smaller? There is a lot of empty space around the map and I would like to clean this up some.
  2. So the code below will load a chart perfect once the page is rendered in Firefox but this same page in IE will not. I have to push the button I created to run the function again for IE to work. Seems like the chart is not rendered in time for the XML or something? Not really sure what to change here? Sorry for the HTML textarea and break points but it was the only way I could think of getting all my code up here for you to look at. Thanks <%@ Control Language="C#" ClassName="MashUpChart" %> value="Get Oppos" /> getData(); function getData() { var req = new XMLHttpRequest(); req.open('GET', 'http://w2003stdbase:3333/SlxClient/mashuphandler.ashx?mashup=OppoMash&Result=SelectOppos', true, 'Admin',''); req.onreadystatechange = function (aEvt) { if (req.readyState == 4) { if(req.status == 200) loadChart(req.responseXML); else dump("Error loading page"); } }; req.send(null); } function loadChart(data) { if (data != undefined){ var results = data.getElementsByTagName('result'); var acctName = ""; var xml = ""; for(var x = 0; x < results.length; x++){ var oppo = results.item(x); var oppoId = oppo.getElementsByTagName('oppo_Id')[0].firstChild.nodeValue; var description = oppo.getElementsByTagName('acct_AcctName')[0].firstChild.nodeValue + ": " + oppo.getElementsByTagName('oppo_Description')[0].firstChild.nodeValue; var salesPotential = oppo.getElementsByTagName('oppo_SalesPotential')[0].firstChild.nodeValue; xml += ""; } xml += ""; var chart1 = new FusionCharts("smartparts/dashboard/Column2D.swf", "chart1Id", "500", "300", "0", "1"); chart1.setTransparent(true); chart1.setDataXML(encodeURI(xml)); chart1.render("chart1div"); } }
  3. Question, I can use setTransparent like this with javascript chart.setTransparent(true); How do I do this when using the dll to render the chart within codebehide? Much Thanks!
  4. Thank you this is what I needed
  5. I've been going nutz with this one and can't seem to get it to work. I have used this map tool a number of times and it is great. Never a problem. I have even used it in the same website that I'm working on now and no problem. For some reason no mater what I try I get an Error in loading data the first time I show the page and if I click any of the controls the fire a postback I loose the map completely. It seems like my page is not running the script the second time around and I just don't know why? Plus I can not get it to show any maps. I have even simply copied the demo pages code right into my page with no luck. Since this map is embeded inside of an existing application I can not be sure what else the program is running. Bottom line I just don't know how to debug this any further. Can anyone help me?
  6. Map disappears after postback?

    Can I not have maps and charts on the same screen? I have tried pulling the chart off still with no luck but I thought I would ask.
  7. Is there a way to find out all the selected slices in a chart? I have looked at your ASP.Net code and see that I can grab a link of a slice but I would like to have a table that shows totals from the selected slices. Thank you
  8. Ok finally got it, just had to mess around with " alot.
  9. I'm trying string link = Server.UrlEncode("javascript:updateStats('" + stage + "')");but no luck
  10. Ok your par is an int so you can just pass it but how do I pass a string? I'm having a problem formatting the XML because of all the ' and " needed to build the link.
  11. My question is how I would use javascript and these charts in an ASP page? Though I'm writing ASP pages the language that I'm using is JavaScript rather then VBScript. I would have no problem using VBScript but the program that I'm integrating with uses JavaScript for everything including their include files. Mixing the two would really not be fun so is there a FusionChart.asp page that is writen with JavaScript rather then VBScript?