Is it possible to run the browser's in built spell checker on divs which aren't contenteditable? The below code works for checking spelling, but the div must be contenteditable and the spell check is only executed once the div is put into focus. <div
This question already has an answer here: How do I return the response from an asynchronous call? 31 answers Lately I have started experimenting with Node.js and Express.js. I am building a micro-application which takes in the data from Mongo Db and
Please, explain how can I change 'selected' property of option? E.g.: <select id="lang_select"> <option value="en" selected="selected">english</option> <option value="ar">العربية</option&g
I have added check-boxes dynamically to all the element and successfully added the functionality to select all checkboxes but not able to do the selection for the parent child checkboxes in tree structure means if i select the "Asia" it should s
I have an editable div and applying it CKeditor. I want spell checker within. I have tried one plug in from :http://www.webspellchecker.net/samples/scayt-ckeditor-plugin.html It gives following error Error parsing encrypted customer ID (Invalid data
can I bind all the available events to an element $('body').on('all available events', '.element', function(e) { if (e.type == 'click') { // do something... } else if (e.type == 'change') { // do something else... } }); I do not want to give them ind
I have two method in my code behind one returns an int array and the other returns string array. I want to use these two array to populate the google chart data table. I do not have any experience with Json or AJAX however I found a relatively simple
In a view of a Play 2.4 application I would like to iterate over some data, and create Javascript code for each iteration. The Javascript generated seems ok, but impossible to trigger the event when I click on the button. @for(site <- sites) { <div
I upgraded my phone to Android 4.3. When I use the default Android browser to bring up a page on my website that uses xmlDoc.evaluate("//requestID", xmlDoc, null, XPathResult.ANY_TYPE,null); to select nodes, I get the following JavaScript error:
How shall I delete objects in Javascript to properly destroy them (call destructors if there are any?) and prevent memory leaks? I've seen two ways: delete obj; and obj = null; But even after reading this I have not understood what is really the diff
I have an array of versions: var versions = ['xs', 'sm', 'md', 'lg', 'thumbnail']; I want to get all the image stored in this array that do not contain any of these suffixes. Here is an example of the array of images: { "files": [ "/public/
One function is not working on IE8 but working on google chrome and firefox. XmlDom contain xml data $(XmlDom).find('Message').each(function(){ if($(this).attr('id')==id) { msg= $(this).find('messageText').text(); } }); plz help here is the sample da
I have an image map and when the user hovers over the map I want to fade-in a small div with informations on the hovered content, then upon the mouse leaving the map fade-out with a two second delay.It's possible to do a fade effect by animating opac
I need to execute some code before leaving the browser, I implemented this: window.onbeforeunload = function () { return 'Are you sure?'; }; window.onunload = function () { releaseLocking(); }; It works pretty well with Google Chrome. When closing GC
Question 1: Why do I need to asynchrously load my JavaScript files in a web page? I can see the rationale for it on the server side, but if I know all the files I need to load in the client, why shouldn't I concatenate all my source files into 1 file
There are three fields(first name, Last name & age) displayed in text boxes. Each field is displayed in separate div's. There are 4 records. On clicking a sort button above each field the div records should be sorted based on the data type of the fie
I am trying to make jQuery UI widget work in my web application I got all the files from original demo, and basically did everything I could so the code and files were pretty much the same as in demo version. And all the time get this error: Uncaught
I have an application written in C that captures an image via webcam,does some processing on it,and then sends the resulting image through socket to a client application,also written in C,in another computer. I want to do something similar but using
I have following codes to remove child nodes of a div node. Are both of these codes correct? while(innerWindowContentBox.hasChildNodes()) innerWindowContentBox.removeChild(innerWindowContentBox.childNodes[0]); Other is innerWindowContentBox.innerHTML
I'm trying to get the length of the characters that I attain from innerHTML and it's kind of come down to last resort, but can't seem to find a more efficient way as the data is inside a slider that I'm trying to use to get the lower value and higher
For example: var date = new Date(); Would date be relative to the users local timezone?Yes, in fact it would be identical to the user's own computer time. It doesn't take the information from the server or anything, but from the user's own computer.
In my form I add one text box ($("#seltxt")) and one div having text inside. when I select the div text comes in a text box this works fine. Now i added function keypress in the #seltxt in key press event I am copying the textbox text to div. Bu
Is it possible to move the position of a scrollbar to diffrent part of the page? Or is there any other solution for this? <div style="overflow: scroll; overflow-y: hidden"> </div> i want the scrollbar to be in another component inste
I want to check camera existence before showing the two source types when taking a picture in my phonegap application. For example, iPad 1 doesn't have an Camera, therefore I don't want to show the popup to select source type from Camera and My Photo
I have the following loop which generates a little snippet of html: for (var i = 0; i < 5; i++) { test_html += 'some text here<hr />'; } this will create the html some text here<hr /> some text here<hr /> some text here<hr /> so
This is driving me mad: // Get the comment template var comment = $('#CommentTemplate').html(); // Delete all entered text $("textarea#NewComment").val(''); // Get comments returned ID var ThisCommentsID = data.substring(2, data.length); var d =
I'm creating a site which uses Cufon and is particularly heavy in terms of page-weight due to a large amount of Javascript. Therefore I'm trying to load in the script asynchronously with head.js ( http://headjs.com/ ) like so: head.js("http://ajax.mi
I'm already tossing around a solution but as I haven't done something like this before I wanted to check what SO thought before implementation. Basically I need to modify an existing web based application that has approximately 20 users to add push n
Is it possible from a Javascript code to find out "where" it came from? I needed this to provide scripts that could run folder-agnostic, e.g.: http://web1/service-a/script.js http://web2/some-folder/service-b/script.js And they're linked in: htt
In Python one can get a dictionary of all local and global variables in the current scope with the built-in functions locals() and globals(). Is there some equivalent way of doing this in Javascript? For instance, I would like to do something like th