jquery

How does one disable animation in jquery-ui datepicker ?

I'm generally averse to animation effects given the overheads of reflow on the client side browser. jquery-ui is an awesome widget. It has all the stuff I need. But is there a way to disable the animation -- in other words the widget just appears instead of sliding out or fading in? ...

Jquery BlockUI w/ Asp.net confirm delete

Asp.Net 3.5 / WebForms (no ajax) I am trying to update a delete confirm box with jquery & UIBlock. Old code looks something like this... <asp:LinkButton OnClientClick="return confirm('Are you sure you want to delete?')" runat="server" ID="DeleteButton" OnClick="DeleteButton_OnClick">Delete</asp:LinkButton> What is the best practice t...

jquery sortable issue

Hi All, I have a problem while using jquery sortable. I am using sortable between two unordered lists . Eg. If i have list 1 and list 2 then after sorting i want to get all the elements in list 2. How can i get that. If i perform sorting again then the list i got earlier would be lost i want to maintain that list. ...

jquery droppable area

How can I find out where a div has been dropped after it was dragged? ...

jquery droppable problem

Hi all, i have a problem in jquery drag n drop. I have a "div a" and 'div c' i.e draggable n a 'div b' over which 'div a' and 'div c' are droppable.if div a is dropped over div c .How can i find that as div b is the superset of div c. ...

"Show password as text" control

I have a usual login form consisting of two input fields, one for login, one for password. I am currently trying to add a control that will show entered password as plain text, so user can check it for typos. The problem is that browsers (at least Firefox) do not allow dynamic changing of type attribute of input fields, so I cannot just...

Redirect user to parent page when iframe is accessed directly

I am using a jquery lightbox plugin (http://colorpowered.com/colorbox/) to load content using an iframe. The problem is when users access the page directly or via a search engine the page they are taken to is the iframe content itself and not the parent page which loads the iframe. How can i redirect users who access the iframe directl...

How to construct a URL to open a page with jquery lightbox plugin colorbox?

I am using jquery lightbox plugin colorbox (http://colorpowered.com/colorbox/) and i want to be able to construct a URL like www.example.com/about-me.html which will send the user to my website and open the iframed page (about-me.html) within the lightbox script. I believe i have to use event hooks or something but i am not sure how to ...

Is there a version of jQuery somewhere that I can hotlink to without hosting the file?

Just wondering if there's a website out there that allows you to hotlink to the latest version of jquery. Does Google code allow you, or does jQuery.com itself? What I'm not looking for is a site that just happens to have jQuery that I can pinch. I want a site that says that you can hotlink to their jQuery. ...

jquery selectors problem

I have an issue using jquerys selectors when it comes to a page I am populating from a database. The database populates a which will display 4 <li> tags per row for x amount of rows. I am trying to use addClass to give the first and last result on each row of the <ul> a different class. I have tried :first and :last but these obvious...

Where can I find a javascript calendar that allows me to disable certain dates?

I'd like to put a calendar on a webpage showing which days a house is availiable to rent. I know that the jquery datepicker has this functionality. However, I can't get it to display correctly I've tried the jquery date picker, but it seems that I'm missing a stylesheet, as all the headings collapse together. Anyone know where I can fin...

jQuery How do you get an image to fade in on load?

All I want to do is fade my logo in on the page loading. I am new today to jQuery and I can't managed to fadeIn on load please help. Sorry if this question has already been answered I have had a look and try to adapt other answers for different question but nothing seems to work and its starting to frustrate me. Thanks. Code: <scri...

What event is fired when Google Map repaints?

what event fies when google maps repaint itself? for example when you zoom in or out? I have an info window open and when it repaints I lose it. I'm using JQuery to load the map on Document.Ready() ...

Binding an existing javascript function in JQuery

Using JQuery I want to bind an existing function to a button. I've been through the documentation and have found the bind method but the examples on the JQuery bind newly created functions where as I want to bind a function thats already hard coded, e.g: function fHardCodedFunction(){ //Do stuff } function fBindFunctionToElement(){ ...

Limit input box to 0-100

I have an input box that takes values from 0-100. I want to prevent users from writing anything larger or smaller. I've been using the jquery keyfilter plugin to limit the input of a field: http://code.google.com/p/jquery-keyfilter/ This plugin can limit the input to numerals, but not within a range. How do I prevent users from enterin...

jQuery Bookmarklet with $.post() or $.get()

Hi. I've built a Bookmarklet based on Ben Almans jQuery enabled Bookmarklet. The bookmarklet creates a an fills it with some data from a $.get('http://mydomain.com/request/') Request. It works as long as I am on the same domain, but if I try to run it on another site, e.g. google the $.get() does not work. I've also tried $.getJSON()...

Show/hide a div with jquery multiple times

I am wanting to use jquery to do a show/hide of a DIV from a text link. What makes it a little different from the examples I have found of this site so far is I need a generic way of doing it multiple times on 1 page and also able to use it sitewide on anypage. It would be really nice if I can put the JS in seperate file that is in...

Why is there a post-jQuery flash in Safari?

Hey all, I have a simple search box that it hidden until hover(over) and hides again on hover(out). In Firefox all is normal, but in Safari there is a tiny flash after the hide animation where the full bar is visible. You can see what is happening (in Safari only) on the homepage of my site: stormink.net. (the search button is in the to...

Jquery UI sortable, store location and size?

Hi, I am new to Jquery and am trying to store the location and size of the elements on a page which are being sorted using the Jquery UI plugin. I want the user to "save" the current layout, and the data to be stored in a database using php/mysql so when they re-visit the elements will be the same size and location? <script type="text/...

JQuery with asp.net 3.5 and doing post/call backs

I currently have a simple form that when you click the "save" button will persist it to the database. I would like to use JQuery to do the callback for me and popup a "Save completed" div window/div of some sort. My only problem is how do I call the btnSave_Click() event from JQuery? If I use PageMethods the method would have to be st...