jquery

A modelbox for jQuery 1.3.2

I am using jQuery 1.3.2 and I was wondering if anyone knew of a modelbox/lightbox that would work with that. I've found a bunch of jQuery powered lightboxes, but most of them use way older versions of jQuery. I am going to use it to display an html form so it need it to support more than just images. Thanks -- I ended up going wit...

Expand div with animation

I have a div that is receiving content from an ajax call. Right now I am just doing this in the ajax callback handler: function searchCallback(html) { $("#divSearchResults").html(html); } This makes the content "pop" onto the page, and it's very abrupt. Is there a way to make the div gracefully resize, like the .slideToggle() method d...

Is there any way to make two jQuery animations run (properly) simultaneously?

I have an event listener that calls two animation actions. Unfortunately their starts are staggered by a small amount (e.g. the first in the function starts first). Does anyone know a way to properly sync them up? Here's my code: $("#nav ul li a").hover( function(){ $(lastBlock).children("div").animate({width: "0px"}, { qu...

rounded corners with transparent background hover effects

Hi, On my website, each menu button has it's corners rounded using the dd_roundies library, and has mouseover, mouseout, and onclick handlers assigned via JQuery. The relevant JS code is: $(function(){ // Add an event handler to the menu items that changes the background colour on mouse-over // and reverts it on mouse-out. ...

Can I do full text searches with jquery Autocomplete ?

Hi, I want to be able to search a list of full names. The autocomplete demos I have seen have all searched from the beginning. Thats no good as I want matches on surname too. I can live without full text search if it at least follows word boundaries. Sorta like the tag search here. Hows that done? Cheers ...

Open window on click in textbox using jQuery

Hello, I want to create a functionality similar to what www.redfin.com has on their search page. A search form is opened as a user clicks in the text box. I am using MVC and jQuery but am not sure how to go about it. I tried using the Dialog plugin but for some reason the dialog only opens once. <input id="txtSearch" type="text" /> <d...

How do I display a jquery dialog box before the entire page is loaded?

On my site a number of operations can take a long time to complete. When I know a page will take a while to load, I would like to display a progress indicator while the page is loading. Ideally I would like to say something along the lines of: $("#dialog").show("progress.php"); and have that overlay on top of the page that is bei...

Auto-size dynamic text to fill fixed size container.

I need to display user entered text into a fixed size div. What i want is for the font size to be automatically adjusted so that the text fills the box as much as possible. So - If the div is 400px x 300px. If someone enters ABC then it's really big font. If they enter a paragraph, then it would be a tiny font. I'd probably want to ...

Add background color and border to table row on hover using jquery

Does anyone know of a way to add a border to a table row with a different background color when the mouse hovers over the row? I've been able to change the background color of the row with this: $(document).ready(function() { $(function() { $('.actionRow').hover(function() { $(this).css('background-color', '#FFF...

Odd javascript Error (using jQuery)

I have a code that grabs the buttons click and then vanishes the actual content and makes the content of the clicked item appear. I have it running along with other thins in an init.js file that is I have: $(function() { $('#contacto').fancybox({ 'hideOnContentClick': false, 'frameWidth': 600, 'frameHeight': 550, ...

Jquery animate problem..

Hey guys, I have the weirdest of problems. I have a jQuery function that animates the result bars of a poll. function displayResults() { $(".q_answers1 div").each(function(){ var percentage = $(this).next().text(); $(this).css({width: "0%"}).animate({ width: percentage}, 'slow'); }); } As you can ...

Can you use javascript to render an image stream?

The situation is that you have to work with an image API and you have to make a POST request to get an image stream that you want to display in the rest of your web page. I can make an ajax request to that service on page load using jQuery, but i just get a binary stream returned. Is there anyway that JavaScript can take that binary st...

Dual list drag drop control

Does anyone know of a good .Net2.0+ compatible dual listbox control that either offers dragging and dropping between lists, or simple buttons to move items between lists and also sort the items in a particulr list. This is for a web based app and I would prefer some nice javascript to make this one speedy. ...

$_GET updated_value(?) - Another In-Place Editor(Jquery Plugin) question.

Hi all, Using PHP, and MySql, I am trying to implement this rather snazzy in-place editor available here: tutorial: http://www.davehauenstein.com/code/jquery-edit-in-place/ js file: http://davehauenstein.com/code/scripts/jquery.inplace.min.js OK what is happening is, I click the element to edit the text. I clear the old text, and e...

Submitting a form to proper action using ASP.NET and MVC

I have a simple form that is used to update an entity in my ASP.NET MVC app. I want the user to be able to submit the form, have the proper Action on my controller be called and then notify the user that the update was completed. Because I wanted to display a JQuery dialog after the user clicks the update button, I wanted to use JQuery ...

jQuery Countdown plugin and AJAX

I'm using jQuery Countdown plugin to implement a Countdown and call a webservice when timer expires. The problem is that I'm using AJAX on the page, and have to re-setup the Countdown on every AJAX request like so: var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_endRequest(SetupTimer); /*Initial setup*/ $(document).r...

How to switch on and off checkboxes and radio buttons with JQ

I have tried to get this to work but haven't been successful. I am a a real nube with js so please keep that in mind when trying to help me. You'll have to spell it out for me cuz I just don't understand what is happening yet with all this code. I have two things that I am trying to get working. One is a set of radio buttons. These butt...

Problem with IE7 JQuery, Ajax and CSS

In a simple web page I load some new HTML into a div using load(url) Works fine in most browsers but, surprise, surprise, IE7 behaves differently. All the other browsers apply the pages CSS styles to the newly loaded HTML but IE7 doesn't. Any ideas? Ken Update The new HTML is just a code fragment, e.g. <div class="classname"> blah ...

How to change the video playing in Youtube embedded player ?

I'd like to make a playlist, where a click on each <li> will change the video link just below. The list will look like this: video1 <li><a href="MzfAvHlIVjE&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999">">video1</a></li> bbbbb ccccc video player here So clicking on aaaaa will play aaaaa , clicking on bbbbb will play bbbbb,...

jQuery sortable - how to add a sort indicator?

I've successfully implemented the jQuery sortable() plugin but want to enhance it with a sort indicator. This would be a vertical bar in between the items where the draggable can be dropped. See the image below for an example. Can this easily be achieved with the sortable() plugin? ...