jquery

I want to trigger an event every single time data changes in an HTML text input field regardless of focus

How do you catch the client-side event when a browser changes an input text field using the browser's autocomplete feature for a plain HTML input field? (This is the small dropdown on input fields that is supplied by the browser, I know that you can disable it with "autocomplete=off" in some browsers per input field.) I'm already bindi...

GetListItems Webservice ignores my query filter

The code below seemingly executes the web service and returns values, but ignores the where clause (thus returning all items in the list). This is the simplest form of the problem that I've come up with. The TestQuery list is a simple custom list with no user defined fields. Can anyone see why the filter is not working? <body> <scri...

jQuery: How to find an image by its src

I need to find an img by name and src. I have been trying the following to no avail. var s = $("img[src='/images/greendot.gif'][name='BS']"); The html: <img alt="This item is active." name="BS" src="/images/greendot.gif"/> vs <img alt="This item is not active." name="BS" src="/images/spacer.gif"/> ...

Grabbing data from JSON using Javascript

Ok so I have a json output that looks like this: {"Result" : [ { "Id" : "5214", "ParentReasonId" : "0", "Description" : "Billing & Payment", "SysName" : "Billing & Payment", "SysCategory" : "Billing & Payment", "ClientId" : "924...

Marquee Text When Text Overflows

Hi all, well heres my problem. Lets say i have 3 div tags, all are 100pixels wide: <--- DIV WIDTH ---> Text in div 1 Text in div two, it overflows Text in div three <--- DIV WIDTH ---> Now, currently i have this css for the divs: width:100px; overflow:hidden; What i want to do is if the text overflows, it scrolls like a marquee so ...

How different is Ext JS from others like jQuery and Mootools

When looking at Ext JS, I don't get the feeling that it's meant for the same things as jQuery and Mootools. Whilst jQuery and Mootools help with the general workings of a site, Ext JS seems to be focussed on tables and storing data, plus manipulating it. So, is this observation correct, or is Ext Js fit for the same work as jQuery and ...

JQuery - add click event to LI or SPAN elements?

I am trying to add a click event to a LI element but it is not firing in the page. My page markup looks like: <div id="Navigation"> <ul> <li class="navPrevNext inactive">|&lt; First Page</li> <li class="navPrevNext inactive">&lt; Prev Page</li> <li class="navIndex selected" title="0 ">1</li> <li class="navIndex notselec...

javascript and asp.net web user controls

I have a web user control that generates the following html on the client. I want to reference a specific RadioButton control using JavaScript. I am not sure how to do this as the RadioButton ID is generated by asp.net. For example I give the RadioButton ID = 1_RadioButton asp.net generates an ID = ctl00_ContentPlaceHolder1_Mate...

ASP.NET MVC and AjaxFileUpload

Ok, this is driving me nuts. I have been trying to figure this out forever now. I want to to perform an async upload using ajaxFileUpload. I have it posting the file to my controller just fine, however, when i try to return a JsonResult from it, I get a "Save File As" dialog box. I have tried everything to get around this and i either ge...

Simple JQuery question - how do you add value to the title attribute?

Stupid question time - how do you update the title attribute of a control? Obviously this does not work: $("#valPageIndex").attr('title') = pageIndex; TIA ...

js/jquery/html: getting a div from an iframe

How can I grab a div from an iframe into a JS variable? Doesn't necessarily have to use jQuery. ...

Adding a class to all table headers

Hello, I'm using a jQuery and the tablesorter plugin in my web page. My goal is to add the tablesorter header disable parser to each header whose class is empty using its metadata inline insertion functionality. I have three functions outlined, the first is the class that adds the disable parser to each header with a blank class(""), th...

JQuery - Adding change event to dropdown

The underlying HTML for my drop down has a chance of changng and I was trying to set it up using the .live option rather than the .change option. Alas, it does not work for me. What I currently have is: $("#ItemsPerPage").change(function(e) { return updatePaging(); }); Unfortuantely, if I update this control via $.ajax it loses the ...

What is the best way to learn JQuery?

Hi I am newbie to ASP.NET MVC and jQuery. What is the best way to learn jQuery? Are there any good links, blogs, screencasts? Thanks in advance. ...

use flexbox jquery based combobox with asp.net

Hi - I have a asp:dropdownlist populated by a storedproc which i want to replace with a flexbox. I see that flex box expects a json based content to it. Any pointers how to replace my code for that ? <asp:DropDownList ID="StepDropDown" runat="server" AutoPostBack="True" DataSourceID="SteppingDataSource" DataTextField="Name" DataValu...

How to subfilter a jquery object which is a subset of $(this)

I've read the documentation over and over and I can't get why this doesn't work: From inside a function, calling the following: alert($(this).parent().parent().html()); returns something looking like this: <div class="something1"> <div class="whereThisStarted">stuff</div> </div> <div class="something2">stuff</div> <div class...

Scrolling to the previous div in jQuery

I'm using the scrollTo plugin for jQuery on a website. I made a vertical scrolling div wher I can scroll to different div by clicking on buttons. And now I need to make a back button to return to the previous div. what I want is the opposite of this.next() I tried this.prev() but it doesn't work. $('#tabs').click ( function(...

Altering href with jQuery no longer triggers a:visited style

My SharePoint site needs to preserve the a:visited style defined in CSS for links. I added the following code, which appends "&Source=/" to each href. It seems that by changing the href via jQuery, the browser only "sees" the original href and therefore never triggers the a:visited style as there's no match... $("table[class...

how to trigger a jquery function just with the url?

Hello everyone.. this is my first question.. so, here we go. i have a site, 100% xhtml/css with some ajax functions thanks to jquery. te problem is.. for all the "sub pages".. the url remains the same (index.php).. my question is.. does jquery allow some url parameters to trigger an specific function? example: www.mypage.com -> hom...

jQuery error?? How to get the first "td" in all rows that are visible

I have a table and I am hiding some rows. I want to get the first td in all of the rows that are showing. I have the following statement $("table.SimpleTable tbody tr:visible td:first-child"); this works in FireFox but not in IE any ideas? ...