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 / documentation
Goto page 1, 2  Next
 
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
Phoscur



Joined: 30 Dec 2009
Posts: 4

PostPosted: Thu Dec 31, 2009 12:49 pm    Post subject: JavaScript code completion / documentation Reply with quote

Hi!
Some of you may know this pattern in javascript:
Code:
someObject = function () {
    // some stuff including private variables
    return { someAttribute: "blubb" };
}();
Note the execution of the anonym function, which assigns the created object to "someObject".
Well, writing code like this seems not to work correctly in Netbeans (6.Cool. I don't get a correct code completion for the object, the pattern is not recognised.
Additionally I get a strange message here (and all similar places):
Code:
    var self = {
        /**
         * change the location where the getter is taking the template files from
         * @param string newDir
         */
        setDir: function setDir(newDir) {
            dir = newDir;
        },
// ....

"Incorrect documentation: missing [newDir] and defining extras [string]"
Same here:
Code:
 * parse data into the template
 *
 * @param object/array data
 * @return Template
 */
Template.prototype.parse = function parse(data) {

};

(Tried a secondary file for documentation.)

I've seen Netbeans proposed as the second/third best JavaScripteditor, now I'm dissapointed... Am I doing something wrong?

In comparision Aptana Studio, has some evolved ScriptDoc syntax for JavaScript to handle these patterns, also it handels my last example.

I'm not happy with both IDE's, Aptana's pattern recognition is not that nice either..
Now, is it me not using the right features, or aren't these features simply not implemented. Maybe I should try IntelliSense?
Back to top
Marvin Hunkin
Posted via mailing list.





PostPosted: Sun Jan 03, 2010 11:54 pm    Post subject: Re: JavaScript code completion / documentation Reply with quote

hi.
can you send me the subscription details for this mailling list please.
Marvin.
----- Original Message -----
From: "Phoscur" <address-removed>
To: <address-removed>
Sent: Thursday, December 31, 2009 11:50 PM
Subject: [nbajax] JavaScript code completion / documentation


Hi!
Some of you may know this pattern in javascript:

Code:
someObject = function () {
// some stuff including private variables
return { someAttribute: "blubb" };
}();


Note the execution of the anonym function, which assigns the created object
to "someObject".
Well, writing code like this seems not to work correctly in Netbeans (6.Cool.
I don't get a correct code completion for the object, the pattern is not
recognised.
Additionally I get a strange message here (and all similar places):

Code:
var self = {
/**
* change the location where the getter is taking the template files
from
* @param string newDir
*/
setDir: function setDir(newDir) {
dir = newDir;
},
// ....


"Incorrect documentation: missing [newDir] and defining extras [string]"
Same here:

Code:
* parse data into the template
*
* @param object/array data
* @return Template
*/
Template.prototype.parse = function parse(data) {

};


(Tried a secondary file for documentation.)

I've seen Netbeans proposed as the second/third best JavaScripteditor, now
I'm dissapointed... Am I doing something wrong?

In comparision Aptana Studio, has some evolved ScriptDoc syntax for
JavaScript to handle these patterns, also it handels my last example.

I'm not happy with both IDE's, Aptana's pattern recognition is not that nice
either..
Now, is it me not using the right features, or aren't these features simply
not implemented. Maybe I should try IntelliSense?
Back to top
Phoscur



Joined: 30 Dec 2009
Posts: 4

PostPosted: Mon Jan 04, 2010 12:53 am    Post subject: Reply with quote

Sorry, I don't get what you mean. What do you want. Even knowing what mailing lists are, I am more familiar with forums and I would like to stick to it. Could you please answer my question(s) if you can? Else give me more details to help you.
Back to top
Marvin Hunkin
Posted via mailing list.





PostPosted: Mon Jan 04, 2010 10:50 pm    Post subject: Re: JavaScript code completion / documentation Reply with quote

hi.
well which mailling list is this.
cannot remmeber subscribing to this.
and want the digest mode for this list.
so send me the mailling list details.
and what lists are you on.
Marvin.
----- Original Message -----
From: "Phoscur" <address-removed>
To: <address-removed>
Sent: Monday, January 04, 2010 11:53 AM
Subject: [nbajax] JavaScript code completion / documentation


Sorry, I don't get what you mean. What do you want. Even knowing what
mailing lists are, I am more familiar with forums and I would like to stick
to it. Could you please answer my question(s) if you can? Else give me more
details to help you.
Back to top
Phoscur



Joined: 30 Dec 2009
Posts: 4

PostPosted: Wed Jan 06, 2010 2:49 pm    Post subject: Reply with quote

Well, this is [nbajax], I have no idea what the digest mode is, what the details of this list are, and I'm not on any list.
Maybe you take a look at this:
http://forums.netbeans.org/viewtopic.php?t=21581
Back to top
Vatsal_r
Posted via mailing list.





PostPosted: Fri Jan 08, 2010 12:04 pm    Post subject: Reply with quote

Hi, I do have a website where you can purchase camera, cars, computers, cell phones, etc at cheaper rates.with best quality. Check out my site best deals and you can have best dealing here.
Back to top
Phoscur



Joined: 30 Dec 2009
Posts: 4

PostPosted: Mon Jan 11, 2010 10:22 am    Post subject: Reply with quote

Great forum!
Back to top
Humage



Joined: 24 Jul 2009
Posts: 104
Location: Cloud 9

PostPosted: Mon Jan 11, 2010 2:09 pm    Post subject: Reply with quote

I am using 6.7.1 and I have copied all of your posted code snippets into a js file in the editor. Something must be different with version 6.8 as all seem to show up correctly without errors.
Back to top
markwright789



Joined: 30 May 2011
Posts: 15

PostPosted: Mon May 30, 2011 9:28 am    Post subject: Reply with quote

I am using 6.7.1 and I have copied completely of your posted code snippets into a js file in the editor. Something must be unlike with version 6.8 as all appear to show up correctly without errors.
Back to top
mikwhite



Joined: 13 Jun 2011
Posts: 4

PostPosted: Mon Jun 13, 2011 4:40 pm    Post subject: Reply with quote

I really enjoyed reasing your blog, and it looks wonderful. If you get a chance you should visit my blog as well. I hope you have a nice day!
NY Web Design
Back to top
doncorneo



Joined: 15 Jun 2011
Posts: 4

PostPosted: Wed Jun 15, 2011 9:51 am    Post subject: Reply with quote

It is funny for me to read this article. However, such information is an education for me. And I am very grateful for this article.
visit my blog
Back to top
CloeMay



Joined: 21 Jun 2011
Posts: 4

PostPosted: Tue Jun 21, 2011 9:12 pm    Post subject: Reply with quote

Women, basically just want in love, in love, and in value. What is the most valuable thing we can give to a woman? The answer is to get them married, and live happily ever after. safety signs
Back to top
goldclover87



Joined: 21 Jun 2011
Posts: 4

PostPosted: Tue Jun 21, 2011 10:13 pm    Post subject: Reply with quote

You seem to have lost the directory or simultaneously with the loss of the variable identifier. Try to check the structure of your program, so you can find out where the location of faults.
sql server deadlock
Back to top
williamblur



Joined: 23 Jun 2011
Posts: 5

PostPosted: Thu Jun 23, 2011 4:32 am    Post subject: Reply with quote

Wordpress is likely, to be one of the sites-That the blog is very reliable at this time. In terms of prestige, wordpress, moreover Might be Able to raise the price of one.
laptop carrying cases
Back to top
yamakitoshi



Joined: 29 Jun 2011
Posts: 5

PostPosted: Thu Jun 30, 2011 6:55 am    Post subject: Reply with quote

Colleges to disclose more details about their programs, including graduation rates, typical loan debts and job placement rates. Such for-profit schools must describe that information on promotional material as well as online.
Baltimore SEO
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
Goto page 1, 2  Next
Page 1 of 2

 
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