jquery

JQuery Live and Sortable

I am trying to implement drag and drop so I can sort lists of data and update the database with the relevant positions. I have a working example but when I try to use the same code on lists that are brought in via ajax the event is binding but none of its methods are triggered and the items do not stay swapped, (They swap back when you ...

decent html5 offline storage and caching examples

I'm keen to test out html offline storage and caching with a view to developing a prototype to show off the offline web application capabilities of html5. I've found some webkit-specific samples, but I'm battling to find any decent code samples that even work at all in Firefox 3.6 For a sample, I'd be happy with something that works wi...

How to auto select center picture in a slide images?

Hello. I have slide-show images used jquery and jcarouse lite. You can see it in http://mayvanphongtmt.com/bug/hexbal.htm I want to its auto select center picture( has difference background) in slide. Now, when I click on right arrow, it can work correct 5 times, on 6-7 times, it work incorrect. And more, when click on left arrow, on...

Populating dropdown menu with JSON Data

Hi Guys, Im tyring to use AJAX to populate a dropdown box based on the selection of another dropdown. I followed a tutorial using jQuery located here - http://remysharp.com/2007/01/20/auto-populating-select-boxes-using-jquery-ajax/ and have altered the select box ID names in the select box names in the script. When a chagne the value o...

jQuery+Mvc: automate datetime ui with mvc tamplate approach

In mvc we can do some global tamlpate for type of some property. like with datetime.. we can just made some tamplate with the jQuery call inside the tamplate. form oo prespective this is great. but what about jQuery? assume that I have 5 datetime properties in my form with auto tamplate. each tamplate has an: $(document).ready(functi...

How to do Case insensitive selection in jQuery?

Hi, I wanted to select all tags which points to an swf in jQuery. I wrote the following code and which works fine $(a[href$=".swf"]).each( function(){ alert('hello'); }); Now if i want to include SWF also for search, what is the best way? ...

More Ajax / MVC problems

This is a fairly recurring theme on StackOverflow, but once again I can't get my MVC controller action to recognise the data I'm trying to send. Any suggestions gratefully received. My controller action looks like this: [Authorize] [HttpPost] public JsonResult Record(int task, string notes, double hours) ...

Ajax is "Getting" not "Posting"

I am trying to use the Post Method in my jquery code but it using the Get method for some reason. I am working under the Wordpress Framework which have renamed the "$" function to jquery, which I then renamed to $j. Can anyone help me with this simple function? $j.ajax({ method: "POST", url: "extension/marker.php", data: "series=test"...

webservice return bool, using ajax.

I got a jQuery prompt that is a password validation. I use a ajax webservice for this task. now my confusion is how should I handle the ajax call and make function bool? I started with ajax and webservices about a 2 hours ago so be nice. $(document).ready(function() { $("#sayHelloButton").click(function() { jPro...

jQuery select input[type=image] siblings

I'm trying to convert these forms to ajax (an example) <table> <tr> <td>Prov</td><td>Cod</td><td>Nombre</td><td>Precio</td><td>Stock1</td><td></td><td></td> </tr> <tr class="o d"> <td class="provName">Karabitian</td> <td class="cod d">494011135</td> ...

Performance problems when combining jquery and jquery-ui

I am trying to reduce the number of http requests for a site I am resonsible for. At the moment we use jquery and jquery-ui, which are loaded as 2 separate .js files. I have tried to combine them together in a single file (jquery-all.js) and use the combined file instead. This works as expected, but adds about 1 second to the page load...

Replace day number with link to event in jQuery Fullcalendar

Hi, I'm using jQuery Fullcalendar from arshaw.com/fullcalendar/ and I would like to replace day number with link to event, which I'm getting via JSON from database, like on this image: I've got small calendar with only one event per day, so default display isn't necessary for me. I need something simpler and cleaner. Since I'm not ver...

jQuery 1.4 .html() problem with IE

Hi, I have a box displaying my shopping cart amount. When the customer adds a new product I make a ajax request and send back the amount of products in the cart. This looks like this: ... success: function(data) { $("#basket div a").removeClass().addClass("active").empty().html(data +' Article'); } ... I started using jQuery 1.3 ...

jQuery convert DOM element to different type

I need to convert a DOM element to a different type (as in HTML tag name, a to p in this case), but still retain all the original elements attributes. Whether they are valid for the new type or not doesn't matter in this case. Any suggestions on how to do this? I've looked at just creating a new element and copying the attributes acros...

How can i write jQuery for below problem?

Hi Friends! I need help I am new to jQuery and i want to implement jQuery in one of my webpage. I also have one form having four text boxes. I have two div tags one in another i.e. my code structure is in following way <div> <div> <img> <img> <img> <img> </div> <div> I just want to do with the...

Replace pagination Next link to image

quick pagination i have downloaded the pagination from this site, ya really fine , no script problem and nothing , But i tried to change the next link to image , but am not find success , actually they given the CSS name for the next and back link , i simply overrided using css , background image, then image has changed , but i cant ...

best way to reference an element with jquery ?

I want to know how can I save a reference to an object (this) using jquery. what I mean is for example I want when my user clicked on any element in his page, I send the reference of object to my webserver, and next time user calls the server, I send back the saved refernce to browser, and do other stuff like fadeIn() ... so far I've tri...

Manipulating HTML snippet after jQuery load

I am working on loading a HTML table snippet into a page via jQuery Load. When this snippet is loaded into the page will i be able to manipulate the table with jQuery or is it just treated as a string? When i say manipulate i have onClick events on table columns that need to fire. ...

Form Button Image Mouseover Options

I have a form that has nine (yes 9) buttons and I have been requested by the client to provide mouse over action on each one of them. I am very comfortable with standard mouse overs using CSS and background images, but not with how to effectively swap out an image in something like this: <input type="image" src="images/fl-ounces.jpg" na...

jQuery plug-in for text zoom?

Hey, anyone knows a jQuery plug-in for text zoom a-la MAC OS X "Large Type" function in Address Book? I'd use it for the same situation - to show full-screen phone number after clicking on it. Cheers ...