jquery

Autocomplete extender in Ajax Toolkit and JQuery limiting to "Starts with"

There are many flavours to the AutoComplete implementation, I first did a WPF implementation that was very robust, each entry took keywords, so when searching for an employee, it didn't matter if you typed the first or last name, the results came back similar to Google Suggest. What I have found limiting in both the JQquery autocomplete...

Is there a jQuery-like library written in C#?

I love jQuery. I am probably going to have some XML parsing and manipulation using C#. It would be a piece of cake doing it in jQuery. Is there a C# library that implements jQuery's functionality? ...

Is there any way to set the search options per column in jqGrid 3.4.4?

So I'm using jqGrid with my mvc.net / Ling2Sql prototype site that I'm making and I've done the work to get jqGrids search functionality up and running. Its pretty sweet actually, but since you cant search by >, >=, < or <= with strings, I wanted to setup the search options per column. I know I can set the overall search options for th...

jQuery UI resizable - direction of operation

How can I determine the direction of resize operation? I tried googling that and found a ticket on jquery ui, that said it is fixed. But there is no doc on how to use it. ...

Jquery fadeIn And fadeOut problem using hover over a div

I have this code: var x; x=jQuery(document); x.ready(inicializarEventos); function inicializarEventos() { var x; x=jQuery(".Caja2"); x.hover(entraMouse,saleMouse); } function entraMouse() { jQuery(this).fadeOut(); } function saleMouse() { jQuery(this).fadeIn(); } The problem is that when I move the mouse over t...

Accessing AJAXed elements via jQuery and changing their parent

Im trying to get ajaxed content to alter their parent. How can I do this with jQuery, I can't seem to get the syntax right. <div id="menu"> <a href="#" id="show_names">Show Names</a> </div> <!-- AJAXED CONTENT --> <div id="content"> <a href="#" id="person">Janice</a> <a href="#" id="person">Steve</a> </div> <!-- AJAXED ...

Encoding JSON for jQuery Calendar

Hi, I'm trying to use the PHP json_encode function to encode some JSON to send along to a jQuery plugin that will render out a calendar. The plugin's name is FullCalendar. I've started on grabbing event data from a MySQL database and encoding it in a JSON string, but I've run into a problem. The default JSON example that comes with the...

jqModal and live quering (R14)

I have a dynamically created table that I am trying to attach a modal effect when an image is clicked and am having trouble. Since the rows in the table are dynamic, I am using the "live" feature. The first time that the user clicks on the image, the modal pops up fine, but on the next click it does not work. I thought that with jqMod...

How to submit form via jQuery and refresh PartialView

Stackoverflow does it so well, submit a comment and it gets refreshed on the screen using jQuery. How is it done? I was dissecting the code to learn. Looks like it is happening here: in the html below, the link click event is bound by jQuery to load a textarea to a dynamic form. How is the submit button wired and how is the data sent t...

JQuery - AJAX load() method help

I need to get content from an external page and pass it as an argument to a function. I have looked into the url() method in the JQuery documentation but it seems it's only possible to use it to insert external content into div or some other HTML element. Basically what I need to do is: // I need to insert external page's content into ...

how to add jquery in JS file

I have some code specific to sorting tables. Since the code is common in most pages I want to make a JS file which will have the code and all the pages using it can reference it from there. Problem is: How do I add jquery, and table sorter plugin into that js file? I tried something like this document.writeln('<script src="/javascri...

Can Prototype or JQuery return an HTTP status code on an AJAX request

url = "http://example.com" new Ajax.Request(url, { onComplete: function(transport) { alert(transport.status); } }); I'd like that to return a status of 200 if the site is working, or 500 if it is not working, etc.. But that code is returning 0 all the time. Ultimately, I want to have a setinterval function that regularly pings...

jQuery fade stop error: jQuery(".box").stop().fadeIn();

This code is not working, what im doing wrong? Tnks. var x; x=jQuery(document); x.ready(inicializarEventos); function inicializarEventos() { var x; x=jQuery(".Caja2"); x.hover(entraMouse,saleMouse); } function entraMouse() { jQuery(".Caja2").stop().fadeOut(); } function s...

How to re-size a box with CSS or Javascript

Hi, I found by browsing some pages source code that they resize a box using either CSS or Jquery. The code and files are very long so I thought if someone knows how to do this. What's it? On images files, I find a box (designed with an editor), this box has a size of xxx X yyy. A way to use it on a division, is to use it as a backgroun...

Passing jquery search results to a page method

I have am using a sortable jQuery list. I would like to send the results of that list to a webmethod for processing. So my javascript is something like: function ProcessSortableList() { var arr = {}; arr[0] = "item1"; arr[1] = "item2"; PageMethods.TestMe(arr); } I then have a webmethod on the server side: [WebM...

Tracking which image in a list of images is clicked?

I have a set of images that correspond to video thumbnails. The user clicks a thumb which loads the browser. This would be simple enough, but I need to track which of the thumbs was clicked, so that I can automatically cue up the next video in sequence. My first thought was to do something like this (highly simplified example): <div ...

What's the best WYSIWYG Editor for use with jQuery?

I know there are a quite a few WYSIWYG HTML editors written in JavaScript, but most of them aren't written to take advantage of jQuery. I'm looking to use one in a project I'm working on, and I would like to know which of ones are the best. I'd prefer it to make use of jQuery for compatibility reasons, but it isn't required to be a jQue...

jQuery slideToggle and div in IE

Hi Everyone, I'm having issues with jQuery's slideToggle and a div in IE. My code is below: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).re...

access tr and its content in a table with jquery

I am doing an MVC with C# application. I was trying to access the entire row in a table and change the values in each cell using jquery. I need to do change the value in each td once a json call is succeeded. Please advice for this ...

Remove the Contents of a Div using JQuery

Hi, How to remove the contents of a Div Using JQuery. For eg. <div id="1"> <label id="label1"/><br/> <input type="text" data-attr="phoneEuro" style="width: 200px;" id="input1"/> <label id="instr1"/> </div> i want to remove the full content of the Div . and to add new contents to it. ...