jquery

JQuery tooltip plugin: tooltips showing at bottom of page

I'm using the JQuery tooltip plugin - http://docs.jquery.com/Plugins/Tooltip With the basic implementation: $(".tooltip").tooltip(); Instead of the tooltip placing itself over the input box it belongs to and tracking with the mouse it is placing itself at the bottom of the page. The input is basic and is like this: <input type="tex...

How do I stop jquery appending a unique id to scripts called via ajax?

Hi, I'm using jquery's ajax functions to grab a page fragment and display in a section of a page - this fragment includes html and references to external js files. The program flow looks like this: Main Page calls -> Fragment page which calls -> various large js files via script tags. I've turned on the cache option on my initial ajax...

jQuery .cycle() is invisible in Webkit browsers [Safari / Chrome] on first load (after refresh everything works fine!)

I'm using jQuery cycle to implement a slideshow effect. You can click on any slideshow image to slide to the next one. This works fine in all browsers. Only in Safari, something really weird happens. Upon the first page load, no slideshow images are displayed at all! After reloading the page (either by refreshing or by hitting the 'Go'...

check empty text

i have statement like this var a = $("#txt1").val().trim() how should check if 'a' is not empty ...

jquery selector

Hi i need some hepl to find a selector for jqeury I have these textboxes <input type="text" name="text[1]" value="1,2,3"> <input type="text" name="text[2]" value="1,8,9"> <input type="text" name="text[3]" value="7,4,3"> i need for each these textboxes do a search and find if value=1 exist. I need help to the selector (somthing like $...

JavaScript/jQuery DTOs/Objects to hold State

I'm usually a C# developer, but writing a mostly-client side application using jQuery. It is reasonably straight forward: I have a list of "groups" which have some parameters (like a group name) and a list of "users" who also have some parameters. At the moment I try to manage that using a <li> with a specific id, so there is a lot of ...

Help with jquery ajaxpager

Hi, I am having an issue using "ajaxPager jQuery UI Widget" plugin. You can see my demo here (only tab 1 has content) It works great moving forward (using next, last, or page number links) through the pager, but if you navigate to previous pages (using previous, first, or page number links) it The new page content below, before showi...

Catching event with stopped propagation

Is it possible to somehow catch event, if it's propagation was stopped? $('span').click(function(e) { e.stopPropagation(); }); Maybe there are some kind of global handler? Like: Event.registerHandler('click', function(e) { alert('thanks'); }); There should be no additional code for regular handlers. ...

Select option always select

Hey, I have a select options form fields setup like below: <select name="options[]" multiple="multiple"> <option value="1" selected="selected">Option 1</option> <option value="2">Option 2</option> <option value="3">Option 3</option> <option value="4">Option 4</option> </select> The user can select multiple options, but I woul...

Jquery pagination

Hi , I have my code working etc for the pagination plugin but I have a slight error. When I add a table above my table which works with the sorter and pagination the pagination does not work. I think it is because that the table above it is taking the all the features and not using them. So is there a way to define which table to us...

jQuery Plugin Namespace

How do I create a jQuery plugin so that I can use namespaces in my plugin ? $("#id1").amtec.foo1(); $("#id1").amtec.foo2(); None of these seem to work. (function($) { var amtec = { $.fn.foo1 : function(){ return this.each(function(){}); }, $.fn.foo2 : function(){ return this.each(function(){}); } }; ...

Help porting javascript function to jQuery - learning tool

I am just learning jQuery and I wanted to see what I could do with the function below. This function adds or removes css classes to create a pull down menu (it is in fact Stu Nicholl's well known pull down menu). But I'm not getting very far (I've been learning jQuery for approximately an hoour now, so my DOM traversal isn't quite up t...

object doesn't support this action in IE6 with jQuery

For some reason the following line of javascript is giving me an error object doesn't support this action in IE6: item = ui.item.get(0); Any ideas? I'm completely lost. ...

Sample for Full Calendar in jquery

I am trying to integrate the jquery Full Calendar (http://arshaw.com/fullcalendar/) in my asp.net mvc application. I need to use this full calendar to add/edit/delete/show the events using the sql server database as backend. Do anyone have the sample code to implement the add/edit/delete events with this Full Calendar.? ...

Javascript or JQuery for background image slideshow

Hi I want to create a slideshow using the background image of a div. I don´t want the images to rotate automatically, instead I want to use standard prev and next buttons to change the div´s background image. In total there will be around 6 images to scroll through. It needs to be a background image as the div has some other content in ...

How to enter digits to a certain number

I want to enter only digits in a textbox with the following condition maximum 3 digits maximum from 0 to 250..so 251 should not be accepted. I have written the following code till now..how to take the other conditions too this.value.match(/[^0-9]/g) ...

jQuey tool pluging for dynamic controls

hi, in my application i creating a dynamic controls like ( 2 label controls in 2 tds of under 1 tr of a table doing this in .cs file). now i need to provide the tool tip for these dynamic controls what i have generated can any one help me out to give solution for this thank you ...

jquery-ui-tabs. passing a querystring

Hi all. How could I pass a query string (?id=avalue) with each of the below links associated to the below tabs. I am attempting to open external content within the tabs (that it's working fine) but I have failed to pass a parameter with the urls. The value for the parameter would be the same for each link. My functioning code: <scri...

In jQuery if you remove an element will any events on it be removed?

For example if I have a link with the following event bound to it: $("a.d").bind("click", this, onDelete); And later do: $("a.d").remove(); Is that fine? Or does it cause a memory leak and I need to call unbind 1st? Thanks for any help. ...

Multipage jQuery image gallery

Is there any jQuery gallery, which support multipages? My problem is, that every page contains different number of images. I'm using Lightbox 2, but i can't see any way to configure the gallery with multipages. I can create 5-6 static HTML Pages, one page can contains one image gallery, but i think, this is not the perfect solution. Any...