I am using offset() with the jquery slider and I am so close to achieving my goal, but it is off slighty. I have it animating using animate to the top CSS coordinates but if you check out: http://www.ryancoughlin.com/demos/interactive-slider/index.html - you will see what it is doing. My goal is to have it fadeIn() and display the value ...
I have a search page where the top of the page is search criteria with a search button. The bottom of the screen is the results from when the search button is pressed. In this case I have 6 different search criteria the user can input. I would like to bundle all the criteria into one class so my Controller action can read the Json ...
I have a complicated background image with a lot of small regions that need rollover illustration highlights, along with additional text display and associated links for each one. The final illustration stacks several static images with transparency using z-index, and the highlight rollover illustrations need to display in one of the in-...
I am working with a jquery plugin that looks like this:
(function($){
var options;
$.fn.main(opts){
options = opts;
//rest of code
}
$.fn.otherFunc(){
//does something with options
}
}(jQuery));
The problem here is that if i use this plugin 5 times on the page, the options variable gets overwritten, ...
I have a site where I have a lot of outgoing links and I would like to count the clicks to those outgoing links.
I need to keep the links need to be visible. (as in, no Digg like links or redirects).
So I was thinking of hooking some jQuery function to all outgoing links. This function then calls a PHP script via AJAX that updates the ...
Since I use jQuery 1.3+ all except one timed test is using that. The other is plain javascript I found from back in 2000. I stopped going that route as it was taking around 150 seconds to run the test. I've read quite a few jQuery optimization web pages that relate to selecting a single element. A '#id' is the best case for using tha...
Hi folks,
Facebook have a great TextboxList component.
This has just been ported (from scratch) into MooTools.
Does anyone know if this exists in jQuery?
edit: ahh! autocomplete was the keyword i was missing. cheers!
...
I have the following code:
$("#Table1 tbody").children().each(function(e){
$(this).bind('click',
function(){
// Do something here
},
false)
});
The Table1 html table has 2 columns; one for Names and one for a <button> element.
When I click on a table row, it works fine. When I...
I need to create an analytics solution for a client. They have a large number of DOM manipulations through JQuery/Ajax. Besides making a call to a function for each DOM manipulation, is there any other efficient way to log DOM Events?
I need to log each DOM manipulation so that we can run analytics on that data. There are many inst...
I'm using JSONP to get data from a server.
The more typical method of dealing with this is to get the data and then have the javascript determine what to do with the data (updating a div, etc)
However, instead of responding with simple data, the server is responding with the actual jQuery code that needs to be executed. How can I ma...
On Safari 3.2.1, I observe that if a textarea is highlighted as the active control, and an object above it resizes (e.g., an img loads) there are fragments of highlighting left behind after the textarea moves to accommodate the new layout. How to fix this?
...
I'm writing a little jQuery extension that prevents a user from double clicking on a link.
$.fn.preventDoubleClick = function() {
return this.click(function() {
var $t = $(this)
, retVal = $t.data('active') // check the internal flag
;
if (retVal || retVal === undefined) { // if ON...
...
I've just been working on a jQuery extension described in this question, and have now run into another problem: I need to make sure that my particular event handler runs before any other event handlers which may already be on an element.
When adding events, it appears as though they get pushed to the back of a queue, whereas I really ne...
based on the flat menu here:
http://www.filamentgroup.com/lab/jquery_ipod_style_and_flyout_menus/
i have a form that allows the user to select between 3 options and return the results.
<script type="text/javascript">
$(function(){
// BUTTONS
$('.fg-button').hover(
function(){ $(this).removeClass('ui-state-default')....
Update: this question refers to an older version of Zend Framework. To see how to integrate jQuery with a Zend Framework 1.9.4 (1.8+) application refer to this question.
I think I understand the basic concepts, but I must be going wrong somewhere. I'm trying to integrate jQuery, jQuery UI, and jQuery Themes into my Zend Framework appl...
I'm using jQuery UI sortable plugin with the cookie plugin to set and get the list of two sortable lists.
I found this piece of code to set and get a cookie: http://www.shopdev.co.uk/blog/sortable-lists-using-jquery-ui/#comment-6441
It works as I want to for one list, but not two (I've made the changes listed in the comments but fail s...
Hi,
after trying much more on cascading drop down I decided to do it by Jquery.
This is in my cityController
public ActionResult States(int id)
{
AcademicERP.Models.AcademicERPDataContext dc = new AcademicERPDataContext();
var states = from s in dc.States
where s.CountryID == id
...
I like jQuery and am using ASP.NET. I know you can get round ID mashing a bit using the ClientID but this dosn't work well when are farming you script out to sepearte js files.
The only way I have used round this is to store the ClientID in a javascript variable on the page then use this id in the seperate js file. But this is less than...
What I'm trying to do is to create a table pager control using jQuery.
It contains lots of links and spans. I've managed to do this with plain string concatenation, but I can't believe that jQuery can't make this more elegant.
I can't use jTemplates here since the generation has quite a bit of procedural logic.
Question: is there a way ...
Hi, I am using $.getJSON(url,data,callback) method.
and from url it returns a JSON object of list type (e.g. states.ToList())
so how can i read that object?
states.ToList will have records of ID, and Name,
and I want to bind it with select tag (for selection list at client page.
...