I have a standard HTML input that I want to run JavaScript code when it loses focus, sadly my Google searches did not reveal how to do this.
To make it clear, I'm looking for a way to do this:
<input type="text" name="name" value="value" onlosefocus="alert(1);"/>
...
Hi,
I need to show a div over the some items in a sortable list.
This div shows information and needs to be use as handle for the sortable item.
The problem is that this div is located outside the items (at the end of the body), and since sortable handle option only looks for child elements (because it uses a .find() to look for) it's ...
I have a small problem with the SWFObject on my web page. The behavior is that when the flash player is covered up by another tab or minimized it does not start to play the audio until the tab gets focus again and is visible. It is using the 2.1 version of SWFObject from http://code.google.com/p/swfobject/. In order to verify this beh...
When I test my Silverlight 2 app in Firefox, when Silverlight has focus, I have no problem receiving every key press via the Page.KeyDown event.
When I test it in Internet Explorer 7, I can only get keyboard events that the browser doesn't already handle. HOWEVER, I can override those same keyboard events in javascript.
For instance, C...
Using Javascript, is it possible to detect when a certain element is no longer visible, such as when the user scrolls down far enough or when the browser is minimized or covered with another window? The overall goal is to swap out an advertisement only when the current ad is not visible to the user.
One idea would be to have a very sim...
Hi I would like to do the following:
Use JavaScript to stop the update panel from "updating" when the browser is inactive, and restart once it’s active again. I was looking at: Inacivity with JavaScript. I was hoping that I could use this to accomplish what I want; can someone point me in the right direction? Thank you very much!
[ED...
Duplicate:
Best way to obfuscate an e-mail address on a website?
Effective method to hide email from spam bots
What are some ways to protect emails on websites from spambots?
What is the best way to prevent spammers from getting the email address from your mailto links? I'm under the impression that javascript could be ...
Duplicate:
What are some of the pros and cons of using jQuery?
Should I avoid using a JavaScript library while learning how to write AJAX client code?
I've read it so many times... "I'd learn JavaScript before learning something like jQuery" - but is this really necessary for every situation? Sure, some people like to kno...
I have a form which is a simple CRUD.
I am trying to display a cool looking success message when user enters or deletes a record. I've seen this a lot around the web.
I am very new to jquery. does anyone know any examples that would show how to do this?
Basically a div that would slowly dim out.
...
Hi,
For some reason firebug is not showing that litte red 'X' icon in the bottom right corner anymore in my localhost development.
Is there a setting that I might have somehow changed?
I purposely make an error in my .js file and I get nothing!
...
I am trying to use the getJSON function in jQuery to import some data and trigger a callback function. The callback function doesn't run. However, if I try the same thing with the get function, it works fine. Strangely, it works with the get function even when I pass "json" as the type. Why is this happening? I tested the following file ...
I'm new to JQuery and web development in general. I'm trying to load some data from an XML file and build an unordered list. I've got that part working, now I'm trying to use the TreeView plugin so I can collapse/expand the data. The data is loaded like this:
$(document).ready(function(){
$.ajax({
type: "GET",
url: "...
Following up on my question about jQuery.get() I was wondering if there is a list of DOM properties and methods that aren't available in jQuery that can only be accessible if you were working with the raw DOM object (i.e. $("#someID").get().scrollHeight; )
...
I have some client-side JavaScript that sets form fields. When the page posts back, those fields are reset.
Why is this? Aren't the field values captured and put in the ViewState when the postback occurs?
EDIT: When I break the debugger on Page_Load(), before any code executes after the postback, the form field values are empty.
...
Hello,
Does JavaScript have a built-in function like PHP's addslashes (or addcslashes) function to add backslashes to characters that need escaping in a string?
For example, this:
This is a demo string with
'single-quotes' and "double-quotes".
...would become:
This is a demo string with
\'single-quotes\' and
\"double-qu...
I'm doing a jQuery multiple selector find:
element.find("fieldset, input[type=hidden], input[type=text], :radio")
and in Chrome version 1 it gives this error "INVALID_NODE_TYPE_ERR: DOM Range Exception 2" on line 722 of jquery's selector.js
aRange.selectNode(a);
in context:
function(a, b) {
var aRange = a.ownerDocument.create...
I need a PHP script to decrypt the RSA encrypted string generated by this JavaScript library - http://ohdave.com/rsa/
I'm either missing something or I don't know, but I don't remember what was the last thing I looked for so long after and did not find :(
Thank you in advance for your support,
Constantin TOVISI
...
I have recently started upgrading my website to send and receive requests/response through ajax. I'm using the protoytpe library.
My exisiting html code contains certain img and input tags that aren't closed.
When i try to update the content of a element (say "div") with such html code by using the innerHTML property, i get parse error...
In my current application i need to copy the content of one table into another... With setting innerHTML it works perfectly in FF... but not in IE8...
Here is the Code i used to copy in FF:
getID("tableA").innerHTML = getID("tableB").innerHTML;
// getID is a custom function i wrote to provide a shorter version of document.getElementByI...
I use Ext.form.ComboBox in very similar way as in this example:
http://extjs.com/deploy/dev/examples/form/forum-search.html
What annoys me is that when the ajax call is in progress it shows loading text and I cannot see any results from before.
Eg I input 'test' -> it shows result -> I add 'e' (search string is 'teste') -> result diss...