jquery

Jquery 1.4.2 IE - ajax "Expected ;" error

I have autocomplete, that simply calls $.ajax. And when its getting result, it tries to evaluate with globalEval function. That making <script> {"success": true} </script> Than IE says "Expected ;". Near I have another ajax call that is working good and without globalEval executing. What can cause this? ...

Creating a floating button

Hey all, I'm working on a Firefox extension and am out of ideas on how to implement a floating button. I need a button that is overlayed on my page that I can show/hide and dynamically position just about anywhere on my page. I thought I could do something like a fancy CSS tool-tip except replace it with button functionality, but that i...

jQuery slideshow: how do I modify this code to show a custom pager per slide ?

Right now the code is spitting out 1 pager item per slide existing. I'm trying to get it to show a custom pager graphic per slide. IE: slide 1 shows pager1.gif, slide 2 shows pager2.gif, etc. Thanks! appendControlls: function() { if (options.slideControlls == 'items') { var elementToAppend = options.appendControlls || slideWra...

How to dynamically change <li> style without affecting other <li>s?

Hi, I have an unordered list of links. <ul> <li><a href="#">Link is really really really really LONNNNNNNG</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> </ul> I have set the line-height or the list items to 30px. ul {width:100px;} ul li {line-height:...

Jquery plugin using methods needs to call itself

I'm following the tutorial here: http://docs.jquery.com/Plugins/Authoring I just wanted to create a simple plugin for a project we are working on that would add +/- signs next to an input box that could be used to increment the value of the box. So I'm reading the tutorial and doing the section that talks about having multiple methods ...

jquery.validate.min.js screen flashes jquery validation

I have a form that goes down a couple of screens and is attached to the jQuery Validator controls. The validation works fine but the screen "flashes" when the validator fires and puts focus back on the first field. Any way to eliminate the flash? ...

How do I auto-reload a section of the page with jQuery without refreshing entire page?

So there are a few things I want to do. I have a section of HTML that I would like to be displayed on the page by default (i.e. the first time it loads). <div class="viewport"> <ul class="overview"> <li><img src="images/1.png" /></li> <li><img src="images/2.png" /></li> <li><img src...

jqGrid - Having text boxes along with sorting

Apparently when editing a row, sorting via column headings is disabled. We want to have a grid where a text box always appears in each row where users can enter data and then hit a submit button. We figured out how to display a text box for each row BUT the problem is that this disables sorting. Any way to do both? ...

How to count all elements of a certain type in a jQuery object?

Say I have a jQuery object of uncertain contents (from something that could be a dynamic selector or a string of HTML): var $o = $(something); Now, for example how do I count how many <div> objects are contained in the jQuery object itself (i.e. no descendants of the contained elements)? I could do var l = $o.filter( function () { re...

page peal z-index issue ?

i'm trying to use page peal to hide my current tweets until it's hover'd over // for some reason, when the page first loads (( i'm using chrome )) the text displays until it's hover'd over. not really sure why.. here it is // any ideas ?? ...

jQuery events within dynamic content via ajax

Is there a way I can load content dynamically using ajax and retain any jquery functionality that the loaded content may have? For example, I'd like to load in a Twitter like feed of DB records. Each record can be voted thumbs up or thumbs down. The voting uses some AJAX and I can't retain event functionality when loaded into a parent...

jQuery not working in IE when selecting an item in dropdown

I have a dropdown that shows countries. When the user selects United States or Canada, then another drop drop will appear. Everything works with Firefox, but not with Internet Explorer. $(document).ready(function() { $('.CountriesDropDown').change(changeAddressOptions); // alert('loaded'); // call change event in case value w...

Jump to content inside of a scrollable div.

Hello. I apologize if the title of this question is a bit misleading, I could not come up with a better name. I got the following HTML: <div style="height:200px;overflow-y:scroll;"> <table>.....</table> </div> With this setup I'm somewhat mimicking the expanded <select> control with @size attribute defined. So, that a user could ...

Set jQueryUiPath in Zend Framework project

Hi, in my main layout template I set jQuery paths: if ($this->jQuery ()->isEnabled ()) { $this->jQuery ()->setLocalPath ( $this->baseUrl () . '/js/jquery/jquery-1.4.2.min.js' )->setUiLocalPath ( $this->baseUrl () . '/js/jquery/jquery-ui-1.8.4.custom.min.js' )->addStyleSheet ( $this->baseUrl () . '/js/jquery/css/custom-theme/jquery-...

Javascript variable scope question

Hi, I'm having trouble resolving a scope issue with my javascript. I have an array, dog[] that is defined from JSON, that I need access to from inside a nested function. function blah(json) { for (var u = 0; u < json[0][1][u].length; u ++ ) { var dog = 'k' + json[0][1][u].doggies; console.log(dog); // prints array of doggie str...

Firefox makes redundant GET requests in jQuery slideshow

I built a basic slideshow from scratch in jQuery. The way it works is php hands an array of image paths to jQuery via JSON once upon page load, and jQuery just inserts a new img into the page using the src info from the array. When you click next, a new image is inserted and the previous one is removed from the DOM once it slides away....

How do I pause this JQuery slider plugin after all images are displayed?

I first used the following to give my logo an effect on load: $(document).ready(function() { $('#logo').delay(1000).slideDown('slow'); }); The effect was too simple, so I decided to use an effect similar to those used by Nivo Slider or Coin Slider, by transitioning from a white image to the logo. The problem I have is the I can't ...

jQuery mouse queue/ css change problem

$(next).click(function(event) { event.preventDefault(); if(parseInt($(container).css('left')) <= (-(container_width-offset))) { $(container).animate({ queue:false, left: "0px" }, speed, function() { }); } else { $(container).animate({ q...

How many milliseconds do "slow", "normal", and "fast" represent in jQuery?

jQuery allows use of the string values "slow", "normal", and "fast" in animations (e.g.: $('#example').fadeOut('slow');). How many milliseconds do each of these values represent? ...

creating margin with jQuery to position element below absolutely positioned element

Is it possible to position the bottom element #fooBar 40px below the ul#bar that will have a varying number of li's. I don't want to have to create a class for each element of #fooBar with the appropriate margin. Please see this pic http://yfrog.com/9gstructurewp basically I want to take the height of ul#bar, then add 80px to that numbe...