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.
...
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...
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="...
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
...
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...
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...
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...
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...
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!!
...
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...
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;
...
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&label=%C3%85land+Islands
The actual label value is Åland Islands. When this comes to the servlet, ...
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
...
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...
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
...
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...
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...
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>";
...
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...
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...