Javascript, OWC chart, DataLabelsCollection.Add() error.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jfizer

    #1

    Javascript, OWC chart, DataLabelsCollection.Add() error.

    Whenever I try to call ...DataLabelsCo llection.Add I get the error
    "Invallid Parameter".

    if((document.ch sp.charts(0).Ty pe==18) ||
    (document.chsp. charts(0).Type= =19) ||
    (document.chsp. charts(0).Type= =20) ||
    (document.chsp. charts(0).Type= =9001) ||
    (document.chsp. charts(0).Type= =9002))
    {
    var dls;
    dls =
    document.chsp.c harts(0).Series Collection(1).D ataLabelsCollec tion.Add();
    dls.HasPercenta ge = 'True';
    dls.HasValue = 'True';
    }
  • RobG

    #2
    Re: Javascript, OWC chart, DataLabelsColle ction.Add() error.

    jfizer wrote:[color=blue]
    > Whenever I try to call ...DataLabelsCo llection.Add I get the error
    > "Invallid Parameter".[/color]


    You are in a JavaScript forum. The question you pose
    relates to Microsoft Office Web Components - Visual Basic.
    You may wish to use a more appropriate forum for your
    question.

    Cheers, Rob.

    Comment

    • jfizer

      #3
      Re: Javascript, OWC chart, DataLabelsColle ction.Add() error.

      On Tue, 21 Sep 2004 22:36:23 GMT, RobG <rgqld@iinet.ne t.auau> wrote:
      [color=blue]
      >jfizer wrote:[color=green]
      >> Whenever I try to call ...DataLabelsCo llection.Add I get the error
      >> "Invallid Parameter".[/color]
      >
      >
      >You are in a JavaScript forum. The question you pose
      >relates to Microsoft Office Web Components - Visual Basic.
      > You may wish to use a more appropriate forum for your
      >question.
      >
      >Cheers, Rob.[/color]

      Nope, in fact I am not useing any VB script, ASP or any other such
      stuff. 100% Javascript, which is what is causing my problems.

      However I have managed to solve this one.

      Comment

      • RobG

        #4
        Re: Javascript, OWC chart, DataLabelsColle ction.Add() error.

        jfizer wrote:
        [color=blue]
        >
        > Nope, in fact I am not useing any VB script, ASP or any other such
        > stuff. 100% Javascript, which is what is causing my problems.
        >
        > However I have managed to solve this one.[/color]

        I think you are mistaken - do you have a link to any
        reference that shows DataLabelsColle ction belongs to
        JavaScript, CSS or HTML? I can find thousands (literally)
        that relate to Microsoft VB Script.

        A quick test would be for you to post code to this forum
        that works in any browser other than IE and sits within
        <script type="text/javascript"></script> tags.

        Regards, Rob.

        Comment

        • Thomas 'PointedEars' Lahn

          #5
          Re: Javascript, OWC chart, DataLabelsColle ction.Add() error.

          RobG wrote:
          [color=blue]
          > jfizer wrote:[color=green]
          >> Nope, in fact I am not useing any VB script, ASP or any other such
          >> stuff. 100% Javascript, which is what is causing my problems.
          >>
          >> However I have managed to solve this one.[/color]
          >
          > I think you are mistaken - do you have a link to any
          > reference that shows DataLabelsColle ction belongs to
          > JavaScript, CSS or HTML? I can find thousands (literally)
          > that relate to Microsoft VB Script.[/color]

          What you don't understand is that VBScript is but a possible
          interface language to a (document) object model, JScript or
          JavaScript can serve as such as well if the interface provides
          the appropriate language binding.


          PointedEars
          --
          Syntax terror in line 42

          Comment

          Working...