jquery

jQuery UI Resizable - Resize elements, Restrict size to several specific sizes?

I'm trying to create an interface where the user can lay out a page by resizing the elements on it, using jQuery UI Resizable. At the moment this is laid out with a string of item numbers and size attributes. Example of layout text: [(b) 80431R 80431P 80431B 80431BK 80431SB 80431PR] 80472(1p5) 80616(1p5) 80617(1p5) 80618(1p5) 80475(1p5...

Can't select day 8 and 9 in datepicker plugin for Symfony (sfFormExtraPlugin)

Hi, I am currently using the JQuery plugin Datepicker in my Symfony project with the sfFormExtraPlugin. Everything is working fine but there is a seems to be a strange bug in the plugin. If I select 8 or 9 in any month the day is not selected in the form. The month and year work correctly but the day is not selected. The plugin works co...

jQuery - Ajax returning error 500 on some posts.

I have some Ajax that has been working on a live site, now it has stopped working. The Ajax should be returning a page but is returning a 500 error (internal server error). The strange thing is I can navigate and post to the page the Ajax is calling, so the page is only not working via an Ajax call ($.post). Another strange thing is it...

jquery Create Spans and then apply functions to them

I am creating a form in jQuery. When the page loads I'm hiding all textboxes and trying to replace them with a span. $("form input:text").each(function(index) { $(this).after("<span id='Span_" + $(this).attr("id") + "'>" + $(this).val() + "</span").hide(); }); This goes through each text input places a span after the textbox with...

If an error happens will ajax stop still run?

Hi I am wondering if you do an AJAX request and you have a method that should run when the AJAX request stops. Will the jQuery ajax stop run if the request runs into an error (such as a 500 error) or if say the request times out? ...

How can I pass a parameter to the callback of a jQuery ajax request?

I need to pass extra variables to a jQuery, ajax callback function. For example, given: while (K--) { $.get ( "BaseURL" + K, function (zData, K) {ProcessData (zData, K); } ); } function ProcessData (zData, K) { console.log (K); } ProcessData() will report 0 every time (or whatever the last value of K ...

Fancybox visibility problem

Hi all, When setting a style at #inline2 hiding it, Fancybox will appear empty on click. In addition the #inline2 element can be seen in Fancybox when there's no style hiding it. Though this example is copy'ed directly from the various examples on the official Fancybox site. See Various Examples at http://fancybox.net/home. Someone pl...

Use JQuery/JS to eagerly load a bunch of MIDI file URls and cache them to be played on demand

Is it possible to have a webpage where on buttonClick, JQuery goes fetches a certain few URLs to MIDI files, and instead of them playing automatically, they are played on demand ? <a href="bach.mid">Bach</a> <a href="beethoven.mid">Beethoven</a> I want to be able to eagerly fetch them into an array of objects and play them on demand....

Json code retrieved with AJAX is unparsable.

Hi, I'm a beginner. I write simple json jquery php code to help understand the idea of json, but its not work, please help me.(I didnt write $_Post, submit, click function etc.. because its not working with, soo I cut the code to find the problem) The user enters view.html and should get an alert box with value Bob - the problem is th...

ASP.NET Webmethod always Returns 401..

Getting sick with asp.net permission madness... This time, I Just cant AJAX-CALL any kind of webmethod or i just get: {"Message":"Authentication failed.","StackTrace":null,"ExceptionType":"System.InvalidOperationException"} Code: <WebMethod(True)> _ Public Function Login(ByVal usuario As String, ByVal senha As String) As Boolean ...

Help using OAuth 2.0 with the Javascript jQuery API to integrate with Facebook

I'm trying to work with the JavaScript SDK and specifically the extended permissions to integrate into Facebook. Is there a decent example / documentation out there for this? So far I have only found the basic example provided in the SDK's /examples folder. http://developers.facebook.com/docs/authentication/javascript The example sh...

Javascript cursor replacement

I'm looking to use an animated cursor in JS. CSS custom cursors do not animate in most browsers. I have heard of people (can't recall who) doing this. They hide the regular cursor (by setting a transparent custom cursor), then create an image that follows the cursor in JS. Anyone have any better ideas to achieve animated cursors? Is th...

jquery pagination results page

So I created a google maps store locator and im using a jquery pagination to show only 5 results per page. It works. The only problem is that every time I hit search it duplicates the pagination. http://cl.ly/25df05cbe6676ff0cb7c code: function paginate(){ var page = 1; var itemsPerPage = 4; var prev = "Previous Results"; var next = ...

Javascript / jQuery - removing or replacing a stylesheet (link)

How can I do this? I tried $('link[title="mystyle"]').remove(); and although the element is removed, the styles are still applied to the current page (in both opera and ff). is there any other way? ...

How to reference absolute path from jQuery in a .NET Application

I have some jQuery that writes some image tags to the browser, but I want to reference them such that I don't have to hardcode the path, and I'm not able to use relative paths either. This is a .NET application, and I am trying to use server side tags. So, I changed the following: $('#IMG_' + myID).attr('src','../images/plus.gif'); ...

Opacity and jQuery fadeIn/fadeOut in firefox extension

I'm having a hard time getting jquery fades and the opacity css element to respond to me in a firefox extension that I am writing. I am using FireFox 3.6. I'm pretty sure that these two problems are related. This code is not fading, it is simply popping on and off the screen after a four second wait: css_notify_div = { position: 'f...

show datatable alert

dear all... i have a problem, after i'm click button show this alert: DataTables warning: Unable to re-initialise DataTable. Please use the API to make any configuration changes required. what the meaning of this alert??what must i do?i want after click button data grid can show data... ...

How to download csv file using jquery ?

How to download csv file using jquery ? I have group of records into jquery , so i need to export to csv and download using jquery . Suggestions please.. ...

How to remove an object from an array of objects in jquery?

I have this code: var pinpoints= [ { "top": 50, "left": 161, "width": 52, "height": 37, "text": "Spot 1", "id": "e69213d0-2eef-40fa-a04b-0ed998f9f1f5", "editable": true }, ...

lock all submit button before page fully rendered

may i know how to use jquery to lock all the <input type="submit/button" .. and only allow submit when page is fully rendered? ...