jquery

How to fetch only topest level div with jQuery?

<div id="container"> <div> <div> </div> </div> <div> <div> </div> </div> <div> <div> </div> </div> </div> $('#container').find('div') will also include those inner divs. How to fetch only the 3 top level divs? ...

How to select all a links inside loaded Ajax content with jQuery?

I load content via Ajax and then I'll have element like $('.my_content_class') and I load data there like this $('.my_content_class').load(url); , but how can I match all a elements inside that new content that I loaded to .my_content_class? I tried but it didn't work at all. $('.my_content_class a').each(function() { doSomething(...

Google Chrome: Focus issue with the scrollbar

I am using jQuery 1.3.2. There is an input field in a form. Clicking on the input field opens a div as a dropdown. The div contains a list of items. As the list size is large there is a vertical scrollbar in the div. To close the dropdown when clicked outside, there is a blur event on the input field. Now the problem is: In chr...

jquery clean old dialog

Hi All, I am trying to use UI dialog to create a modal dialog. The dialog workscorrectly, and all is well. I close the dialog using the "X" in the corner. I tried using dialog('destroy').remove(); , but then of course I can't open it again. I think I just don't understand how to reinitialize the dialog and do not have the old values...

can't open iframe-window in jquery thickbox

Im trying to open a iframe thickbox window with the following url: < a id="thickbox2" title="Contact us" href="/send.php?keepThis=true&TB_iframe=true&height=370&width=300" class="blue_link">Contact us < / a > the thickbox black background loads and the progress bar is shown, but not the send.php file. please help! ...

[jQuery] slideToggle and :visible

Hi, When using the sliderToggle method, the :visible expression never seems to return anything other than true. If I manually use show/ hide in conjunction with :visible expression it'll work just fine. Example of failure: jQuery(".fileNode .nodeExpander").click(function() { var notes = jQuery(this).parent().siblings(".fileNotes"...

Measure client upstream bandwidth using ajax

In my struggles to make our customer's experience of our web services as good as possible I am creating a webpage where the individual customer can measure their latency and bandwidth to our site. Not really a hard task but I need some feedback on how to efficiently measure client upload bandwidth. Anyone got an exmample/hint on how to...

calling Jquery function from javascript

How can i call a jQuery function from javascript? //jquery $(function() { function my_fun(){ /.. some operations ../ } }); //just js function js_fun () { my_fun(); //== call jquery function } ...

loading the content after click yensdesign tabbed menu

I've used this tutorial: http://yensdesign.com/2008/12/create-a-smooth-tabbed-menu-in-jquery/ it is yensdesign tabbed menu. Could sb tell me how do I have to change the code to load content of particular tab after clicking on this tab? ...

how to create disabled effect on <input>,<select> and <img> with jQuery?

Indicates to user that it's not editable ...

External django redirect with POST parameters

I'm trying to create a redirect in a Django view to an external url with some get parameters attached to the request. After doing some looking around and some trying around, it seems I have hit a road block. So my view looks something like this def view(request): data = get.data(request) if something in data: return Htt...

Making if -statement in jQuery

How can you say the following in jQuery? If If textarea AND input.title are NOT empty, then put input.button ON. My attempt in pseudo-code if ( $(textarea).not.empty() AND $(input.title).not.empty() ) { $('.ask_question').attr('enabled, 'enabled'); } ...

jqmodal window closes on form submit for all browsers except FF

I have a comment window that opens up in a small jqmodal window. I am trying to use $.ajax to submit the form and show "success" in the small modal window. but in all browsers except firefox, the modal closes when I submit the form. <script type="text/javascript"> $().ready(function() { $('.reportForm').submit( function(){ if (docum...

Catching keypress in ASP.NET textbox

Is there an easy wayt o capture a keypress (in my case: F5) in a ASP.NET textbox, and executing a server method as a response? I've created a simple SQL frontend, and out of habit (from SQL Server Mgmt Studio), I keep pressing F5 when I'm done typing my query, but that always refreshes the browser, instead of executing my SQL query :-)...

jQuery ScrollBar - Not focusing?!

Hello, I have a jQuery scrollbar in a static html page. The code works fine when it is standalone, but when placed inside a div in my webpage, it doesnt work properly. When you go to click and drag the scrollbar it doesn't select the scrollbar and it doesn't even let you drag and scroll. However, the up and down arrows allow you to scro...

jquery has selector, to find element if it has 2 things in it

I'm currently writing a filter for a selectable, I have some table cells that contain divs. the divs have a classes named start middle & end. essentially I want to filter out table cells that contain the div "middle", or contain BOTH "start" and "end". however, if the cell contains only "start" or "end", then it should still be selecta...

conflict between JQuery slider and iui (iphone)

Im trying to get a slider on an iphone web app, I'm using iui to handle the ui. The slider appears to be causing some kind of conflict with iui.js, when you drag the slider it tries to open another page. However it works fine when you just click on some part of the bar. I thought it was the slide event causing it but this event is trigge...

Jquery: How do i not select a specific column

I have a table, where i have a click event on the tr: <tr id="<%= candidate.AnsogerID %>" class="newCandidatesTableTr"> , this click event: $(".newCandidatesTableTr").click(function(e) { works just fine, but in the row i also have a click event on a td: $(".insertCandidate").live("click", (function(e) { and this conflicts eachot...

How to close the popup in jquery

I created a Popup in jquery. When mail icon is clicked it will open a popup which contains Enter email - label Email -text box Send - Button close - button When another icon called print icon is clicked it will open another popup with confirmation message "Are you sure u want to print" with Yes, No button. When print icon is clicked...

How to hide loadingAnimation.gif in Thickbox...??

Hi, I'm new to jQuery Thickbox. I've implemented the following code: HTML: <a class="thickbox" href="javascript:void(0);" onclick="javascript:initMap(lat,lng,'htmlmsg',1);" >map</a> <div id="show_map" style="display:none"> <div id="map_canvas"></div> </div> JS: function initMap(x,y,msg,flg){ var map = new GMap2(document.g...