jquery

Problem with Events on AJAX-heavy page

I have an asp page that uses jQuery ajax to load member counts into a bunch of divs after a page is loaded. It works perfectly well in FireFox, and with clients that have a small number of groups. For the small number of clients that have many groups (500+), I am getting an error in IE. The ajax calls seem to be running synchronously,...

jQuery: Creating a circular slider

You may have seen Javascript sliders before: http://dev.jquery.com/view/tags/ui/1.5b2/demos/ui.slider.html What I'm envisioning is a circular slider. It would consist of a draggable button at one point on the circle -- and that button can be dragged anywhere along the ring. The value depends on what position the button is at (think of ...

Show parents element's item

Lets say we have something like: <div class="row"> <div class="box"> <a class="more" href="#more"/> </div> <div class="hidden"> stuff </div> </div> <div class="row"> <div class="box"> <a class="more" href="#more"/> </div> <div class="hidden"> stuff ...

jquery script not working after postback even with pageLoad

Hi all, I've got some trouble with JQuery script on my Asp.net page. During first load it works well, after postback it does not. Initiali I thought that it is because script is not load again, but alert told me that script runs as I use function pageLoad() instead of $(document).ready(function(). In script I just read value from one ...

Using jQuery in WinForms desktop app?

We have a WinForms desktop application that uses the .NET 2.0 framework WebBrowser control quite extensively for displaying HTML. The HTML may be simple, or quite complicated. It may reside on disk, or it may be written directly to the document property at runtime. I was wondering if anyone had any experience with using jQuery as a lib...

Parsing JSON using JQuery

I have a JSON as follows { columns : [RULE_ID,COUNTRY_CODE], RULE_ID : [1,2,3,7,9,101,102,103,104,105,106,4,5,100,30], COUNTRY_CODE : [US,US,CA,US,FR,GB,GB,UM,AF,AF,AL,CA,US,US,US] } I need to retrive the column names from the columns entry and then use it to search the rest of the entries using jquery. For example I ...

JQuery $.ajax "async: false" bug?

Hi, I would appreciate your opinion/advice on the following Scenario HTML has PDF file nick name, back end has URL for each nick. The link URL is always download.php?what=%PDF_Nick% to ensure download for JS disabled clients. For JS enabled clients I do JQuery AJAX call and rewrite link URL from download.php?what=%PDF_Nick% to ht...

Inserting one element inside another in jQuery

EDIT: Apologies, this was caused by an unrelated error! Hi, I'm trying to figure out how to add one element inside another using jQuery. For example, if I have a list: <ul class="someList"> <li>One</li> <li>Two</li> </ul> ...and I run $("ul.someList").prepend("<li>Zero</li>"); then I will end up with this: <ul class="som...

Jquery, alter image

I know that I can use $('#myId').load('aPage.html'); to load a page into an element, how do I do use that to alter an image? ...

jQuery fadeIn, fadeOut effects in IE

The below fadeIn, fadeOut effect works fine in Firefox 3.0 but it doesn't work in IE 7 ... Whay is that and what's the trick? The idea is of course to get a "blink" effect and attract the attention of the user to a specific row in a table. function highLightErrorsAndWarnings() { $(".status-error").fadeIn(100).fadeOut(300...

Is there any way to modify query strings without breaking an ASP.Net postback?

From reading here and around the net, I'm close to assuming the answer is "no", but... Let's say I have an ASP.Net page that sometimes has a query string parameter. If the page has the query string parameter, I want to strip it off before, during, or after postback. The page already has a lot of client-side script (pure JavaScript and j...

jQuery validate plugin clearing file input value in IE

Hi! Im currently using this jQuery validate plugin and having an issue in IE where its removing the value of file input fields whilst validating the rest of the form. This seems to me like an onfocus issue, I select a file to upload, click on another input field and it clears the value - this only happens on the file input fields aswel...

Building jQuery UI Plugins

Beyond the official documentation, are there any recommended resources for learning to build jQuery plugins. I'm particularly interested in building plugins for the UI libary. I've been looking at the source for some of the official ones, but I've found they all look quite different from each other. Many are not well commented and it i...

How do you handle busy icons in an AJAX site?

This question deals with concurrency issues, for suggestions on how to display a busy icon see this question: http://stackoverflow.com/questions/205631/javascript-loadingbusy-indicator-or-transparent-div-over-page-on-event-click When a user initiates an AJAX request on a page it's useful to show some kind of "working" or busy icon or pr...

jQuery - making hide all/show this div image more generic

i have the following jquery code. basically i will have several overlapped divs and a list of links on the right of all those overlapped divs. when hovering over a link, the link's assigned div will fade in. I have the following code and it works (it uses the default windows' sample pictures), but if someone can think of a way to opti...

Is there a way to do a 'scoped' add() in jQuery?

The main jQuery method takes a second optional argument to provide context for the search. eg $(".setA", ancestorOfSetsA); However, the jQuery add() method does not accept this context argument. What I am trying to accomplish is: $(".setA", ancestorOfSetsA).add(".setB", ancestorOfSetsB); I am attempting this through a plugin that ...

jquery $.post not working in Firefox

I am begging to use jquery. I have the following call that works in IE7 but not FF 3.0.4. But if I change the null to {} it works fine. Is null not valid for this case and I just got lucky that it worked in IE or is this an error with jquery. $.post("complexitybar.ashx?a=init&vc=" + validationCode, null, loadInitialValues, "json"); ...

Detecting divs as rendered in the window to implement Google-Reader-like auto-mark-as-read?

Hello, When using Google Reader and browsing RSS entries in the "Expanded" view, entries will automatically be marked as 'read' once a certain percentage of the div is visible on the screen (difficult to tell what percentage has to be visible in the case of Google Reader). So, as I scroll down line-by-line, the javascript code can deter...

jQuery UI: Best way to load HTML markup?

What's the best way to load HTML markup for a custom jQuery UI widget? So far, I've seen elements simply created using strings (i.e. $(...).wrap('<div></div>')) which is fine for something simple. However, this makes it extremely difficult to modify later for more complex elements. This seems like a fairly common problem, but I also kn...

Detect which form input has focus using JavaScript or jQuery

Hi, How do you detect which form input has focus using JavaScript or jQuery? From within a function I want to be able to determine which form input has focus. I'd like to be able to do this in straight JavaScript and/or jQuery. Thanks, Everett ...