Tagged Questions
JavaScript is the original and common name applied towards most flavors of a scripting language that originated on NetScape Navigator. Its primary function has been to interact with the client-side of the web. It is standardized according to a spec known as ECMAScript and is evolving rapidly. Use this tag for questions regarding common implementations of ECMAScript, JavaScript, JScript, etc. JS does not typically refer to its ECMA-cousin, ActionScript.
6
votes
3answers
197 views
What common programming problems are best solved by using prototypes and closures?
As much as I understand both concepts, I can't see how can I take advantage of JavaScript's closures and prototypes aside from using them for creating instantiable and/or encapsulated class-like ...
0
votes
0answers
21 views
How to create this drop down box [migrated]
I am trying to create this dropdown box that slides down and has the bottom image retain as it slides down withc ontent inside it. I have beent rying to find scripts dedicated to this but i cant find ...
5
votes
2answers
132 views
What should be tested in Javascript?
At work, we've just started on a heavily Javascript based application (actually using Coffeescript, but still), of which I've been implementing an automated test system using JsTestDriver and fabric.
...
-1
votes
0answers
95 views
The future of Flex for large enterprise web aps on desktop, and what will replace it, if not HTML5/JS/Ajax? [closed]
With the recent announcement of Adobe to flush Flex out to open source community, it seems to spell the end of Flex in the next, say, 5 years.
...
2
votes
3answers
164 views
Single click handler for all buttons in Javascript? Is it a pattern? Whats the benefit?
I have been told that when there are multiple buttons on the page for same purpose but targeting different item e.g. delete item on a grid of items, they say it is recommended to just register for ...
1
vote
1answer
53 views
How can I refactor client side functionality to create a product line-like generic design?
Assume the following situation similar to that of Stack Overflow: I have a system with a front-end that can perform various manipulations on the data (by sending messages to REST back-end):
Posting
...
1
vote
2answers
96 views
What programming podcast are worth listening? [closed]
Possible Duplicate:
What are the best podcasts?
I enjoy Stack exchange podcast, what other programming podcast are worth listening?
I'm mostly Java/JavaScript developer
0
votes
0answers
5 views
Visual Studio 2008 (C#) : How To Call Print Dialog to Print a ReportDocument from .aspx Page? [migrated]
I'm using Visual Studio 2008 & C# language..
I found a problem when i'm trying to print a ReportDocument directly from .aspx.cs
And, my ReportDocument has more than one records on it, so if it's ...
1
vote
3answers
40 views
Is the capability to overwrite functions in JavaScript strength or weakness?
I recently came across the following code (from liferay.js) when I was working with Liferay:
....
if (!Liferay._ajaxOld) {
Liferay._ajaxOld = jQuery.ajax;
}
if (Liferay._ajaxOld) {
...
0
votes
2answers
161 views
Avoiding inline JavaScript with dynamic content
I read here that you should avoid coding JavaScript inline (see item #1).
It sounds like a great idea; however, I'm not sure how to use js to select dynamic content without setting the id in the ...
1
vote
0answers
19 views
Setting the thumbnail for safari web previews [migrated]
When I view iCloud.com in my safari top sites, it always always has the same thumbnail.
I'm wondering how I could programmatically do the same for my website.
2
votes
3answers
257 views
Avoiding new operator in JavaScript — the better way
Warning: This is a long post.
Let's keep it simple. I want to avoid having to prefix the new operator every time I call a constructor in JavaScript. This is because I tend to forget it, and my code ...
0
votes
0answers
22 views
Hide Javascript or CSS with Javascript? [migrated]
I am a complete newbie when it comes to JS. I actually paid someone to write some JS for me but I need to tweak some stuff and I don't feel like hiring another person for just a few tweaks so I come ...
0
votes
1answer
133 views
Why did javascript libraries like knockoutjs, backbonejs, and angularjs only come out in 2010?
Being a relatively new web-developer I am surprised that these libraries didn't exist before. Is there a particular technical or historical reason that at around Sep 2010, a sudden development and ...
0
votes
0answers
7 views
Javascript deserialize array [migrated]
I have an array from JSON like this
"---\n- table\n- kevin\n- table\n- kevin\n"
How do i deserialize this array to something that is useful in javascript