jquery

Table Column Resizing/Drag 'n' Dropping in jQuery

I'm looking for a way to implement both resizing and drag 'n' drop for columns (not rows) within a predefined table using jQuery. I've done a bit of Googling and haven't really found anything that fits the bill as many require you to essentially reconstruct your table using jQuery. I simply want to plug this functionality in, not have my...

How to scroll to specific item using jQuery ?

I have a big table with vertical scroll bar. I would like to scroll to a specific line in this table using jQuery/Javascript. Should I look for plug-ins for this task, or there are built-in methods ? Here is a little example to play with. Thanks a lot ! ...

jquery, position 'close icon' div in the top right of a large image

My webpage has a large image (a map). I want to position, at the top right of the image, a small icon that is for closing the map. How can I figure out the position and place the image appropriately? The image has a fixed width of 900 x 600. I have jquery on the page if that helps. I tried using $("#map").position and I have the top...

jQuery Accordion w/ Cookie Plugin

Hello, just a quickie that I can't seem to figure out. I have this jQuery accordion menu that is also using the cookie plugin and everything works great but I am trying to add a class of "active" when the link to open the accordion, then remove it when it is clicked again. I thought this would've been something simple to do but it has pr...

jquery - remove specific element from cloned node

Im trying to clone tree, remove one element from it and then append result to new place. But the problem is that element is not deleted, it always append original tree. $(".js-parent-trigger").click(function() { var commentForm = $("#js-add-comment-wrapper").clone(true).css("margin", "10px").remove(".js-add-comment-title"); ...

Jquery + AJAX + ASP.Net + WebForms

I have some JQuery AJAX POSTing data to my backend C# WebForm. It POSTs to a static string WebForm method which returns a value, the JQuery uses that value to change an image url in the html. All is fine and dandy. However, I would like to expand the functionality of the existing code (though I'm not shut out to rewriting it altogethe...

How to use jquery query string object plugin - set, empty, remove methods not working

I am using this plugin: http://plugins.jquery.com/project/query-object The 'get' and 'toString' methods work fine, but the 'set', 'empty', and 'remove' methods do not work. In the author's demonstration, he only uses 'get' and 'toString', but in his example on the top of the page, he uses the rest of the "nice-to-have" methods. Anyone ...

Is jQuery modular? How to trim it down?

Uncompressed, jQuery is 160KB in size. I did not see a way to exclude seldomly used parts of it like with jQuery UI. How can I reduce the (compressed and minified) file size of jQuery? I am quite concerned because dial-up lines and slow machines/browsers are very common among users of my site. My main concern is parsing duration of the ...

Showing the next month

I wonder how to set next month with showing only mondays active: i tried to do smth like that but it wont work function onlyMondaysNextMonth(date){ var day = date.getDay(); var mDate = date.getMonth() + 1; return { minDate: mDate, } return [(day == 1),'']; ...

How to change the cell color of a jquery datepicker

Hi, I have a jquery datepicker and I need to be able to change the background color for the selected cell date. I'm trying with something like: $("#fecha").datepicker({ onSelect: function(value, date) { alert(date.css()); } }); hoping that the date parameter refers to the selected cell, but...

Jquery/Javascript: Buttons added dynamically with javascript do not work.

I have a code chunk of html: <div id="chunk-1" class="chunk"> <div class="chunkText">Text<div> <button class="addChunk">Click Me</button> </div> <script> $(".addChunk").click(function(){create_chunk(this.parentNode)}) function create_chunk(after_this){ $(after_this).after(chunk_html) var i = 0 $("div.chunk...

Not responding to events?

I currently have three Divs and only one of them is in focus at a given time. All of them line up in a film strip fashion. When I click a DIV not in focus, the current one moves to the left or right (depending on the direction) and the new one comes into focus. The divs can have content that has links. So my problem is that upon clicki...

Getting jQuery slideshow animation to stop on click

I have a slide show built with jQuery that pauses on hover. It has a group of thumbnails sitting on top of the image that advances the image when clicked, otherwise the slideshow just auto-rotates through all the images. There is also a +/- to expand and contract a caption related to each image. I want to have the slideshow's automatic...

Finding all LIs that have name="checked"

I'm trying to find all LIs with name=checked and hide() them, but this doesn't seem to be working: $('li').attr("name","checked").hide(); <li name="unchecked" style="display: inline;"><a href="/">Home</a></li> Any ideas? ...

Ajax updated User Interfaces and the Back Button

Scenario: A page is loaded with a complex UI on it. User does some actions which alter data via Ajax callbacks, changes are reflected on the UI by DOM manipulation (e.g. via jQuery). User clicks a link to go to another page (say a details page). User clicks the back button to go back to the original UI page. User sees out-of-date infor...

What javascript/jquery tree view plug-in is most used?

What javascript/jquery tree view plug-in is most used? ("Treeview" seems to come up often in searches.....) Thank You. ...

Using the same cookie in two logins

Hi everyone, I need your help I've a MVC project that uses Jquery, where I've implemented a mechanism of "Remember Me" using cookies to save, clear and retrieve the login and password. I also have two screens where the user does the login. I want that both logins manipulate the same cookie. I've got to implement it, but I've realized ...

jQuery AJAX with two domains

OK here is the situation: I have an externally hosted CMS which works great for 99% of our needs. However on the more advanced things I inject my own CSS+JS and do magic. The problem I am running into is loading a simple HTML page from jQuery.ajax() calls. It appears to work in the sense that no warnings or errors are thrown; however...

how can i stop my sound file from being auto download in php jquery

i have following code in my php jquery call... <object type="application/x-shockwave-flash" data="mysounds/player.swf" id="audioplayer1" height="1" width="1"> <param name="movie" value="mysounds/player.swf" /> <param name="FlashVars" value="playerID=audioplayer1&autostart=yes&soundFile=mysounds/online.mp3" /> <param name="quality" va...

Problem removing a dynamic form field in jquery

I'm trying to remove a dynamic form field by click a button. It will also subtract whatever values it had from the total amount from my calculation. This is the code: function removeFormField(id) { var id = $(id).attr("name"); $('#target1').text($("#total" + id).map(function() { var currentValue = parseFloat(document.get...