Tagged Questions
-8
votes
0answers
37 views
PHP, Rubi, Javascript - Which one do you recommend? [closed]
We are about to start building new web system and have some doubts regarding the prefered language. The programmers are experienced but there are different recommendations. So, I will love to hear the ...
0
votes
0answers
45 views
Better tutorial on Netbeans new language support plug-in?
I am using a new javascript based server side language. It does something exactly similar to what PHP does—but uses javascript syntax to process server response and handle logic. Netbeans is my ...
0
votes
1answer
47 views
Javascript library to parse other languages [closed]
Does anyone know where I can find a javascript library which could parse the syntax of other programming languages like php, c# e.t.c.
What I'm looking or in detail is some sort of browser text ...
0
votes
0answers
40 views
Visual language to JavaScript and back
I'm writing a java program to convert some visual elements in a toy visual language into JavaScript. The language might also need to be mappable to another visual language.
I'm in the process of ...
-4
votes
1answer
39 views
What (feature/feature absence/…) confuses you most while you are learning JavaScript? [closed]
I'd like to know things confuses your JavaScript learning and write a serie of articles discuss about it.
Please do not focus on browser API, DOM or things similar.
0
votes
2answers
83 views
When is JavaScript superior to jQuery? [closed]
Taking a look at jQuery for the first time yesterday, it looks amazing. I've been fiddling with some easy jQuery tutorials back and forth, and some questions come to mind.
Can JavaScript achieve ...
0
votes
3answers
69 views
Best language for non-PostBack solution [closed]
Im building a asp.net webpage. And normally I would do that in C#, but this project needs to have functions that doesn't reload the page. I've been looking into javascript, but found that it's not the ...
1
vote
1answer
78 views
Why doesn't this comparison work? [duplicate]
Possible Duplicate:
Is JavaScript's Math broken?
If(0.3-0.2==0.2-0.1) most of programming language showing result false.So I want to know which Language Support this statement true and ...
10
votes
2answers
107 views
*something* if *expression* syntax in JavaScript (FF)
I have seen some examples that show that Firefox supports some kind of JavaScript syntax along the lines of *something* if *expression*;.
As an example of what I'm talking about, see this MDN ...
2
votes
4answers
109 views
I have an Apache + PHP server that I can upload code. Can I use languages other than PHP to do server-side coding? [closed]
If your server only has support for Apache, what are server-side scripting languages you can use other than PHP?
3
votes
2answers
101 views
Is recursive use of eval() an alright way to inspect the execution of a program?
I've been building a basic live-evaluation javascript development environment (I call it the WEPL.) over the past few days, and realized it'd be nice to be able to associate error messages to line ...
2
votes
2answers
104 views
Significance of $ in javascript library and other languages
Famous javascript libraries,
jQuery
prototypejs
mootools
scriptaculous
all uses $. What's the significance of $ ?
and also, even php uses it to declare variables. I am sure some other languages ...
7
votes
2answers
74 views
code flow misunderstanding?
after looking at JSON syntax ( just for curiosity)
ive noticed a different flow tags edges :
so what is the difference between :
vs
1
vote
2answers
84 views
What is achieved by turning functions into objects in JavaScript?
One of the unique features of JavaScript is that 'functions are objects and can be passed around like any objects' [1].
When Mr. Eich began creating the language, why did he decide to do this? How is ...
9
votes
3answers
365 views
What do paranthesis after curly braces mean?
I have seen Javascript code that uses paranthesis immediately after a function's closing curly brace, I can't understand what they're used for.
Example:
function foo(bar){
return bar;
}(0);
...
2
votes
2answers
209 views
Is it possible to use a shebang but somehow “conceal” it from a JavaScript interpreter?
I guess my question is pretty hard to decipher (feel free to perfect it). But it pertains to the use of shebang lines in scripts – specifically, in this case, JavaScripts. Let's say I have this ...
8
votes
2answers
875 views
Coffeescript Static Analysis / Static Typechecking - Roadblocks
I think Coffeescript is an awesome language! I was looking for some projects / issues / features that add Static Analysis to Coffeescript. However after some searching I found that the Coffeescript ...
0
votes
2answers
163 views
What would be the best way to program a board game controlled by one person?
My dad wants me to program a board game. This board game will be used in a classroom setting, where the teacher will control the board game for the class. So, if a student gets a question right, the ...
-2
votes
4answers
125 views
OOP Solution for Javascript?
Is there any super set or language similar to javascript that provides a more classical c++/java/c#-like OO System. But can be used with HTML-5 and DOM and has a cross-platform implementation?
1
vote
1answer
120 views
interface with user input as trigger for server-side php and client side update?
I had a hard time phrasing my question's title. Basically here's the problem:
I've got this interface consisting of 5 visual rows that only differ by input and by name.
Each row has 2 select ...
0
votes
6answers
546 views
Difference between ajax and javascript
Can anyone tell me where one should use javascript and where one should use ajax? Also, what is the main difference between them?
I have searched on the web and got an idea that ajax should be use ...
-2
votes
3answers
276 views
What other languages are loosely-typed like JavaScript? [closed]
I learned that JavaScript is a "loosely-typed" language.
What other languages are "loosely-typed?"
88
votes
6answers
2k views
Does any other language other than JavaScript have a difference between brace start locations (same line and next line)?
Today, while I was randomly reading the JavaScript patterns O'Reilly book, I found one interesting thing (page 27 for reference).
In Javascript, in some cases, there is a difference if the brace ...
1
vote
0answers
104 views
What kind of bad things would happen if I implement class in javascript this way? [closed]
I've watched about how to do OOP in javascript from http://www.gotoandlearn.com/play.php?id=159 and some other sites.
My approach to do OOP in javascript is totally different from the video above. ...
13
votes
6answers
368 views
Why does eval() exist?
Many programmers say it is a bad practice to use the eval() function:
When is JavaScript's eval() not evil?
I'd like to take a moment to address the premise of your question - that eval() is ...
1
vote
2answers
381 views
Javascript as a managed dynamic .net language
Visual Studio language extensibility
Does anybody know whether there's an open source (or paid) project that extends Visual Studio with managed Javascript as a server side .net language so it gets ...
2
votes
7answers
2k views
JavaScript as a first programming language? [closed]
I would like to learn how to program, starting from scratch. I've come across an online beginner's course based on JavaScript which seems to be very well-done. However, a friend of mine counseled me ...
3
votes
1answer
456 views
EBNF syntax parser module
Do you know of a syntax parser module (written in Ruby, Python, Javascript...) that, given a list of tokens and a EBNF-like grammar (passed as a simple string), returns the parsed tree? The closest ...
3
votes
4answers
275 views
which is the best programing language to start with? [closed]
I am a new programmer and i would like to know which is the best language to start with?
i know a little bit of php but i want to be careful with the current common languages that are widely used i ...
1
vote
1answer
64 views
Recognition of stack-bases language
Does anyone know what language this could be?
([][(![]+[])[!+[]+!+[]+!+[]]+(!![]+[][[]+[])[+[]]+([![]]+[][[]])
...
3
votes
5answers
216 views
Null is type object, so it's truthy? What's going on behind the scenes?
I'm reading in my book, "Elegant JavaScript", that null == true evaluates as false. Using an interpreter, I have confirmed this to be TRUE. However, later in the chapter--in fact, on the same ...
3
votes
2answers
266 views
Java and Type Safety
The MDN JavaScript guide states the following when doing a comparison between Java and JavaScript:
Type safety means, for instance, that you can't cast a Java integer into an object reference or ...
2
votes
2answers
450 views
Detect Programming Language from code snippet [duplicate]
Possible Duplicate:
Detecting programming language from a snippet
Is there a way to identify the following for a text snippet?
Whether it is a piece of code
The programming language in ...
-2
votes
1answer
85 views
Using Javascript as a Script Server? [closed]
I am curious to see if anyone is using Javascript server-side widely. NodeJS seems promising, MongoDB use Javascript as its shell and scripting language, it's a powerful language and now it's html 5 ...
3
votes
6answers
117 views
Why/How should I used objects in JavaScript?
I understand how to instantiate objects and call them, but I just cannot find a reason to use them in my script. I could do
var obj = {
hi: function() {
return "Hello";
}
};
but ...
10
votes
3answers
492 views
Usage of toString in JavaScript
I'm reading through Douglas Crockford's JavaScript: The Good Parts, and I'm at the point where he defines a fade function. Part of this code boils down to this:
var level = 1;
var hex = ...
1
vote
2answers
490 views
Is there any open source interpreter for JavaScript?
Is JavaScript an open source programming language? I want to know how some objects and methods work.
I mean, is the compiler, interpreter, or parser for JavaScript open source?
1
vote
1answer
285 views
Javascript bug in i.e function returning NAN (works in other browsers)
Hello i have created a javascript function that recaculates the grand total of an order when the delivery method is changed. The code works fine in firefox, chrome and i.e 9 but returns NAN in i.e 8 ...
0
votes
2answers
3k views
Best way to load and unload JS file via JQuery
I've been frustated trying to find the best way to load and unload some JS file via jQuery, this was last what I can do:
$("#button").live("click", function(){
var pl = $(this).attr('rel');
...
1
vote
1answer
275 views
Which JavaScript (ECMAScript) version does Java's Rhino implementation implement (and what's the update policy?)
Which version of the ECMAScript standard does Java's JavaScript engine Rhino support, how much work is going into fixing bugs and keeping the implementation in sync with the latest standardized ...
-1
votes
3answers
159 views
how to set up a simple browser that support javascript?
I would like to setup a simple web browser that download a html page , parse it, generate a dom and execute the javascript code. I would like to know if there is a simple project(so not firefox which ...
0
votes
3answers
111 views
() right after a function means the function is going to get fired immediately? [duplicate]
Possible Duplicate:
What do empty parentheses () after a function declaration do in javascript?
I am looking at some Javascript code and trying to figure out what }(); right after return ...
5
votes
3answers
180 views
Why 'this' resolution is so special in JavaScript?
Warning: Buggy JavaScript code first!
// 1: buggy counter
// -----------------
// problem: 'this' can be "broken"
var Counter1 = function() {
this.count = 0;
this.increment = function() {
...
1
vote
3answers
82 views
Finding an element in an array
4,5,6,7];
pin=3;
We got to search pin in hay.
Conventionally we loop through hay and check for pin( assume there is no native function called array.indexOf ).
How about,
...
0
votes
4answers
154 views
what does this construct do in javascript
i really tried to understand, what meaning the the following contruct has in JS, but i could not figure out:
how it works
why & in which situation this construct should be used?
Pls could ...
18
votes
9answers
511 views
Features of JavaScript that C developers fail to take advantage of?
Fellow Stackers,
In the first Computer Science class I took, the professor used C++ as a teaching language. He emphasized that the important things to understand are the concepts of programming, not ...
9
votes
2answers
15k views
How to remove spaces from a string using JavaScript?
I'm using jquery and now I need to remove spaces in the string retrieved as a parameter (file name)..
For instance:
I have: '/var/www/site/Brand new document.docx'
I would like to get: ...
0
votes
3answers
2k views
How do I change file extension with javascript
Does anyone know an easy way to change a file extension in Javascript ?§
For example:
I have a variable with "first.docx" but I need to change it to "first.html"
Thank you for the help :)
1
vote
3answers
322 views
JavaScript log parser project: Bad idea?
There are numerous log files that I have to review daily for my job. Several good parsers already exist for these log files but I have yet to find exactly what I want. Well, who could make something ...
0
votes
1answer
51 views
Are all data types a specific type of an Object?
Are all data types a specific type of an Object?
If I call Array a type of Object, then what would I call the values inside the Array?