It's sort of been 'against my religion' to poll a condition using a timeOut or similar technique. I'd so much rather handle an event than continuously search for evidence that an event occurred.
But, due to spotty support for the onHashChange event, it was suggested I use a plugin that polls the window.location property every 50ms.
Are...
I have a page where I want to animate the sorting of a list of block elements.
<div class="container">
<div class="content-block">
....
</div>
<div class="content-block">
....
</div>
<div>
I want something similar to the sortable elements provided by jquery ui but it will animate based on an event not based o...
My goal is:
When for is submitted:
a validation on form is made : OK
an ajax is called to see that username and password do match : OK
if they don't match, display an error: OK
if they match, then REALLY SUBMIT the form: NOT OK.
Infact the trouble is, I cannot submit the form since there is a jquery submit event on it!
function fo...
how can i make a Google Internal Site Search Script by JavaScript
...
I have an asp.net login control placed within a simple javacript popup modal that I developed. I then have the modal in an updatepanel so that I can get a response from the server on successful login. When the LoginError event fires I want to call a javascript function that displays the modal popup; as on the button press, the popup di...
var newlist = list.slice( 0, pos ).concat( tasks ).concat( list.slice( pos ) );
This makes me shudder just looking at it.
...
Hi guys,
I have problems with jquery accordion. It seems quite tricky.
The first accordion, project1, is working great (thanks to Nick Craver) but 2nd & 3rd an so on does not work. I do not really know if I should use .filter.
Here is the code & example page: http://jsfiddle.net/THjgV/2/
Thank you.
...
I have a JavaScript that deals with with detection whether the page is in frames or not. I used top.frames[] etc. and everything works fine.
In this script I noticed that I can use "window" or "self" interchangeably and everything still works. Is "window" same as "self" when used in HTML page?
...
I think i'm mainly having a brain fart. I just want to fast forward a Date() until a specific day of the week and then get the Month, Day, Year for that.
E.g. today is 09/03/10 but i want a function (nextSession()) to return 09/08/10 (next wednesday).
How would I do this? The best thing I can think of is add a day to setDate() until ge...
The first commented line below is working with a hardcoded ApplicantId, and all I need is to make it work by passing the current ApplicantId column on the same gridrow.
I've tried for many days now, and something like the second commented line does not work for me.
Please help.
<asp:GridView ID="GridView1" runat="server" AllowPaging="...
Hey again all :)
I created my own jQuery plugin in 1.4 and now I need a small amount of help.
$.etrade = function()
{
}
I need so I can build code like this
$.etrade = function()
{
this.var = 'setting';
this.subfunction = function()
{
};
}
when I take function from my plugin I need to use it like this:
$.etrade....
I want to source a javascript file from facebook http://connect.facebook.net/en_US/all.js
The organization I work for has a firewall that blocks access to Facebook, it just goes to an html page that says "Access Denied blah blah blah"
I want to be able to put a javascript src tag <script src="http://... "> </script> and detect and s...
I'm using jQuery.scrollTop() to get the position of a scroll bar. I'm trying to create an animation which will indicate to a user where they are in a list of content. It's a list of names, and I want to have a big "Q" hovering over the list as the user scrolls over the Q's, etc.
It seems that scrollTop() gives accurate information only...
In Javascript, is there a way (that survives internationalization) to determine whether a character is a letter or digit? That will correctly identify Ä, ç as letters, and non-English digits (which I am not going to look up as examples)!
In Java, the Character class has some static methods .isLetter(), .isDigit(), .isLetterOrDigit(), f...
<script type="text/javascript">
var fixed = 1;
var sizew = 122;
var sizeh = 160;
/*
* function crop()
* ajax function which returns the cropped image
*/
function crop() {
$.ajax({
type: "POST",
dataType: 'json',
url:"functions.php?action=crop",
data: {x:...
CSS
#acc-close-all, #to-top {
position: relative;
left: 951px;
width: 29px;
height: 42px;
margin-bottom: 2px;
display:none;
}
#acc-close-all a, #to-top a {
position: absolute;
float: right;
display: block;
height: 42px;
width: 29px;
overflow: hidden;
display:none;
cursor: pointer;...
I have a custom UI control which has a JavaScript class written around the AJAX.NET framework. It inherits from the Sys.UI.Control. The control itself is a UserControl. In the render method I wrap the control in a span and give the span's id the ClientID of the user control. This way I can do this later on:
var control = $find('<%= ...
When I run SquishIt in development mode everything works fine. When I put it into production mode I am getting the 'missing ; before statement' error in Javascript. I've tried removing the offending javascipt files, but the error moves down to the next one.
Any idea's?
...
I am writing a task checklist using javascript and jquery for my work. What happens is the page uses AJAX to fetch data from various tables and put them all together. That part works fine.
The problems start to arise when the program tries to append the data to the numbered DIVs. The function I have takes in two arrays, one for the ids...
Hi,
I (as a complete JS newbie) am trying to port a Greasemonkey script to Android. The only problem so far seems to be the call to GM_xmlhttpRequest or XMLHttpRequest (the script tries to use one of them according to the browser it detects).
Is there any known alternative API on the android browser?
Thank you in advance!
...