rsprik

Members
  • Content count

    4
  • Joined

  • Last visited

About rsprik

  • Rank
    Forum Newbie
  1. I have a successful implementation of a seating chart solution using DragNode. I'm just trying to learn more about the JavaScript semantics to code more efficiently and advance my own learning... JavaScript function: function updateChartfoo(DOMId){ //Get reference to chart object using Dom ID var chartObj = getChartFromId("MyChart"); var suffix = 'foo'; //Update it's URL chartObj.setDataURL("/MyXML_" + suffix + ".xml"); Later in the HTML there's a button... including this: onclick="javaScript:updateChartfoo();" I have 3 different XML source files... let's call them: MyXML_foo.xml MyXML_bar.xml MyXML_blort.xml I'm trying to create one function to make the code efficient, but I could not figure out how to pass along the value I want to assign the suffix variable from the onclick event. I tried updateChart(foo); and then in the function I started with: updateChart(DOMId,suffix) .... and other variations.... none of which worked Sorry, my JS skills aren't where they need to be and so for now I had to settle for creating three different functions. Is there any way to pass along additional arguments to the updateChart(DOMId) function from the onClick trigger? Thanks!
  2. Making small font size legible

    That's what I thought. Thanks for the suggestion.
  3. Making small font size legible

    Not having used pixel fonts before, not sure about how to implement, everything I'm reading instructs to use the pixel font when "creating" the flash animation. But with FusionCharts we're using flash animations that are pre-made. What would be the method for embedding a pixel font into say, DragNode?
  4. I'm creating a seating chart for a school information system. DragNode is working very well.... for some classes with large number of students or unique classroom layouts I have to make the student photos smaller, along with their labels (student name)... but anything below 9 renders near illegibly in an HTML browser. Only saving grace is that I can keep the tooltip font at a larger size... '9' seems to work well. Print outs of the chart are ok... it's just the screen display I'd like to make more readable. Any tips on either (A) getting the font size smaller and legible at the same time or ( figuring out how to get the label to be "wider" than the photo object. (Currently the label seems constrained to the width of the photo. Some sample code is below. set x='33.75' y='54.180602' shape='RECTANGLE' width='60' height='84' color='FFFFFF' name='A****, M***** 11' alpha='100' toolText='A****, M***** 11' id='1234' imageNode='1' imageurl='/image.jpeg' imageAlign='bottom' labelAlign='top' imageHeight='63.75' imageWidth='51' styles definition style name='photoLabelFont' type='font' isHTML='1' size='6' style name='ToolTipFont' type='font' isHTML='1' size='9' /definition application apply toObject='DATALABELS' styles='photoLabelFont' apply toObject='TOOLTIP' styles='ToolTipFont' /application /styles