jquery

event triggered by backspace key but not delete key

Hi all. I have a form field which uses Jorn Zaefferer's "autocomplete" jQuery plugin. If i type some text, then select part of it and hit backspace, the autocomplete list updates. But if i hit delete instead of backspace, the autocomplete list disappears. I'm looking at the code for the plugin and it looks like the autocomplete upda...

I can't get datepicker to work

Hi, I need a field that displays the datepicker. I followed the example given by the JQuery UI documentation and haven't managed to get it to work. My html where I have my text field is: <div class="editor-field"> <input type = "text" name = "DatePublished" id = "Published" /> <%= Html.ValidationMessag...

Popout/expand links on mouseover without changing text/elements flow

I'd like links to "pop out" of the page when hovering over them, without changing the position/flow of text/elements nearby. See attached example shot. I'm pretty sure this is a simple position trick, but I'm having trouble getting it to work properly. I'd prefer this not to require any JS, if possible. Any advice is much appreciated...

Accessing local variables after a $.post of datatype "script" has completed

I have two lists, one on the right and one on the left. When I click on a node on the left it does the following: 1) AJAX request $.post's the content of the node to the server 2) If the transaction is successful on the server, the node moves to the list on the right via jQuery To post to the server: $.post($(F).attr('...

Use jQuery to get values of dropdownlists in an html table column for each row

Hi All, I have a requirement to build a simple html table of memos. The table consists of n-rows each with 2 columns: (1) a dropdownlist of types of memos and (2) the text of a memo - a textbox. I have successfully implemented jQuery to allow the user to Add a new row. That entails the selecting of a type of memo and then typing someth...

How to know if the scrollbars has appeared in browser (jQuery)?

I need to know, whether a vertical scrollbar has appeared or not in browser window. Is it possible using jQuery or any other way? ...

How to use setTimeout / .delay() to wait for typing between characters

Hi all, I am creating a simple listbox filter that takes the user input and returns the matching results in a listbox via javascript/jquery (roughly 5000+ items in listbox). Here is the code snippet: var Listbox1 = $('#Listbox1'); var commands = document.getElementById('DatabaseCommandsHidden'); //using js for speed $('#CommandsFilter...

Editable Tree View for MVC using jQuery

Hi All. I'm looking for an Editable tree view which easily lets me to make new items, rename and delete them. before i started using MVC i used the Obout tree which works quite well: http://www.obout.com/t_db/index.aspx but this isnt going to run in jQuery, so i'd like to know if someone has some experience in a jQuery solution. i g...

The submitHandler is not binded to the form after loading. why?

$(".normalform").click( function() { var hrf = $(this).attr("href"); var typ = $(this).attr("frm_type"); var cls = $(this).attr("class"); var nam = $(this).attr("frm_nam"); var url = $(this).attr("url"); //alert("href:"+hrf+", "+"type:"+typ+", "+"class:"+cls+", "+"name:"+nam+", "+"ur...

Jquery - effect + autohide

Hello, I'm using jquery to animate a bit my web site, but I'm having a little issue with some behaviour: I have a div, which suddenly appears from the top of the page and shakes: $(minipopup).animate({ marginTop: '+=' + (240) + 'px' }, 1000); $(minipopup).effect("shake"); This mini popup has an X for closing it, or else, it will...

problem in jQuery popup and ajax

hello, i am having problem when i do the ajax call then my popup stop working. i want to call ajax when we click on "ok" button of popup. thanks in advance here is my code: <div id='container'> <div id='content'> <div id='confirm-dialog'> <asp:Button ID="cmdBackToHomePageTop" runat="server" Text="<< Back to Home ...

A standard event messaging system with AJAX?

Is there any standards or messaging framework for AJAX? Right now I have a single page that loads content using Ajax. Because I had a complex form for data entry as part of my content, I need to validate certain events that can occur in my form. So after some adjustments driven by my tests: asyncShould("search customer list click", 3, ...

Is using jquery to call a WCF Data Service from the UI violating the MVC pattern.

I'm fairly new to ASP.Net MVC 2 and understand the MVC pattern in itself. But my question is what's the best way to populate dropdownlists in the UI sticking to the MVC pattern. Should I be going through the controller? Every article I've seen to do this shows how to do it using javascript and jquery. I have a test application that I'...

ajax login problem

$(document).ready(function() { $("form#login_form").submit(function() { var login_username = $('#login_username').attr('value'); var login_password = $('#login_password').attr('value'); type: "POST", $.ajax({ url: "login.php", data: "username="+ login_username...

jQuery sum events on TD click

I have a simple table to simulate a Gantt chart. The idea is that each TD clicking trigger a sum of values stored in an hidden input text (an array of values), available in a TH (first son of TR tag). The row sum of these values, is shown on a final TD. Next, the code table: <table width="100%" cellspacing="0" class="datagrid_ppal"> ...

jquery, jsonp and no success

Hi I have the following jquery in my code$j.getJSON("http://localhost:8080/WWTestHarnessWEB/ReadersToolkitFinalController.htm?jsoncallback=?", {'uID': 1}, function(data){alert(data);}); The json that i am returning looks like the following ({"positiveCount":"0","negativeCount":"999"}) But my alert is never firing. Any idea what i nee...

Easy way to tell which JQuery functions are needed?

Does anyone know of a tool that will tell me which JQuery functions are being used for a given page? I'd like to trim down the included files to just the bare minimum. Thanks. ...

Dictionary to Json object, "Expected expression"

I'm trying to convert a dictionery into a json object, so that I can work with it in my front end. sortFields = <%= SchrodersHtmlHelper.ToJson(ViewData["SortInfo"])%>; However, I keep on getting "Expected expression" for this all the time and I'm clueless why. Could anyone explain to me what I'm doing wrong? Edit: The conversion wor...

Best practices for developing simple ASP.NET sites (built in controls or JQuery + scripts)

I was recently reviewing some code written by two different contractors, both were basic ASP.NET management sites. The sites allowed the user to view and edit data. Pretty much simple CRUD gateways. One group did their best to use built in ASP + AJAX Toolkit controls and did their best to use as many built in controls as possible. It...

Dynamic validation in jquery

$(document).ready(function(){ $('a[rel=addhint]').click(function(){ var html='<div><label>Hint</label>'; html+='<span class="input"><input type="text" size="30" class="text" name="hint"/><a href="#" rel="delhint">delete</a></span><br class="clear" /></div>'; $('div#hintTextContainer').append(html); bindDelHintAll(); return fal...