Short version: I'm extending a jQuery object function that is intended to take 0-3 arguments and pass them off as the second to fourth arguments into jQuery.animate. Except, I want to isolate the callback and put in another function call at the end of it.
I'm extending the jQuery library the ordinary way, through jQuery.fn.newfunction...
I'm trying to find a way to minimize the number of Selector look-ups. My issue is that I have a variable defined with base $(document).ready() that needs to be updated inside functions nested inside $(document).ready()
Consider this example (EDIT: I updated it to be more explanatory)
<script>
//var $current_page = $home_page; **<--I ...
I am not sure why I get the js error
ResponseText is not defined
in my callback function()
$("#orderListContainer").load("OrderHandler.ashx?action=" + action, function(responseText, textStatus, XMLHttpRequest)
{
alert(ResponseText);
});
...
Sorry for such a basic question, but I need to know how to add a class to two divs, #left-arrow and #right-arrow when I hoverover #leaderboard.
I understand I can use the call hover(), but I'm unsure how to implement it to add a class on another element.
I'm definitely a beginning with Javascript, so the more specific on how to implem...
Hi folks,
I have a situation where I want to confirm a user is still allowed to edit a page when the page gets focus. This will prevent them from giving up editorship in one tab and then returning to edit in the original tab, or giving up editorship and then using the browser BACK button to return to the page where they could still edi...
Hey all. I'm using the jquery star rating plugin by fyneworks. The problem is that about 5% of the time (and on the initial page load), the stars stack vertically instead of horizontally!?
When you refresh the page, they are fine - which is really odd. Please see the page here:
http://bit.ly/byhFLu
Any suggestions would be greatly app...
I have a content pane area that is a list, which slides to another area on click. So second area starts out hidden. I have an image button that I want to "wrap" on the edge of the pane, like the image here. But I can only make it work without having overflow set to hidden. But then of course both panes show at once. Is there a way to do ...
Im using the color picker here: http://blog.meta100.com/post/600571131/mcolorpicker
Im using code shown in example 3.
What I want to do is allow the user to close the colorPicker DIV if they choose not to pick a colour.
I managed to add a close link in the top left corner and add a jquery.css command to display: none the div which d...
So i am using the jQuery Min Tools "Overlay" plugin, and im thinking that i over thought this entire process..
I have an image map (yes i still use image maps). with its coords for 3 separate areas:
<map name="Map" id="Map">
<area shape="poly" coords="7,13,146,14,147,68,116,68,117,123,4,124" href="#" rel="#know" />
<area s...
I want to know if I can break this down to be less code.
I am setting slidetoggle to 4 different parts of the page, each div has its own id.
I hope it can be slimmed down to a few lines of code, since each div has the same slideToggle speed of 200.
Here is the code:
$(document).ready(function() {
$('#our-future-intro-slide').click(...
I'm looking for a jquery (or other javascript) plug-in that shows and animates numbers like a high-score on a gaming machine, similar to this:
Is there anything like that?
...
Hey guys,
First time on the forum. Hopefully someone can ease the pain I'm having integration jQuery and AJAX. Before I explain the problem it's probably worth explaining what I'm trying to do as there might be a better solution.
I have a page on a test site that will move over to a CMS driven site in a few weeks: http://lts.cheltenham...
I am trying to add a little animation with jQuery to my navigation bar. Right now I have the sub menus of the nav bar changing from display:none to display:block with the css :hover pseudo-class. As I said, I am trying to do this with jQuery, so I need to create a selector that was similar to the one I used in my css. The selector I was ...
Hello,
I have a page with two divs on it. This page looks like the following:
<div id="waitDiv">
<div id="waitText">Analyzing...</div>
<img src="wait.gif" />
</div>
<div id="finishedDiv" style="visibility:collapse;">
<div>You may now proceed</div>
<div>Please remember that....</div>
</div>
<script type="text/javascript">
$(...
Hello all.
I am building a simple decision tree with jQuery. I have it running ok, but I would like to add a little more functionality. Currently I have this:
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script>
$(document).ready(function() {
$('ul').hide();
$('h3').css('cursor','pointer');
$('h3').click(funct...
what is your best recommendation for table sorting with jQuery
i have a very simple, manually updated table, 4 columns
Facility Name, Phone #, City, Specialty
i want the user to be able to sort by Facility name, and City only.
there are so many out there, with so many unnecessary bells and whistles...
your thought?
...
I am updating one of my sites from asp.net with jQuery UI to use master pages.
Here is a snippet of my original code, which works w/out master pages, but not with:
$('#myCancelEventDialog').dialog({
autoOpen: false,
width: 500,
buttons: {
"Cancel This Event": function () { __doPostBack('btnCancel...
Has anyone else had this problem or know of a workaround? Here's a quick example of a block of code that doesn't work in IE8, but is fine in FF.
HTML:
<h1>Toggle Test</h1>
<a onclick="toggleme();">Click here</a>
<table>
<tr><td>Some visible text</td></tr>
<tr id="hidden" style="display:none;"><td>Some hidden text</td></tr>
</t...
My team is currently working on a substantial update to an existing ASP.NET 3.5 application which uses the Ajax Control Toolkit on virtually every page. We've found that in many cases that its use is unwarranted (clearly a previous developer decided to "Ajaxafy" everything), and a richer - and simpler - experience can be found using jQue...
Hey I trying to make a sort of slider but having a problem getting the loop to 'reset'. The idea is to have the elements animated to fade opacity and when finished make them hidden so that the ".is(:visible)" won't be triggered after the loop has been reset. However the callback function is affecting the elements that are having their op...