When I try to drag a file into Firefox (using HTML5) the dragOver event only works when I drag the file out of the window. Here's my code:
docOver: function() {
jQuery(".whitebg[name=upload]").show();
},
docLeave: function() {
jQuery(".whitebg[name=upload]").hide();
}
using this plugin (http://www.github.com/weixiyen/jquery-fi...
Oh great StackOverflow, give me guidance as my web application is going astray...
I have just received a requirement to implement spell checking on a web application that we are creating. I know all about FF, Chrome, IESpell, etc. but this one is the client's request.
Given that the only way to implement something like this (real ti...
I have a WCF service that I am calling to using jQuery 1.4.2 (polling it actually every second or so). Over time, the ajax calls slow. Initial request to a method are around ~30ms, but over about a half hour i can watch using Opera's DragonFly (and verified with chrome's tools too) my request times slowly increase. In about a half hou...
I have a c program which outputs a number of lines to another c program which stuffs them in a PHP page which is loaded with AJAX. The problem is that the output is a number of lines, which is fine to look at, but which, when viewed as HTML, lack line breaks.
The initial thought I had was obviously to put line breaks in with the output....
I am having a problem with matching elements in jQuery.
Basically I have list items, and onclick I want to compare two elements to find out its position within the list, ie.
<ul id="someID">
<li>something</li>
<li>something</li>
<li>something</li>
</ul>
// here is the script
var row = 0,
element = $('#someID > li:eq(1)'...
I want to use jQuery's (or something similar) selectable functionality: http://jqueryui.com/demos/selectable/#display-grid. However, I would like to be able to force selections.
For example, for the grid, if a user starts at 1 and drags to item 6 only 1,2,5, and 6 are selected. However, I want 3 and 4 to be selected because they are...
How to apply Tax, discount to subtotal and calculate grand total??
I have these paragraphs with the following ID's
<p id="subtotal">15000</p>
<p id="tax">10</p> // In percentage
<p id="discount">1000</p>
<p id="grandtotal"></p> // Grandtotal will be calculated and displayed here using jquery
The grand total would be 15000 + (1500 //t...
I have a JavaScript from which I am making an Ajax Call to a JSP. Both JavaScript and JSP are deployed in the same web server. From JSP I am forwarding the request to one of the service (servlet) available in other web server using HttpURLConnection. I got the response in JSP, but now I need to pass the response back to JavaScript which ...
When calling something like this
var e = Function._validateParams(arguments, [
{ name: "target", type: Array, elementMayBeNull: true },
{ name: "index", type: Number, integer: true },
{ name: "deserializing", type: Boolean, optional: true }
]);
what does the optional property...
I'm trying to setup Google Maps using the Google Maps API v3 JS code. I've got multiple tabs that when clicked open up an AJAXed page of content without reloading the original page. Each tabbed content contains a map. Below is an example of how I've got the map setup. Please note, the list element here is just an example, each tab contai...
Hello,
I have an unordered list of elements organized in rows. When a user clicks on a row, I want the text in the row to be appended into a separate text field. The issue with my current code is that I if the user clicks multiple boxes, all of the associated text with each of those boxes will be appended into the textfield. I would lik...
Hi,
I developed a Firefox plugin called tellurium-ide for the tellurium automatically web testing framework. Details about the plugin can be found at:
http://code.google.com/p/aost/wiki/TelluriumIde080RC1
The plugin works fine for Linux and Windows, but it has problem to work in Mac OS X.
In Mac OS X, the cursor keeps spinning once t...
Hi I have a bit of code below that creates a button on a html form. When a user has entered some information using the button I want the form to reflect this by removing the button and replacing it with just plain text. I have tried getting the inner html and using divs but nothing is working can anybody help please? I am not looking for...
I have two JavaScript code snippets. These perform specific task when an 'Update' button is clicked.
I would like to merge them. Any help is appreciated.
JavaScript 1: When the button is clicked, it checks if at least one checkbox is selected:
function doUpdate(){
var c = document.getElementsByTagName('input');
for (var i = 0...
Hi,
I was unable to find a solution to the following problem: I want to display any website in an iframe and add elements (divs) to this iframe.
Due to the cross-scripting prevention in the browser this seems to be not possible.
Is there any way to do this?
...
Firefox works fine, Opera is great and Chrome works well also. IE is the issue. It seems to be ANY version of IE.
The site is http://s91532.gridserver.com and no matter where you click, it brings down our javascript menu from the top.
When you hover over the images it shows you the correct path and everything but when you click it just...
I have an asp button (the code is below). I have the event handler working, but I want to pass a string (which is the result of a javascript function) into the event handler function. Is there a way to do that?
<asp:Button runat="server" ID="Button1" OnClick="Button1_Click" Text="Run" />
...
Hi
I am using this plugin. http://jquery.malsup.com/block/#overview
However I would like this blockUI to only show up say if the ajax request goes more than 1second. If no show nothing.
Is there a way I can do this?
...
I'm building a large scale web application. It will grow in the future so I need a good back-end and front-end architecture for my application. at the back of the site, I use Zend Framework so the architecture is OK for me. But at the front, working with javascript and ajax without having a good architecture makes later changes hard and ...
I am retrieving some JSON data with the following function. It is called when an element is clicked and the data is used to create a table, populate the cells with images and append the table to a div.
function LoadImagesByCategory() {
$.getJSON("/Service/GetJson.ashx?data=images", function(data) {
jsObjectData = data.ImageC...