Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5992775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:34:51+00:00 2026-05-22T23:34:51+00:00

I try in Dojo var a=new DATALINK_MSTP(); but I got error base class is

  • 0

I try in Dojo

var a=new DATALINK_MSTP();

but I got error base class is not a callable constructor

dojo.declare("DATALINK", null, {
    _id:'',
    _type:'',
    _network:'',
    _mac:'',
    _hop_count:'',
    _mqueue:'',
    constructor: function(){
        this._id='';
        this._type='';
        this._newtwork='';
        this._mac='';
        this._hop_count='';
        this._mqueue=new MQUEUE();
    },
    get_id:function(){
        return this._id;
    },
    set_id:function(id){
        this._id=id;
    },
    get_type:function(){
        return this._type;
    },
    set_type:function(type){
        this._type=type;
    },
    get_network:function(){
        return this._network;
    },
    set_network:function(network){
        this._network=network;
    },
    get_mac:function(){
        return this._mac;
    },
    set_mac:function(mac){
        this._mac=mac;
    },
    get_hop_count:function(){
        return this._hop_count;
    },
    set_hop_count:function(hop_count){
        this._hop_count=hop_count;
    },
    get_mqueue:function(){
        return this.mqueue;
    },
    set_mqueue:function(mqueue){
        this._mqueue=mqueue;
    },
    generate_div:function(){

    },
    generate_xml:function(){

    }
});

dojo.declare("DATALINK_MSTP","DATALINK", {
        _mstp:'',
    constructor: function(){
        this._mstp=new MSTP();
    },
    get_mstp:function(){
        return this._mstp;
    },
    set_mstp:function(mstp){
        this._mstp=mstp;
    },
    generate_xml:function(){

    }
});

dojo.declare("DATALINK_BIP","DATALINK", {
        _bip:'',
    constructor: function(/*id,type, network, mac, hop_count,mqueue,bip*/){
        this._bip=new BIP();
    },
    get_bip:function(){
        return this._bip;
    },
    set_bip:function(bip){
        this._bip=bip;
    },
    generate_xml:function(){

    }
});

I worked earlier with Dojo and it workd fine, but I have some arguments at constructor classes(I have tested MSTP class, it works fine). Can anybody tell me where I make mistake ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:34:51+00:00Added an answer on May 22, 2026 at 11:34 pm

    try this :

    dojo.declare("DATALINK_MSTP", DATALINK, {...});
    dojo.declare("DATALINK_BIP", DATALINK, {...});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish to declare a new dojo class inheriting from an existing dojo class,
Try to see which cast is faster (not necessary better): new c++ case or
I am new to the Dojo Toolkit. I'm getting the error Tried to register
I try to use first time the Dojo toolkit and I'm facing an error.
I participate in a TDD Coding Dojo, where we try to practice pure TDD
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error
Try as I might I cannot get my head around what the IteratorIterator class
I'm pretty new to dojo and was wondering how I could have an iframe
I have a onsubmit dojo/method within a custom templated widget like so: try {
try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); System.out.println(Enter the continent;); String CN =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.