jquery

moving 2 or more items simultaneously w/ jquery UI sortable

I have 2 or three elements (divs), side-by-side, in separate columns of an HTML table. When I drag one element (presumably to drop to into an element below it ...

jquery modal dialog - i am using a div which is repeatable and i am calling the dialog in this repeatable div

jquery modal dialog - i am using a div which is repeatable and i am calling the dialog in this repeatable div Problem is jquery model takes the scrollable position of the window to set its position Sometimes we do not scroll to go to the other div. This is creating a problem .. dialog is getting displayed in the previous divs position...

good tool for indenting JavaScript files

Hi All, Can you suggest any tool to re indent minified JavaScript files and compressed CSS files? ...

How can I retrieve address book contacts using the Zend Framework?

Hi, I want to add contact fetch (gmail,AOL,hotmail,yahoo) script in my social networking site using zend-framework. Any one can tell me how to do this ? ...

Click will a) scroll to div, b) open said div and c) load html from another page into that div. How?

I already have the "scroll to" and toggle functions in place: $("a.view").click(function(){ $("#content").slideToggle("slow"); return false; }); And the scrolling is taken care of via this handy little plugin. Now how do I load some html from another page into this newly opened div called #content. I've tried a few things her...

Can this limitChars function be improved?

I've just written a limitChars() function. var limitChars = function(str, limit, endChar, preserveWord) { str = $.trim(str); var strLength = str.length; if (strLength <= limit) { return str; } if (limit == 0) { return ''; } endChar = endChar || '…'; if (preserveWord && ! str.substr(limit, 1).match(/\s/)) { ...

How to handle events in jquery widgets

Hi, I'm trying to write a jQuery widget following the model given here. Here is a snapshot of the widget: (function ($) { $.widget("ui.notification", { _create: function () { if (!this.element.hasClass("ntfn")) { this.element.addClass("ntfn"); } this.elTitle = this.elemen...

Number of characters in a string

var a="password"; In any variable how to check if the length is not less than 6 characters and not > 12 $(a).len();????? ...

Display message afer save is successful BlockUI Update Panel.

I want to display a status message after a server side postback. Currently to do this, I use blockUI for blocking a div while the save is in progress I unblock the div with a custom End request handler for my update panel To display status messages, I use scriptmanager's registerstartupscript() in my try catch block on server side code...

JQuery tablesorter plugin - update sorting after modified rows

Hi! I use the tablesorter 2.0, and I update the cells' value with ajax. After the call I would need to order again the rows, but the $('#thisTable').trigger('update') don't help me. I dealing with markup inside cells, but it can't be problem. $('#thisTable').tablesorter({ textExtraction: function(node) { return node.getElement...

Filling JQGrid Searchoption values dynamically

In my colModel I have defined that one of my columns will have a drop down filter in the filter toolbar. I use ASP.NET Webforms and a webservice webmethod I have tried to use dataUrl for this and it works with a static HTML page. However I need to use a call to my webservice, which I can't get working. searchoptions: { dataUrl: 'WebSe...

Simple jQuery ajax questions with success return data?

Hi I have the following: $.ajax({ type: "POST", url: global.pathPrefix + '/services/brochure.asmx/ShowPostRequest', data: "parkIds=" + $('input.ids').val(), success: function(msg){ alert( "Data Saved: " + msg ); }, error: function(msg...

jQuery select box replacement

Hi, Im looking for a recommendation for jQuery select box replacement. Ive previously used the one over at BrainFault ( http://www.brainfault.com/jquery-plugins/jquery-selectbox-replacement/ ). However, from using it and a little research into it, it is pretty bug ridden and would not recommended using it myself. Any advice appreciate...

How to append rows to a table when the last row is visible in the browser?

Some sites have tables which appends rows when you scroll the browser so that the bottom of the table is visible. Guess it's something like this: jQuery detects that the end of the table is visible in the browser $.getJSON is used to fetch the next rows from the server the rows are appended. Questions: How do I detect that the las...

jquery template tags conflict with Django template!

Today I'm trying to play with jquery-tmpl {{if}} & {{else}} statements. <script id="mission-dialog" type="text/x-jquery-tmpl"> <h3>${name}</h3> <p>${description}</p> <ul> {{each(i,cond) conditions.data}} <li> <img src="${cond.image}"/> <h4>${cond.name}</h4> <p class="status...

saving TinyMCE contect via ajax as part of a larger form

I have a form, well its not really a form because its not wrapped in form tags because I use jQUery to grab the values of each input and pass that off to my ajax page for database processing. My problem is that I have a <textarea></textarea> that is pimped out by TinyMCE, How on earth do I grab the content inside the editor so I can sen...

Problem with jQuery

if ( !this.labelContainer.append(label).length ) this.settings.errorPlacement ? this.settings.errorPlacement(label, $(element) ) : label.insertAfter(element); (this code is from validate plugin, it repeats for each input) label is <label>text</label> element is <input /> This works good, it adds label directly after the element...

jqgrid : send edited data back to controller

I am using ASP.Net MVC and placed a jqgrid on my page. The data source for my jqgrid is a xml file. I have populated a datatable from source xml and then converted this datatable into JSonObject to fill my jqgrid. I know it can be done in better ways but for now I have to apply it this way only.. In the jqgrid, I have enabled editmode f...

getting hidden input type=file to work as desired

I'm trying to do a hidden file upload to iframe and i'm stuck. What seems to be not working is choosing a file. When I unhide form controls and use them everything works fine. If I use form controls to pick a file and then submit form via "send" link - it works fine. When i use choose file link, I can see that file control filled up with...

get annoying error: form is not defined with AJAX, JQUERY MYSQL Fetch

Hi I've been building a site with a ajax feature that retrievs data from a Mysql database given a surtain variabel. Here is an example of how it's been done. http://www.lensfinder.se/testar5.php I'm given this error in Firefox when I choose different data to retrieve, the AJAX is activated on the select change. "form is not defined [...