jquery

jquery automate function call

How do I call a given function every X seconds ? In this case i made a function that scrolls some images . I want the image to change based on a given interval of time ex every 5 seconds but i really have no idea :/ some suggestions and good practice for this ? Thank you. ...

Removing loaded jQuery AJAX element

I was working on a dialog with content loaded by AJAX, but I'm not able to remove it. A must was to have a multiple, php-supported, drag-able and close-able dialog. (.center() function present) $('a.event').click(function() { var url = this.href; var getrel = $(this).attr('rel'); var getid = $(this).attr('id'); var dialo...

How to make jQuery UI tabs appear at the bottom of a page

Hi All: Is there some way to make the jQuery UI tab widget tabs appear at the bottom of a page? Using the example from the jQuery site: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>jQuery UI Tabs - Default functionality</title> <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="...

JQuery selector for table cells except first/last row/column

Hi, is there a way to directly select all 'inner' table cells (<td> elements) of a table (i.e. all cells except the ones in the first and last row and column) using a jquery selector expression? Thanks Martin ...

Making Entire background-image clickable

I am fixing up a friends website, and he has an advertisement that takes up the entire background (body). Currently, the background image is set using CSS (background-image): body { background-attachment:scroll; background-color:#000000; background-image:url("http://gunshyassassin.com/wp-content/uploads/2010/10/gunshy_takeover2OUTNOW4.j...

Add TR after matched set, or at end if matched set is empty in jQuery

The Question I'd like to add a new TR in a table after a given matched set, or instead, at the end of the table if the matched set is empty. Given the following table: <table id="blax"> <thead> </thead> <tbody> <tr class="alpha"> <td>some stuff</td> <td>more stuff</td> </tr> <tr class="alpha...

JQuery MVC and Internet Explorer

Hey guys, i have a crazy problem. I have been running my webapp on firefox and it works fine. However, my client will be using internet explorer. I dont think it will work me just saying in order to use this, you have to use firefox so i am trying to correct this damn bug. I have 3 dropdownlists, a parent, a parent/child and a child. And...

Html TextBox Array

I have a list of textboxes as an array created using jQuery <input type="text" name="salaries[]" value="100,000"> <input type="text" name="salaries[]" value="200,000"> <input type="text" name="salaries[]" value="300,000"> <input type="text" name="salaries[]" value="400,000"> Now in C# : Request.Form["salaries[]"] gives salaries[] = 1...

Text box Date mask

I want to display a text box on my webpage which has a Date input mask. For example: When the user visits the page; the text box should be prefilled with dd/mm/yyyy in light grey color. He should overwrite the same using some valid date like 20/12/1990. How to accomplish this task (JQuery, JavaScript)? Any inputs would be helpful!! ...

.focus() not working after closing a DOMWindow() [JQuery]

I have a series of DIV elements that, when clicked on, trigger a DOMWindow open event. No problem there. Then I had to add keyboard accessibility. DOH!! I added tabindex attributes to the DIVs, which allows the user to tab from one DIV to the next, and I added a keypress handler to deal with the Enter Key. No problem there. The probl...

Jquery script to make background clickable

I am skinning a site with an ad, and I want to make the entire ad clickable. The ad takes up the entire background (body) as shown below body { background-attachment:scroll; background-color:#000000; background-image:url("http://gunshyassassin.com/wp-content/uploads/2010/10/gunshy_takeover2OUTNOW4.jpg"); background-position:center top; ...

Encoding problem between jQuery and Java

My encoding is set to ISO-8859-1. I'm making an AJAX call using jQuery.ajax to a servlet. The URL (after it has been serialized by jQuery) ends up looking like this: https://myurl.com/countryAndProvinceCodeServlet?action=getProvinces&amp;label=%C3%85land+Islands The actual label value is Åland Islands. When this comes to the servlet, ...

jquery/Ajax loading

Hello, Was wondering if someone could point me in the right direction, i need to be able to page through content using something similar to Coda-Slider but with the data being loaded with ajax? Thanks Phil ...

How to append the img alt to an li

Hey guys, me again, I know I asked something similar a little while ago, but the function that i need for this it is slightly different, this time I have an ul element with img tags embedded inside a tags. What I need is when the image is clicked to populate an li element, but is the next or last image is clicked I need the same li eleme...

Extract day and week number of a specific month given a specific date or time stamp

Preferred in jQuery, if possible, otherwise any Javascript will work. I'd like to get the day and week number of month given a specific date or timestamp. For example 2010-10-26 would return Tuesday and 4 as the week number 2010-11-11 would return Thursday and 2 as the week number ...

jquery add <br> to h2 if h2 contains this word

if the h2 has the word ply i want to add a break. the titles are dynamically called, the site is html so i can't use php on anything. heres the h2 11/400-5 4 PLY EXPERIMENTAL TIRE AIRCRAFT TIRE want it to look like this 11/400-5 4 PLY EXPERIMENTAL TIRE AIRCRAFT TIRE so any title that has the word PLY in it will add a break right af...

checking at least one radio button is selected from each group (with jquery)

I'm dynamically pulling and displaying radio button quesitons on a form (separated into different sections by jquery tabs). So there are lots of 2, 3, 4, 5 etc radio buttons together, which have the same 'name' but different ids. When you hit next between the sections, I want to check that at least one radio button has been selected fo...

using php to generate html and javascript - quote/doublequotes

This php statement works, but is there a more readable way to express it, in terms of quotation marks. $pCode = $row['SIZIP']; echo " <a href='#' onClick='jfFn(\"".$pCode."\");return false;' > " . $pCode . "</a>"; ...

jQuery dialog IE7 issues

I am having trouble with the width of the titlebar in IE7 only. The first dialog function when opened using the width: 'auto' the titlebar does not extend across the entire dialog window. The second function using minWidth works but is acting more like the width property and not growing in size with the content. Any ideas? Not Workin...

clear default value

I found a lot of examples but I'm trying to figure out the simplest way to clear an input's default value when clicking it. This is for a search box. I have "Search for post" and I want to clear that when clicking on it. I tried using jquery but for some reason it doesn't work. $('#search').click(function() { if($(this).va...