jquery

JQuery Class Selector still firing after removeClass.

I am creating a little voting mechanism that sends a quick database timestamp through AJAX. A series of buttons with the class "vote" are the triggers to vote, while there is text below to show how many "votes" are for that particular item. After I run the AJAX method from the click event, I remove the "vote" class such that there cann...

Dynamic height based on another element (jQuery)

HTML: <div class="main" style="float:left"> lorem ipsum <br /> lorem ipsum <br /> lorem ipsum <br /> </div> <div style="float:right"> <div class="block">block</div> <div class="block">block</div> <div class="block">block</div> </div> jQuery: $('.block').height($(".main").height() / (3)); ... each block height = height o...

Jquery Rounded Corners not working whilst making an ajax call.. Any ideas

So i've been doing quite a simple ajax call to grab my photo albums with some pagination. My rounded corners worked before i added the ajax calls. The selectors are correct as well. I'm doing the 'cornering' on the callback for my .load and yet i can't get it to work :s Any ideas: //Display Loading Image function Display_Load() { ...

How to highlight a table cell (TD) when radio button is clicked with JavaScript/JQuery?

I'm developing an online baseball/softball scorebook application. I want to visually change the CSS of the specific table cell (a specific TD) when the user changes the value of one of the radio buttons inside that TD is selected. Here is a JPG of what the table looks like: http://www.ppgeez.com/images/gt_ab.jpg There are 12 players ...

How to get the onclick "attribute event" return value in "property event" ?

consider this code sample : <a href="some url" onclick="confirm('ok to proceed ?')">bla</a>` <script type="text/javascript"> $(document).ready(function() { $("a").live("click", function (event) { // In that function, I want to get // the "confirm" return value ...

Column Wordwrap in JQGrid

Hi, Anybody knows on how to wrap column names in JQGrid. Please find my JSON code below colModel: [ { name: 'RequestID', index: 'CreditRequest.CreditRequestID', width:100, align: 'left' },..... With reference to the above code if the size of the content exceeds I want it to be wrapped. Any thoughts or comments ...

CSS - Creating a scrollbar that controls a separate DIV

I need to create a horizontal scrollbar that will control a the scrolling inside an horizontal DIV. I can't use the regular OVERFLOW:AUTO CSS since the scrollbar is visually separate from the div. There are some (static) items between the scroll and the DIV. I thought of using POSITION:FIXED for those items, and keep them inside the ...

passing on object using jQuery

Hi have the following function which works fine: jQuery('.btnRemoveItem').click(function(obj){ jQuery(this).closest('li').fadeOut(400, function() { $(this).remove(); }); // This works }); On this HTML code: <li id="listItem_dsc_6440.jpg"> <div class="buttonPanel"> <span title...

loading flot chart in jquery tab workaround doesn't completely fix the issue

there is known issue with loading a flot chart in a jquery tab that is not the initial visible tab here: this was asked here: http://osdir.com/ml/jQuery/2009-06/msg02284.html and answered with this solution: .tabs-hide { /*display: none;*/ position: absolute; left: -10000px; } there is still some issues with this solution. ...

Examples of modal dialogs for comment forms?

I'm looking for examples of actual websites (not articles/demos) that use a modal dialog (like a jQuery dialog) to display comment or contact forms, in order to get some ideas of how I might want to implement similar functionality. I'm having some difficulty finding such sites via search, though. ...

CSS Navigation Menu Using Sprite: How to highlight current page's tab/button?

Hi all, I've built a CSS navigation menu using a sprite, very similar to the one on Apple's website. I've got it working fine, such that it changes to the right position on the image on hover and mousedown (all using CSS), but I'm having a hard time figuring out how to make a button stay highlighted once it's clicked. I have a row in my...

Enterpress event in ASP.NET & jQuery click simulation

I have two form elements on my page that act as a smooth login panel. When you activate the panel, you can enter in your email address and your password to login. Next to them is an <asp:LinkButton... with a C# function bound as a click handler. That function will post to another login page (we must do it this way based on how our app is...

Running an AJAX code on the submit of a form

Here's my form: <form action="/scripts/addemail_fb.php" method="post"> <input type="text" name="email" value="Enter your email here!" /> <input id="submit" type="submit" name="submit" value="Go!" /> </form> And my jQuery: $(document).ready(function() { $('form').submit(function() { email = $('input[name=email...

Passing a click event into a container without re-clicking the container (javascript).

I have a situation where I have a navigation menu that's a series of <ul> lists, the first <li> of which is a tab. I want to make the entire <li> clickable instead of the <a> tag inside the tab. So for example: <ul id="home"> <li id="navtab"> <a id="home-link" onclick="doHome();">HOME</a> </li> </ul> And the anchors ...

JQuery and the click function

This code doesn't work as intended, what am I doing wrong? $(document).ready(function(){ $("a.hide-para").click(function(){ $('p').hide(); $(this).html('Show Paragraphs').removeClass('hide-para').addClass('show-para'); }); $("a.show-para").click(function(){ $('p').show(); $(this).html('Hide Paragraphs').removeClass...

Solved : Problem with tablesorter & Jquery sorting prices with Euro sign

Hello there, My question concerns the Jquery plugin Tablesorter : I've a problem with the sorting of a columns with prices, formatted like that : 135.35 €, 149.99 €, 1500 €, etc The sorting works well with the numbers only, but when i add the Euro symbol , the sorting is not working anyore. I have this ASC order for the third column...

How do I "update code" after removing <li> element using jQuery?

I have 16 <li> items. Upon clicking a button, I run the following code which removes a <li> item. jQuery('.btnRemoveItem').live("click",function(){ var obj = this; jQuery.post("wp-content/themes/storelocator/include/adm_gallery.php", { deleteImage: 'single', name: jQuery(this).attr('id') }, function(data){ if(data.st...

Fast autocomplete for drop-downs

Hi, I am using JQuery's autocomplete plugin, but it is not fast and also it's not that relevant to my site. I want an autocomplete like the www.hotels.com. How can I achieve this type of autocomplete? Are there plugins for it? ...

Getting title attribute with jQuery

Hello assume that I have this list: <ul id="carousel"> <li><a title="hey"><img src="image.png"/></a></li> </div> And now my jQuery script: $(function() { $("#carousel a").click(function(){ var url = $(this).attr('title'); alert(url); }); }); This doesn't work, it works for other attributes such as "alt...

console is not defined

Why does this: jQuery(document).ready(function($) { console.log("test"); }); produce this error message: console is not defined In Firefox 3.5.6 on Windows XP? ...