Tagged Questions
JavaScript is a dynamically-typed language commonly used for client-side scripting. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript). Unless a tag for a framework/library is also included, a pure JavaScript answer is expected.
0
votes
0answers
5 views
Using addEventListener to add a callback with arguments
I'm creating a drag and drop system using a canvas.
canvas.addEventListener('mousedown', function () {
window.initialClickX = mouse.x;
window.initialClickY = mouse.y;
...
0
votes
0answers
2 views
Updating Knockout viewModel
I'm attempting to update a knockout view model, but each time I try to push to an observable array it gives me an error that AuditViewModel is undefined.
function (data, update) {
if (update ...
0
votes
0answers
2 views
d3 Animation with transform translate on force layout
i have problem with my animation. I call the tick function to animate my nodes and want now to animate the node after a click on it to an specific position. Thats working also but without animation ...
0
votes
1answer
14 views
anchors.length in javascript is not working properly
Its very strange condition for me but anchors.length only give total number of anchors when i place script after all anchors tag and when i place before all anchors it gives zero....so i did this but ...
0
votes
4answers
33 views
Insert a div in a random location in a list of divs
I have a page that looks like so:
<div id="container">
<div class="item">...</div>
<div class="item">...</div>
<div class="item">...</div>
<div ...
0
votes
0answers
3 views
jqGrid date sort (local) doesn't work
I know there are a bunch of answers to this kind of issue here, but they all seemed to have some unique circumstances. In my case however, it should be a very straightforward thing because I'm not ...
0
votes
0answers
9 views
AJAX chat scroll If has more than 20-30 messages, scroll to bottom will work if user didnt scroll up
I have a chat system: http://driptone.com/jony/applications/chat/index.php
Whenever the reload happens or someone posts, ajax will return the scroll back to bottom:
var height = ...
0
votes
1answer
19 views
String check with if js shorthand
I have var names = []; and want push there some string only if it's not empty. Is there way make it with some shorthand method in js?)
That i have now.
if ("" != opportunityName)
{
...
0
votes
0answers
11 views
Jquery tmpl creating a or statement
{{if production_country != null || production_year != null}}
<h3 class="heading">Details</h3>
<p><b>${production_country} ${production_year}</b>, {{html ...
0
votes
1answer
33 views
From form to javaScript map
I'm trying to get the form data from my form returned as a simple map Object {a: "b", c: "d"}
I know I can .serialize() and .serializeArray() and then do it myself. Isn't there a jQuery function or ...
0
votes
0answers
8 views
Windowless container for Google App Engine channel API client
I would like to write a commandline tool that receives notifications from Google App Engine's Channel API. This seems to be quite straightforward thanks to open JavaScripts VMs such as v8 and js. One ...
0
votes
1answer
15 views
asp.net button from modal dialog to not close that modal
I have a web forms app.
I need to open various modal dialogs (one from the other, so for example it's possible to have 3-4 modal dialogs at the same time on the page), and from those dialogs to call ...
0
votes
1answer
8 views
obfuscate url on meta redirect
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.example.com">
Hi, how can i obfuscate the http://www.example.com (like doing something with string.fromcharcode [i know that's only ...
0
votes
0answers
9 views
What alternative cold we use to send massive private messages to my friends?
Actually I'm trying to develop a script or a web app to send a similar private message to a big amount of my friends.
I know that FB is restricting these features from some time to now, but I'd like ...
0
votes
2answers
26 views
Access object properties after they are assigned by another function
I'm new to Javascript, and I'm learning how to use OOP principals. I'm stuck on assigning object properties and then accessing them later.
Let's say I have this function that assigns properties to an ...