This is a bit of a tough question to ask. I am using asp.net validators, but I want to tie them to a simple click event which I bind with jQuery.
I have found that I can use:
ValidatorValidate($("#<%= rfvFirst.ClientID %>")[0]);
to fire the rfvFirst validator, but I do not know how to get the actual false return somewhere to tell me...
In the browsers using HTML, Ajax, or YUI (JavaScript in general) what are successful and preferential implementations of the 'please wait we are working on your request'?
Additional context is that the Web Application I work on has a few requests that can require significant IO/CPU time (10 - 30 seconds) and has the need to communicate...
I have a html table and I want to freeze the header row th tag for scrolling the data. How I can do that? Does I need to use the Dom?
Thanks !!
...
I have one form on a page which has a bunch of sibling tags. I'd like to retrieve the text between each h5 tag using jQuery. I'd preferably like to have a callback or be able to do this in a simple looping construct where I can grab the text and make meaningful HTML of it, then insert the final string somewhere else.
How does one do th...
I am very puzzled about this code:
var closures = [];
function create() {
for (var i = 0; i < 5; i++) {
closures[i] = function() {
alert("i = " + i);
};
}
}
function run() {
for (var i = 0; i < 5; i++) {
closures[i]();
}
}
create();
run();
From my understanding it should print 0,1,2,3,4 (isn't this the conc...
Has any one used this? I don't have a large background in Javascript and this lib looks like it may speed things along.
www.pyjs.org
...
It's currently not so slow as to make the site unusable, but in mobile safari on the iphone there is a noticeable lag. Is there a simpler way to do this?
"Find div.items that have an empty div.video_guid"
...
I have an annoying bug in on a webpage: "date.GetMonth() is not a function". So I suppose that I am doing something wrong since somewhere and the object date is not an object of type Date. How can I check for a datatype in Javascript? I tried to add a if(date) but it doesn't work.
function getFormatedDate(date) {
if (date) {
...
so I have a div of class 'example'
in javascript i have:
var selectWithThis = 'example'
Using this variable how would I write a $() selector to select this div?
...
I have a form which gets introduced via XHR and I need to be able to bind an event on it, for submit. I've downloaded the jquery.form.js plugin. What's the best way to perform a late binding so that I can do something such as:
$(document).ready(function() {
// bind 'myForm' and provide a simple callback function
$('#m...
In JavaScript for PDF there is a method used to get the Nth word on a page.
So, what is the token used by getPageNthWord() that separate words?
...
I want to set focus on the first form element in a div, either using something that Prototype gives me, or plain javascript. I have a reference to a div which contains the form elements. I don't know if the first form element will be an <input>, <select>, or <textarea> node.
I want to do something like this:
$('parentDiv').down('text...
Some background. The project is a VS 2005 Web Application using ASP.NET AJAX Extensions 1.0.
Question, How can I reference the JavaScript files that are used by the Scriptmanager control, without using the ScriptManager control or how can I load the ScriptManager JS files earlier (I don't think this is possible as the ScriptManager has ...
I'm trying to control an instance of the JW FLV player player using jquery.
What I want to do is have a series of links which when clicked load an XML playlist into the player.
By following the tutorial here I've gotten things working basically as I want them in terms of functionality, but even I can see that it's ugly as sin, as at t...
I'm having issues parsing dates after 01/01/2000. The results are being returned incorrectly. Basically, 1999 is getting parsed as the year 1999, when it gets to 2000 it is parsing it as 0100, and then 2001 as 0101, etc. Here is the test code to illustrate this issue:
<script type="text/javascript" language="javascript">
// functio...
Need: Find a way to add a valid tag/attribute/property to a normal html control.
What I have is some javascript/jquery adding a click event to a link that will show or hide a div. The idea is to do this using $(document).ready and an anonymous method to create the method called by onClick at the page load. When clicked, a div will be ...
Hi there!
I'm completely cluesless with that one:
On http://wurzelimperium.de Opera stopped saving passwords via Wand. It's just not triggered anymore. i've tried changing the form by providing a real "submit" inputfield that should be activated via javascript. this doesn't help, any ideas?
...
Hi,
I have a question about some sample code shown on page 55 of this book
var coolcat = function (spec) {
var that = cat(spec),
super_get_name = that.superior('get_name');
// Can I replace the line above with the line below?
// super_get_name = that.get_name();
that.get_name = function (n) {
...
Yeah, basically I have this:
Effect.ScrollTo("bottom", { duration: 5.0 });
So what I want is to stop this effect while it's scrolling whenever I want to.
Any help?
...
In my C# code-behind for an ASP.Net app, I have a variable being set and then I want to set a Javascript variable equal to it so I can do some work with it client-side. This C# variable is set in an event handler and it changes fairly changing fairly often.
So, my event handler is doing only this...
int scale = (int)myObject.Scale;
Pa...