NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

javascript code completion.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NetBeans Forums -> Ajax Users
View previous topic :: View next topic  
Author Message
amsterdamharu



Joined: 21 May 2010
Posts: 2

PostPosted: Sat May 22, 2010 4:32 pm    Post subject: javascript code completion. Reply with quote

When I make javascript "objects" the code completion does not seem to work on variables:

Code:
function waitStep(){
        this.timer=null;
   this.reset=function(){
      clearTimeout(this.timer);
// try to insert code here: [b]this.timer[/b] control + space does not find this timer
// try to insert code here [b]this.begin[/b] control + space gives me the function
   };
    this.begin=function(){
       this.timer=setTimeout("myCourse.nextStep()",this.timeToWait);
    };
}
var myStep=new waitStep()
// [b]myStep.begin[/b] control + space finds the begin function
// [b]myStep.timer control[/b] + space gives me "no suggestions"

var myObject = {
    variable: 22,
    aFunction: function(){return null}
}
// [b]myObject.[/b] will list both variable and aFunction


I am not sure how or if this is supposed to work or was working before (I am using netbeans 6.7.1 on Ubuntu (Linux mint).

It works as I expect it to work in eclipse.

I guess I got a bit spoiled with the code completion and wonder if this is a bug or just not functioning yet.
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NetBeans Forums -> Ajax Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo