Let's say that I have several animations running at once, and I want to call a function once all of them are finished.
With only one animation, it's easy; there's a callback for that. For example :
$(".myclass").fadeOut(slow,mycallback);
Trouble is, if my selector finds several items, the callback will be called for each of them.
A ...
simple problem with a simple question. I have a string, in C# i can put it through a uri and access LocalPath
How do i get LocalPath in jquery or javascript? ( LocalPath: "/asas")
{http://z.com/asas?sadfdsgfg}
AbsolutePath: "/asas"
AbsoluteUri: "http://z.com/asas?sadfdsgfg"
Authority: "z.com"
DnsSafeHost: "z.com"
Fragment: ""
Host:...
Hi, I have a link on my page that when clicked opens up two tabs below, I then want it to scroll down to an anchor on the same page using the anchorSlider plugin.
The problem I'm having is when I click my link, the tabs open, I have the click the link again to make the page scroll down.
Any idea how I can make it do both functions on...
Hi All;
my textbox value = "1000000"
How To make texbox index 2 add ".";
output "1.000000";
...
I have a page which has several <canvas> elements.
I am passing the canvas ID and an array of data to a function which then grabs the canvas info and passes the data onto a draw() function which in turn processes the given data and draws the results onto the canvas. So far, so good.
Example data arrays;
$(function() {
setup($("#ca...
In a htmlpage using jquery or javascript how can the following be achieved?
User types in a question in a textarea and press on enter button ,then the same question should be displayed dynamically in the page below the textarea and the user can enter as many questions.
And when the user is done the page is submitted through a submit ...
I'm having a problem with the DatePicker implementção with jqGrid.
I got it using editoptions:{dataInit:functiondate} for the DatePicker is instantiated.
User clicks on the field and called datepicker and perfectly.
When the datepicker is appearing and click directly on the close button of the form.
The form closes and the datepicker w...
How can i get current date from server-side (such as new Date from server date time not from client'computer date), when i use jQuery datepicker?
Do i need get time from server and pass it to the js code? How can i do it. i am using classic asp
...
I have this code:
$li = $("li", this)
Which is selecting all of the li's in my code. This works fine however I want $li to exclude the li's that are within a submenu.
<ul id="navigation">
<li><a href="#">blah 1</a></li>
<ul id="subnav">
<li><a href="#">sub 1</a></li>
<li><a href="#">sub 2</...
Hello, I am inexperienced with jquery, and I'm having some trouble with the slideUp() and slideDown() animations.
I have been working on a vCard design similar to Tim Van Damme's site. here is the link to the design: link. When you click on the portfolio or work button, the text or image appears first before the div finishes sliding do...
Why does this empty the text immediately (ignoring delay)?
$('#error_box_text').html('error text').delay(5000).html('')
#
jQuery 1.4
...
So I have a script which returns a price for a product. However the price may or may not include trailing zeros so sometimes I might have:
258.22
and other times I might have
258.2
In the later case I need to add the trailing zero with jQuery. How would I go about doing this?
...
I made a very simple jQuery img rollover function inspired by this one:
http://www.smileycat.com/miaow/archives/000224.php.
It just check all the imgs that contain _off in their name and swap them with an img with the same name but "_on" instead of "_off".
Since I can't use background imgs in my layout, I feel that's an handy solution....
Hi all,
How can I test if a mouse is within a given div? I know how to use events to do something when it occurs but is it possible to check it on pageload only?
What I want to do is smething like:
if(mouse is in specified div) {
check = true;
} else {
check = false;
}
Thanks,
Denis
...
In JQuery, how we can pass entire $(this) to a functions? Possible?
...
hello.
I have a select element.
<select class='cSelectType'>
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="4">four</option>
<option value="5">five</option>
</select>
i can by jquery set option value selected like this:
$('.cSelec...
Hi,
Im having a little problem with jCarousel ( http://sorgalla.com/projects/jcarousel/ ).
Everything works fine in Firefox and IE, however in Safari the carousel displays but the next button is inactive when there are actually more elements. Firefox and IE show the next button as active.
Is there a common fix for this or a known bug ...
When users click on an element in my webpage, I would like to call a javascript function that reads the values of a few text boxes on the page, wraps their contents as json where the keys are the ids for the text boxes and the values are the contents of each text box, and then posts the resulting json to a url.
I would then like the sa...
Hello!
Is there a way to kill the unload function with javascript(jquery)?
I am looking for something like this:
window.onbeforeunload = function(){
confirm("Close?")
}
or in jquery:
$(window).unload(function() {
confirm("close?")
});
Now, on window unload I get my confirm alert but it will continue in any case. Clicking c...
In another question's discussion, I became aware of intercepting clicks and updating area without refreshing the whole page. Problem is, the following code seems correct to me and I dont receive any errors but data taken from another page is not displayed at all.
Please advise.
main page
$('ul.thumbs li.pagination a').live('click'...