jquery

jQuery sort function freezing a (previous) show() text

Hi all. I'm sorting a list of species, but sometimes the list is large and it takes several seconds to sort it. Thus, I tried adding a small notice to let our users know there's something running (and they should wait). Please just check this page: http://ibc.lynxeds.com/family/babblers-timaliidae And click on "Sort and Filter [+]". Then...

jQuert sort function performance

I'm sorting a list of <li> elements. I adapted a function on a page that I can't link right now. You can see the live site here. Click on "Sort and Filter" and click any of the Sort by methods (English name, material, status...). All sorts are essentially the same, so CPU time is the same. My jQuery function looks like this: jQuery.fn....

Django: ajax response for valid/available username/email during registration

Hello - I am using jQuery to do some inline form validation during user registration to prevent form errors after posting by checking to see if: username is available email has not already been registered The idea is to give the user feedback before the form is submitted to prevent frustration. The code is at the bottom. Question...

Changing alt tags and image path with jQuery

Hi all, I have a bit of an issue here. As Im new to jQuery this will probable will sound simple for you. I need to add path to alt and change the alt so it will have extension .jpg and screen within jquery So how can I transfer this <img src="small.jpg" class="image" alt="big01"> into this: <img src="/image/small.jpg" class="ima...

JQuery - lags during animation

Hello, I have to get some effects when content is changing. Here is my jquery-code: function contentHide( parentElement, callback ) { parentElement.animate({ "height" : "hide", "opacity" : 0.0 }, "slow", "linear", callback); } function contentShow( parentElement ) { parentElement.animate({ "height" : "sh...

ASP.NET page methods vs web service

I am building a dynamic partial load asp.net page, I would like to use jQuery to call page methods or web service to retrieve the content HTML. page methods or web service, performance wise, which way is better? If I call page method, on the server side, does the page go through full lifecycle? Is there any good resources help me to b...

Required Field Validator incorrectly failing validation on disabled textbox

A required field validator seems to always to fire when the associated textbox is disabled (whether the textbox contains text or not). When the textbox is enabled the validator behaves correctly. Can anybody tell me why? I've tried disabling the required field validator with ValidatorEnable but that seems to make no difference. Here'...

JQuery CheckAll in GridView

I have a GridView on an .ascx. I have an asp:Checkbox CheckAll checkbox in the header template for a column and then a checkbox in the ItemTemplate. I would like to add the functionality so that when I check the checkbox in the Header, it will check or uncheck all of the checkboxes in the GridView. How do I do this with JQuery? I wou...

Can changes in an element's width modify another element's font-size using jQuery?

Hi folks, I have a container whose width is fluid (depending on the size of the browser window), though it has a max-width of 950px. The container has a nested header h1 element which has some text as a strapline. I want to somehow make this header text get smaller as the container gets narrower (using jQuery). I think it'll work some...

$.ajax( { async : false } ) request is still firing asynchronously?

I got a little problem here guys. I'm trying to implement the following scenario: 1- A user opens the home page and sees a list of other users and clicks to add one to his friend list. 2- I issue an Ajax request to a server resource to validate if the user is logged in, if so, I issue another ajax request to another server resource to ...

jquery enable/disable text box based on radiobutton

hi, in my jsp i have a radiobutton group and a textbox (which is disabled initially) . whenever user clicks on last(or, one of the) radio button the textbox should be enabled and when user clicks on some other radiobutton text box should again get disabled. i am able to enable the initially disabled checkbox with the following code : ...

Selecting rows in Tablesorter

Hi all, I user Tablesorter a jQuery plugin (I am sure other know about it) in my project. I need to add a feature where in when users click on a row, it gets selected . I tried the following code but, its not working out. $('#myTable tr').click(function(event) { $(this).addClass('selected'); }); Could anybody tell me the best way...

Custom jQuery dropdown

I am creating a custom simple dropdown using jQuery that hides/shows a element based on over state. The problem I have now is that when you go over the shown element it hides, you cant move your mouse in to the dropdown that was created. Any thoughts on how to fix that also, is there an easier way to do what I have? I am going to be re...

JavaScript / JQuery array/object problem

$.fn.fieldValues = function(successful) { var values = {}; this.each(function() { if(strstr(this.name, '[]', true)) { var tmp = this.name.replace(/\[\]/, ''); if(typeof values[tmp] == 'undefined') values[tmp] = {}; var x = 0; while(typeof values[tmp][x] != 'undefined') x++; values[tmp][x] = $(this).val(); } else...

How to explain this selector

How to explain this statment var a = $(this); What will 'a' contain? ...

jquery - Wrap isn't working?

I'm trying to turn "more" into a hyperlink, but it's like it totally ignores the last wrap... I'm sure that I'm doing it wrong, but not sure how... Help? $j('#sub > div[id^="post-"]').each(function() { var sid=this.id.match(/^post-([0-9]+)$/); var sfimg = $j(this).find("img"); var sfhh = $j(this)...

Why is my HTML Select box in Opera Browser not behaving?

I have a simple select element on my page: <select id="info_routes" size="10"></select> This select box gets populated at page load via jquery at document ready: for (var route in _routes) { var val = _routes[route].id; var key = 'route_'+val; $("<option />").attr({id: key, value: val}).appendTo('#info_routes'); $('#info_...

can't acces accordion in IFrame

Hello, I am using the accordion from JQuery together with DotNetNuke. Now the DNN page is loaded into an IFrame dynamicly, so an the Page_load event of the page which includes the IFrame, the IFrame is not filled yet. <div class="dvFrame"> <iframe class="IFrame" marginheight="0" marginwidth="0" frameborder="0" runat="server...

How to select all links whose protocol is not http with jQuery?

Suppose that you have: <a href="file://...">link1</a> <a href="file://...">link2</a> <a href="http://..."&gt;link3&lt;/a&gt; <a href="http://..."&gt;link4&lt;/a&gt; What code should I use to select only link1 and link2 without using a[href^=http]? ...

Programmatically select all rows in a jqGrid?

What is the best way to programmatically select all rows in a jqGrid that is set to multiselect? The code could loop through all of the rows one-at-a-time and select each one, but then the checkbox in the grid header is not checked. I was thinking about just triggering the header row checkbox's clicked event, but that would make assump...