jquery

I am looking to create a static menu when a user scrolls near the bottom of the page

Using Javascript, Jquery preferably, I want to be able to trigger the visiblity of the div when a user is at a certain page height. NYtimes has an example of this when you scroll to the bottom of a story, a slider pops out with another news story, and goes away if you scroll up. ...

Loading JSON-encoded AJAX content into jQuery UI tabs

We want our of our AJAX calls in our web app to receive JSON-encoded content. In most places this is already done (e.g. in modals) and works fine. However, when using jQueryUI's tabs (http://jqueryui.com/demos/tabs/) and their ajax functionality, only plaintext HTML can be returned (i.e. from the URLs specified in the a tags below). H...

Ajax call with jQuery in ASP.NET MVC does not pass parameters

The Route is: routes.MapRoute( "Ajax", // Route name "BizTalk/Services/{action}", // URL with parameters new { // Parameter defaults controller = "BizTalk" } ); My Controller is: public JsonResult AjaxTest(string s, int i, bool b) { return Json("S: " + s + "," + "I: " + i + "," + "B: " + b); } My ...

How to get transparent corner using jquery corner plugin

http://jquery.malsup.com/corner/ I tried but it fills color at corners in place of white i need transparent corner with 0 opacity. ...

Using Jquery to check if a URL is valid

A long running background process creates a text file to indicate the completion of the process. From the frontend, I'd need to check every few seconds if the text file has been created or not. I am doing this check from http://DomainA.com However the file is created in http://DomainB.com/Mytext.txt Can someone help me write a jquery s...

HOw to make image stay inside the div box on scrolling

I have the image position fixed inside div and code is gven below #content{ margin-top:100px; width:900px; color:#009; border:1px solid red; overflow:hidden; display:block; } img { float:left; position:fixed; top:140px; padding:50px; } #text{ display:block; border:1px solid green; width:500px; height:1200px; float:right; overflo...

Adding a link to image breaks jquery slider, help please!

Hi All, I am working on a site for a friend and trying to add a link to each image in a slide show. The slide show uses jquery and a script called easySlider1.7.js. Everything works just fine if the images are left alone, but when I try and wrap the images with a link, the slides no longer progress as they should. Here is the live we...

jQuery/Javascript: Click event on a checkbox and the 'checked' attribute.

The code: $('input.media-checkbox').live('click', function(e){ e.preventDefault(); var that = $(this); if (that.attr('checked') == 'checked'){ var m = that.attr('media'); var mid = 'verify_' + m; that.parents('div.state-container').find('ul.' + mid).remove(); that.attr('checked', false); ...

jquery 1.3 not(:first) problem in IE

Hi, i have 3 div tags of same class, <div class="redc"> <p>sdfs</p> </div> <div class="redc"> <p>sdfs</p> </div> <div class="redc"> <p>sdfs</p> </div> to select div other than first ,$(".redc:not(:first)") works fine in mozilla,but not in IE Please suggest any alternative for IE Note: vesion jquery 1.3 ...

AutoSave of web control values

Hi, What are the option available to autosave the value of control when enter the control value in to the web page.Thanks inadvance ...

Is it possible to search through json result with jQuery

What I'm trying to achieve, is to output a json list that contains a list of Css classes, and their corresponding url records, i.e. var jsonList = [{"CSSClass":"testclass1","VideoUrl":"/Movies/movie.flv"},{"CSSClass":"testclass2","VideoUrl":"/Movies/movie2.flx"}]; //]]> foreach item in the list I am adding a click event to the class.....

overriding previously-bound click events

When I use this code with an element whose id is "foobar": $("#foobar").click(function () { alert("first"); }); $("#foobar").click(function () { alert("second"); }); I get two alerts: "first" and "second" second. How do I specify a click event that also clears out any previous click events attached to the element? I want the last $("...

Need to escape a special character in a jQuery selector string

According to the selectors docs, you must escape [ with double backslash, etc \\[. I have a selector that is created like so (assume val attribute is something[4][2] in this example). var val = $(this).attr('val'); $select.find('option[value=' + val + ']').show(); Can I write a regex to escape the brackets for me? ...

Multiple ajax request and progress bar

Hi, In a following piece of code i am create a progress bar and showing its progress as the ajax request get processed. i am faking the progress shown here just by adding 5 in to cnt counter variable after that i made a check when counter reach to 90. at this point if the request is not executed successfully then i will pause/disable ...

Calling javascript function on the Mousehoever and mouseout using jQuery

I want to call the javascript function using mousehover jQuery event. Here is the one function. // On mouse hover function function ShowHighlighter(d, highlight_elid) { //alert ("ShowHighlighter\n"+d); if (d == "addHighlight") { var txt = getSelText(); if (txt.length < 1) ...

Use jQuery on a variable instead on the DOM ? [solved]

In jQuery you can do : $("a[href$='.img']").each(function(index) { alert($(this).attr('href')); } I want to write a jQuery function which crawls x-levels from a website and collects all hrefs to gif images. So when I use the the get function to retrieve another page, $.get(href, function(data) { }); I want to be able to do s...

Jquery First Column Select Problem

Hi all; Jquery Code: $("[id$=gridvv] tr").filter(function() { return $('td', this).length && !$('table', this).length }).click(function() { Alert('test'); }); This code should select all <tr> but I need .locked click return all <tr> pls help http://jsbin.com/uheni3/edit ...

Flash swf sometimes squashed when wmode = transparent or opaque on website

Hi, I have a problem on all browsers when I set wmode = transparent (or opaque) on a flash element on my site. I want to overlay some HTML content on top of the flash element, and this works fine, but for some reason the different components within the flash element are sometimes appearing squashed and not in the correct perspective. Thi...

jQuery.ajax success callback function not executed

I have a JavaScript Ajax call (jQuery.ajax), that does not execute the success callback function. $.ajax({ url: target, contentType: 'application/json; charset=utf-8', type: 'POST', // type: 'GET', dataType: 'jsonp', error: function (xhr, status) { alert(status); }, ...

jquery tabs problem

I have a jquery tabs with jquery multiselect in my second tab. My problem is that the multiselect doesn't load the css and js if it's in second tab. If I put in in a first tab it works fine. What am I doing wrong? ...