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
Strophe.js Message handler
I am using Strophe.js and JQuery for a basic web-chat client.
I am connected, and I can send messages (which I receive on other XMPP clients) :
var message = new Strophe.Builder("message", ...
2
votes
1answer
8 views
Google Apps Script: strange “Missing ; before statement.” error
I'm writing a simple script to scrap some reporting numbers. I'm getting the error message "Missing ; before statement.", which doesn't seem to be an accurate description of the issue at hand.
I've ...
0
votes
1answer
18 views
Where to add onsubmit to a form in Javascript
In my HTML I've got a form without an onsubmit event listener:
<form action="contact.php" method="post" id="contact">
...
<input type="submit" value="Send" />
</form>
As a ...
-4
votes
0answers
9 views
Manipulate a single month calendar
Manipulate a single month calendar which should not have any id or class initially to refer.
Now paint all the Sundays with red and Saturdays with orange
Paint the 3rd Wednesday and 4th Friday as ...
0
votes
0answers
44 views
Regex Replace doesn't obey $1
var input = document.getElementById('textinput').value;
var lines = input.split('\n');
var output = '';
$.each(lines, function(key, line) {
for(var iii=0; iii<=key; iii++) //for each ...
0
votes
0answers
8 views
jasny bootstrap file upload not showin file name in the input div after submit
I am using jasny bootstrap file upload with ajaxupload.js.
http://jasny.github.io/bootstrap/javascript.html#fileupload
I used following code. When I click on select file it is showing it in the ...
0
votes
0answers
7 views
ecmascript/javascript to check current status of timer job
I want to show sharepoint notification when user opens a list form using oob. I am basically doing some sync with external list and sharepoint using timer job.
For this i want to check if a specific ...
0
votes
3answers
16 views
Access previous key/value in for-in loop
I am new to javascript so please excuse me if its something obvious.
Lets say I have a for-in loop as follows...
for( var key in myObj ){
alert("key :" + myObj[key] ); // accessing current ...
0
votes
0answers
19 views
How to get c++ return value using javascript of visual studio express 2012
I have a C++ class which has a method used to read a text file and which returns text file value. I would like to use Javascript to read this C++ file and get the return value. I tried many methods ...
0
votes
2answers
23 views
Create a multidimensional array in javascript
i'm not really sure, how to explain this, but i trying to create a multidimensional anonymes array in javascript. I'm new to Javascript and mostly did jQuery stuff so far. But now i need this and what ...
0
votes
0answers
8 views
IDEA warns about using curly braces in JavaScript regexps. Is it ok?
Inside a *.js file I use the following pattern to find a string contains 4 digits:
value.match(/\d{4}/)
Chrome eats it correctly, but Intellij IDEA 12.1.4 shows a warning on the closing '}' ...
0
votes
0answers
44 views
jquery delegated event speed seems impractical
I am using .on() to delegate the events from img to the .jqte_editor. but the issue is the the speed with which it is working is almost impracticle.
$(document).ready(function() {
...
1
vote
1answer
10 views
C# Webbrowser Onclick Javascirpt event handling
I got this code from HTML:
<div id="login-buttons">
<div id="js_login_button">
<a href="#" onclick="$('#login_form').submit()" class="login_button">
<span ...
-1
votes
0answers
13 views
Disable to go back Mobile App Javascript
I have a problem with the back button of the Smartphones.
My app connects to a server and u get a session ID where it needs to work.
So when i log out from the server the session will be deleted and ...
1
vote
0answers
11 views
How to prevent IE10 auto scroll to the textarea on focus, when the textarea is actually in sight
I just found that IE10 ( maybe also IE9 and IE8 ) will eagerly scroll to the cursor place in textarea when I focus a textarea in jQuery, even if the textarea and the cursor is in sight. It will scroll ...