jquery

jqgrid with large local data sets

I'm looking for recommendations for jqgrid to add a large dataset from a local source. Right now, there's a simple loop: grid.clearGridData(); for(var i = 0; i < data.length; i++) { grid.addRowData(i+1, data[i]); } grid.trigger(”reloadGrid”); And on some larger data sets, this causes the browser to display the “javascript is usi...

json with complex objects or asp.net partialview/partialresults

if i have a div or a partialcontrol and i have link that i want to click that will refresh the div, it seems like i can: use ajax.beginform or ajax.actionlink and return PartialResult() use jquery to post/get/ajax and return json if i have a big complex object that i am binding to my view, which option is better. it seems like for #...

What useful custom jQuery selectors have you written?

For me, one of the best, yet under-utilised feature of jQuery is the custom selector. I have a fairly trivial example of this, to pick out all text boxes that are empty: $(document).ready(function() { $.extend($.expr[':'], { textboxEmpty: function(el) { var $el = $(el); return ($el.val() == "") && ($e...

How do I create a button with a function, then submit it, with jQuery?

I am using the following code to add a button to a page $("#myDiv").html("<button id='fileUpload'>Upload</button>"); I am then creating an Ajax Upload instance on the button. var button = $('#fileUpload'), interval; new AjaxUpload(button, { action: '/upload.ashx', name: 'myfile', onSubmit: function(file, ext) { bu...

JQuery - Add an onmouseover attribute to an input element where type equals image

Is it possible to add an onmouseover attribute to an input element where type equals image? I have created the following code but it does not add the attribute. <script language="javascript" type="text/javascript"> $(document).ready(function() { $("input").each(function(i) { if (this.src.indexOf(...

Code for jQuery: GET into SPAN html?

$("#ShowRating").html($.get(url)); This is not working, in fact firebug doesn't even show any headers... what am I doing wrong here? ...

How to call WCF Ria Service/DomainService from Jquery?

I'm attempting to call a DomainService created using WCF Ria Services from jquery. If I use a POST I get 405 method not allowed. If I use Get, it get javascript errors. Am I missing a configuration step? This code results in the 405. function GetSearchResults() { $.ajax( { type: "POST", url: "/Services/CustomerService.svc/GetC...

jQuery Dynamic Function and Variable

I am trying to create a function that handles the 'keyup' event for several input fields and passes the input value to a php script. Here's the code I have so far $(document).ready(function(){ $("#email").keyup(function(){ val = $("input#email").val(); what = 'email'; aFunction(val, what); }); }); fun...

Which Javascript history back implementation is the best?

There are implementations for history.back in Micrososft AJAX and jQuery (http://www.asual.com/jquery/address/). I already have jQuery and asp.net ajax included in my project but I am not sure which implementation of history.back is better. Better for me is: Already used by some large projects Wide browser support Easy to implement Li...

Fck editor problem

Hi, Im using FCK Editor control instead a textarea element. I installed it without problems. But when i want to validate it with a Custom validator of ASP.Net 2.0, im not getting the result expected. These lines are the code that i have: <textarea style="width:30px;height:20px;" class="ckeditor" id="txtdescription" runat="server" na...

jQuery fadeIn + fadeOut in IE?

I am having a problem with gtetting fadeIn and fadeOut effect of jQuery to work properly in IE (6+7+8). The script works fine in FF and safari (fading nicely) but in IE it just shows/hides - no fading effect at all. Any ideas? $(".myclass ul li:eq(" + $(this).attr("href") + ")").fadeIn(5000); The href attribute that it is getting is ...

Removing <ul> bullets via CSS

I am using jQuery for the first time via the Views Cycle module for Drupal. I am not a CSS pro, but I am pulling my hair out trying to remove the bullets from the rotating images on this page: http://shoshannabauer.com/ What am I missing? Does the list-style go on the <li> or on the <ul> class? ...

jquery validation plugin: "b is undefined"

Hi, I'm using: jQuery validation plug-in 1.6 * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ with the latest version of jQuery. I'm also using Jeditable 1.7.1 When I "inline edit" an item and press OK or Cancel or even when typing in the text field or when clicking outside of the edit inline element, it gives m...

How do you access the text in a <caption> tag?

I have my HTML like this: <table> <caption class="my_caption">Table 1.1: TABLE CAPTION</caption> <tr>...</tr> <tr>...</tr> ... I need to get the caption text so I can make some string comparison. I've tried doing .val(), .text(), .html() and .value but none of them work. Thanks for your help. EDIT: I actually have a few of those...

jquery autocomplete submit issues in Mozilla

Hi, I am implementing jquery autocomplete to show a list of products in a drop down and be able to search on it. In IE, when a user starts autofill and scrolls down to a suggestion and prett "Enter" key, it just select the item and focus remains on the search box. In mozilla, when user scrolls down on auto fill and presses enter key, i...

Issues with jquery tabs nested tabs, first tab doesn't load.

I am having a problem with nested tabs. When I click on Tab 2 I need Nested 1 to display by default. Instead it just shows a blank tab until I click Nested 2 and click back to Nested 1. I'd love to be able to fix this by just adding something to the ready function if possible because changing the actual .js file is a pain... Thanks in a...

Javascript anchor navigation

I am creating a website with the "anchor navigation" like used with facebook and google mail. I have got it working but not fully. When I load the page with something like #contact it won't load it in unless I click the link for it. Also, would there be a better, more efficient way to do what I am doing? I am not the best person with JS ...

Webkit threading javascript file loadsand execution order

I am trying to building a XSS widget and am having issues with Webkit browsers loading the external javascript files which I am appending into the dom. It works as below: Widget.js appends 3 javascript files into the dom (jquery, data, content) Jquery.js is standard jquery with a custom namespace Data.js is a javascript array Content.j...

Page changed in JQUERY

I am trying to found out how to see if a php file has changed and then show a div with saying Page changed in JQUERY ...

Live Notification Jquery

Can someone lead me down the right way to make a live notifications e.g Knowing when a new Row in Added in Mysql know if a php file has changed ??? how should i go about it? ...