jquery

jQuery Lightbox with proper back button support

After running some usability tests, I found that participants opened a jQuery Lightbox to view larger images. Then rather than clicking the 'close' button they simply hit the browser back button. That sends them to the last page rather than closing the lightbox. Does anyone know a jQuery photo gallery that supports the described back bu...

jQuery Sounds IE7 / IE8 Issue with Flash ExternalInterface

I would like to add sound alerts to a web application. I believe that Flash is the best way to do this to support all major browsers, ie. IE, Firefox, Chrome, Safari. Chrome does not seem to work with the non-flash sound solutions. I have been using jQuery and would like to use the jQuery Sound plug-in. An example is shown at jQuery S...

Jquery click events not firing / distingishing between two identical HTML blocks

Heres my page http://tinyurl.com/7am4lo If you find the red 'Special Offer' box, you'll see it expands when its header is clicked. There is another identical box at the bottom of the page. If you click that one too, you'll see my problem. The click event is firing both boxes. This was an oversight. My problem is that I cannot seem to g...

Using jQuery to remove a second form element without losing the child elements

I have some AJAX work that brings across an additional form element that I don't need in the DOM. I don't have the ability to remove it server side, so I'm looking for some jQuery or classic JavaScript that will allow me to capture all the child elements of the form, remove the form I don't need and finally re-append the child elements ...

jQuery Sortable callbacks not working?

I'm using the Sortable component of jQuery UI. The callbacks don't seem to work at all, even with this minimalistic test: <script type="text/javascript" src="jquery-1.3.js"></script> <script type="text/javascript" src="jquery-ui-personalized-1.6rc4.js"></script> <script type="text/javascript"> $(document).ready(function () { $("#outer"...

JQuery Async postback issue, how do I fix this?

I have the following JQuery code which does similar functionality like Stackoverflow where the user clicks on the comment link and it displays the comments or in this case replies to a member's status update, generally it works great except when a member posts a new status update which updates the list of status updates using an ajax asy...

Can one element accept sortable droppables on behalf of another?

I have two connected sortable lists, but each one is in a larger block element. Something like: <div class="items_box"> <ul class="items"> <li>Item</li> <li>Item</li> <li>Item</li> </ul> </div> <div class="items_box"> <ul class="items"> <li>Item</li> <li>Item</li> <li>Item</l...

Graceful degradation of anchor tags with javascript

I currently rely on anchor tags to perform AJAX requests on my web application (using jQuery). For example: <script type="text/javascript"> $(document).ready(function() { $("#test").click(function() { // Perform AJAX call and manipulate the DOM }); }); <a id="test" href="">Click me!</a> </script...

jQuery - How to Use slideDown (or show) function on a table row?

I'm trying to add a row to a table and have that row slide into view, however the slidedown function seems to be adding a display:block style to the table row which messes up the layout. Any ideas how to work around this? Here's the code: $.get('/some_url',{'val1':id}, function(data){ var row = $('#detailed_edit_row'); ...

REST Service exposed on WCF not populating parameter values

I have a WCF service that takes as a parameter a string value "name". This service interface looks like this... [ServiceContract(Name = "ContactLookup", Namespace = "Search")] public interface IAjaxResultSearcherService { [OperationContract] [WebGet(RequestFormat = WebMessageFormat.Json)] Result[] SearchResultsWithNameLike(s...

How to hide the SCRIPT html tag?

I am using HTML, and I'd like to hide the SCRIPT tag from the user's view. When the user views the page source, the definitions should not appear. How do I accomplish this? Example <script type="text/javascript" src="My1.js"></script> <script type="text/javascript" src="My2.js"></script> <script type="text/javascript" src="jq...

Whats a Good Javascript Time Picker ?

What's a good time picker for jquery or standalone js? I would like something like google uses in their calendar where it has a drop down of common times in 15min intervals or lets you manually type in a time and it validates it. ...

Is jquery interface.js com always working with the new version of jQuery ?

Hi, On the interface.js website (http://interface.eyecon.ro/) they propose to download interface.js with jquery 1.1.2. I would like to know if interface.js is still compliant with the new version of jquery and if there will be new release of this library. I had some trouble to use jquery 1.2.x with interface 1.2, and using jquery 1.1.4...

jQuery Maximum Amount Of DatePickers

I have a rather frustrating problem where the maximum number of available DatePicker's on one page seems to be twenty. I can't find any documentation referring to this. If I had a page with 100 text boxes, and did the following: $(document).ready(function() { $(".datepicker").datepicker({ duration: '', dateFormat: 'dd/mm/yy' }); }...

jquery append to front/top of list

I have this unordered list <ul> <li>two</li> <li>three</li> </ul> Is there a way I can prepend to the unordered list so that it ends up like this? <ul> <li>ONE</li> <li>two</li> <li>three</li> </ul> Notice the "ONE" is added to the FRONT/TOP of the list. ...

How to find the index of a row in a table using jquery

I'm trying to find the index of a row in a table. I'm trying to use the following code, but I seem to get an index of -1. $(document).ready(function() { $("tr").click(function (){ var index = $("table").index($(this)); $("span").text("That was row index #" + index); }); }); With html that looks like this; <table> <t...

Security and Cross Domain with ASP.NET MVC JsonResult and jQuery

I am using asp.net MVC to develop an application that will have ajax interactions. I have JsonResult methods in the controller returning my json serialized data. So for example when a request is made to http://somesite.com/findwidgets/ mvc serializes the data as json and sends it back. I am using jQuery on the client side to handle the...

Change the value of an existing onclick function

I have a page that is pulling in via an iframe a page of html content from a pre-existing content management system, whose content I can not directly change. I want to use jquery to alter some of the links and button locations dynamically. For links within the page I was able to change the href attr values of <a href="/content.asp">mo...

IE click sound and jQuery

Using jQuery, is there a way to disable the click sound in IE that happens when you post? ...

Does jQuery have an equivalent to Prototype's Element.identify?

Is there a built in method or defacto default plugin that will let you automatically assign an unique ID to an element in jQuery, or do you need to implement something like this yourself? I'm looking for the jQuery equivalent to Prototype's identify method Here's an example. I have some HTML structure on a page that looks like this <...