I'm confused about scrollTop().
jQuery docs say it should be displaying a number that represents the scrollTop offset for a given element, but as it does in my own script, on their demo it returns "0".
Setting the scrollTop manually works great, as does using the $(window).scrollTop() command.
Does scrollTop() ONLY return values asso...
I couldn't find in the jQuery document if any of its AJAX methods SAFELY evaluates a JSON response to a $.post.
...
Before starting, note that I have to update a website that is not mine, so I can't redo the whole logic. If I were to do this I would do it differently.
I have a cakephp application with a form with a lot of fields. In this form you can browse for a file and save it asynchronously. Here is how it's done:
<input type="file" name="data[F...
I'm confused about when you should use event delegation as opposed to out-of-the-box JQuery event handling.
I'm always tempted to use an event handler because it's so easy in JQuery:
For example:
$("button#submit").click(function () {
$(this).css("disabled", "true");
});
Event delegation is not really that much more compl...
Hi,
I'm hoping someone can point me in the right direction with regards to achieving this effect from Mozilla Firefox, when clicking on a video thumbnail as I would also like to achieve this with photos as well, i.e, See:>
http://en-gb.www.mozilla.com/en-GB/firefox/3.5.1/whatsnew/
and click on the thumbnail play button.
Thanks.
Tony....
I use jQuery. And I don't want concurrent AJAX calls on my application, each call must wait the previous before starting. How to implement it? There is any helper?
UPDATE If there is any synchronous version of the XMLHttpRequest or jQuery.post I would like to know. But sequential != synchronous, and I would like an asynchronous and sequ...
If my markup looks like this:
<button id="button-1" class="nice">
<button id="button-2" class="nice">
<button id="button-3" class="nice">
and I define the following jQuery:
$(".nice").click(function () {
// something happens
});
How many event listeners are established? 1 or 3?
If I have 1000 buttons instead of 3, should I us...
First off, I know this is a base JS issue, not jQuery. I am at that learning point where I cannot seem to get my head completely wrapped around some scope issues. So I need some explanation.
I've been reading every article/tutorial I can find, but just need some answers. I setup this base code to experiment with (as the actual code is f...
For example, how do they implement the dollar thing?
...
I need to load the jQuery UI files, and would like to do it from Google.
Currently I upload:
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script>
<script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.draggable.js"></script>
<script type="text/javascript" src="http://jqu...
Can i give unlimited length for maxJsonLength?
I am using the autocomplete feature of jquery. When i try to retrieve the list of more then 17000 records(each wont have more than 10 char length), its exceeding the length and throws the error:
Exception information:
Exception type: InvalidOperationException
Exception m...
I have a JS script that works on IE8 compatibility mode, FF, Chrome, Opera, but not IE8 standards mode.
As I think standards mode is more strict than compatibility mode, maybe there's something wrong with my code. How can I debug? Is there something that shows me things that would work in compatibility mode but standard?
Also, in the s...
Is there a free eBook for jQuery? I know, there is a lot of info online, but i think, a book is always better.
...
On my form I need to perform a task where a message appears if a users matches the criteria of being entered in to win a prize. Basically if they have a certain postcode then this message needs to appear. If they don't then the message doesn't appear. I need this to happen when they click submit. I have written a regex for the postcodes....
hi,
I am having a list like
<li style="display: list-item;" id="listChoices">
<label class="topspace">Enter the Choices</label>
<input value="Choice1" maxlength="150" id="Choice1"/>
<input value="Choice2" maxlength="150" id="Choice2"/>
<input value="Choice3" maxlength="150" id="Choice3"/>
</li>
I want to d...
Hi,
I have an AJAX query which makes a request and gets some XML back. The XML contains data for a table and a chart. The table works fine but the chart (for FusionCharts) is proving to be problematic.
I have it working in FireFox by using
// For some reason the .text() is not working on this, one solution is to write it to the ...
This is a kind of a random thing I need. Basically my setup is something like this:
<div class="classname">
<h3>
<a class="anchor_classname" title="some_title">..</a>
</h3>
</div>
The above html segment gets repeated on the page for all existing records.
What I need to do is this: using Jquery, I want to grab the tooltip t...
i am working on a web based chat. I need to implement gtalk like popups for private chat.for this i need to open a popup on the screen of destination user . is it possible to send some notification or open popup in diffrent sessions using session id.
...
neither:
var response = $.ajax({ type: "GET",
url: "http://www.google.de",
async: false,
success : function()
{
alert (this);
}
});
nor:
var response2 = $.get("http://www.google.de", function(data){
alert("Data Loaded: " + data);
}
);
give me an object, ...
Hi ,
How to count the number of options in a select Dom Element using JQuery.
<select data-attr="dropdown" id="input1">
<option value="Male" id="Male">Male</option>
<option value="Female" id="Female">Female</option>
</select>
How to find the number of options tag in the select DOm element since with that i want to open th...