jquery

Dynamic feed using Jquery and Ajax

Hello guys, I have a newbie question... Look at the Recent Activity Panel of this website: http://barcodehero.com/ Looking at the source code, I can see how they are animating the feed. But where are the ajax calls? How can something like this be implemented. I am sure this is very easy. But not for me .. Here's how they are animat...

jquery remove check box on condition

In a div there are these check boxes(name="val1") and after a certain operation these check boxes are removed <div name="navigation_b"> <label id="selectall"> select all <input type="checkbox" name="selectall" /> </label> <input type="checkbox" name="val1" /> <input type="checkbox" name="val1" /> ...

jQuery: hidden visibility selector does not work in Firefox 3.6

<html> <script src="../jquery.js" type="text/javascript"></script> <body> </body> <script type="text/javascript"> $(":hidden").show(); </script> </html> Firefox 3.6 would show $(":hidden").show();, but IE 8.0 works fine. Is this a bug? PS: I'm using jquery 1.4.2. Thanks. ...

jQuery - remove previously added instances of a class

hi, i'm adding a class to an <a> tag on "click". now i need to remove this class when another <a> is clicked. how can i do this? thanks EDIT: the html is an unordered list <ul> <li><a href="">link1</a></li> <li><a href="">link2</a></li> <li><a href="">link3</a></li> <li><a href="">link4</a></li> </ul> ...

assign Unique ID Jgrid Row

Hi, i am using Jgrid.i want when i add new row to the table each time it assign the new id to that row. I am adding the row using var AddNewRow = function(id){ var datarow = {Consultant:"",Role:"",Task:"",SDate:"",EDate:"", Deliverables:"",Complete:""}; ...

Clientside validation of a textbox

I have an asp.net control textbox, clicking on which a jquery timepicker appears and user can select any time.But I want to validate the selected time so that it is one hour greater than the current time in the client side. I mean when textbox value will be changed it should be validated. Can anyone help me how to do this? ...

jQuery: Call two functions from a link

Hello, I would be very happy if some jQuery expert could help me with my problem. I have a page photography.html with a slideshow. This slideshow has two functions, a sliding-in panel and an enlarged image of the klicked thumbnail. Now I want to create a link with, lets say, the name "Picture 5" on another page. When the link is clicke...

Sort 2nd column based on first column sort using tablesorter

when first column is clicked for sorting, it should sort first column and then 2nd column based on first column. but when other columns are clicked they should sort as they should e.g. Name ID Abc 1 ghi 3 cde 2 trg 5 def 4 when name is sorted it should show up like Name ID Abc 1 cde 2 def 4 ghi 3 trg 5 when other...

How can you dynamically alter blogger content with jquery?

$('.body-fauxcolumns').load('http://zazzlewidgets.blogspot.com/p/about-me.html'); I was experimenting with jquery and blogger and noticed that I can't change the content dynamically through manipulation functions. Am I doing something wrong? The code was placed into the header. How can you dynamically alter blogger content with jqu...

jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...

I am using jcarousel, and on window resizing i am getting the error, jCarousel: No width/height set for items. This will cause an infinite loop. Aborting... please give me solution for this.. thanks ...

Returning response from a view that contains input type file - Microsoft JScript runtime error: Object expected

Hi guys, I have a simple view that has 2 textboxes and 1 file input. <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<iLoyalty.BackOfficePortal.Models.SegmentModel>" %> <% using (Html.BeginForm("SaveSegment", "Segment", FormMethod.Post, new { id = "SegmentForm", enctype = "multipart/form-data" })) { %> <div class="StCon...

Find().find() doesn't work in Chrome.

$(document).find('.AddressGroup').find('.toggle_container').slideDown("1000"); works in IE & FIREFOX but not in CHROME or OPERA. Why? ...

Design Patterns for adding jQuery features to a form control in PHP/jQuery (or other web languages)

I am using PHP and jQuery for a project. As some forms are reused across different functionality, I've coded a strategy class to render the forms. An example of one such class looks something like this: class strategy_render_member_form() { public function execute() { return '<form> <input type="text" name="us...

jQuery countdown timer

Hello, Currently i have this code setTimeout(function() { $('#hideMsg').fadeOut('fast'); }, 2000); is it possible for me to put countdown timer for 2 seconds? Like <div id="hideMsg"> The entry you posted not valid. This Box will Close In 2 Seconds </div> "This Box will Close In 2 Seconds" will automatically change to 2sec 1sec ...

Check email availability with asp.net ajax and make page invalid if exists

I'm trying to performa an ajax validation for e-mail address. I need to know if user is already registered so I need to check it in my database. There is similar example: http://www.highoncoding.com/Articles/439_Performing_Instant_UserName_Availability_Check_Using_JQuery_Ajax_API.aspx My current code is: function validateEMail(email) ...

using href in jquery script

Hi, i have written a jquery that populates a html table from data that stored in a json array. in one of the fields, i want to create a hyperlink for it. The table displays a list of files with the properties of filename, id, type, size and os. i want the filename property to be a hyperlink of my choosing but i am not sure why its not ...

Firefox jQuery console script that visits all links on a page

Hi Is it possible to write a jQuery scripts that visits all links on page from the console in firefox, so next time i visit the page they are all marked as visited? Chers! Johan ...

JQuery - Changing a button's font-weight without changing its size

Hi, When I change a button's font-weight, the size will also be changed. My problem is that I can't give the button a predefined size, so I tried to fix it with .css('width','-=4px'); But that will not work. Hope somebody can help me. HTML <input id="b1" type="button" value="Hello world" /> <input id="b2" type="button" value="Blubba ...

How to remove DOM elements without memory leaks?

My Javascript build a list of "LI" elements. When I update the list memory usage grows and never go down. I am wondering what should I do to remove DOM nodes without memory leak. I tested in sIEve and it shows that browser keeps all elements which I thought was deleted by $.remove() or $.empty jQuery commands. Help!!! ...

How to get the value of the text box from a HTML Coded String

i have a string like var str='<input type="text" name="se_tbox" value="Beauty is Fake" />'; I want to get only the value of that input box which is stored in str as Beauty is Fake is there anyway to get it? ...