The other day I thought I saw an object iterator in jQuery that had a flag that could be set to recursively iterate over child objects. I thought it was part of jQuery.each(), but now I don't see that capability in the docs.
Is there any such iterator in jQuery that can be automatically recursive?
(I know how to do it in javascript. J...
I implemented the Coda Slider tutorial successfully that is located here: http://jqueryfordesigners.com/coda-slider-effect/
The slider works great but I am getting a javascript error that I am not sure how to fix. The error says:
'0.offsetWidth' is null or not an object
coda-slider.js, line 19 character 3
Not sure how to fix it. Any...
My purpose is to create an in place text field to have user to input an image url, such as a link to flickr. After user finished input and click ok, it will display the image. My problem:
I don't actually post anything to the server when submitting the change. Instead, the field will be re-rendered into a image element and an image wil...
Here's a quick question that's probably simpler than I'm thinking.
I'm populating a jQuery UI dialog with the resulting html from an $.ajax() call. In certain cases that html includes a button that when clicked, I want to close the containing dialog.
Assuming that I don't know anything about the element that was specified to be the ...
In jQuery is there any way to distinguish between postbacking dropdowns and non-postbacking ones(ASP.NET 3.5):
$('select').change(function(e)
{
//something like this
if ($(this).attr('AutoPostback') == true)
{
//do something here
}
else
{
//do something else
...
I'm just curious to know how jQuery is able to hijack the 'this' keyword in Javascript. From the book I'm reading: "Javascript the Definitive Guide" it states that "this" is a keyword and you cannot alter it like you can with an identifier.
Now, say you are in your own object constructor and you make a call to some jQuery code, how i...
The tutorial that I'm trying to figure out is this:
http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
The username field looks like this:
<input value="" class="validate[required,custom[noSpecialCaracters],length[0,20],ajax[ajaxUser]]" type="text" name="user" id="user" />
That <input> ...
All,
How can I check if a checkbox in a checkbox array is checked using the id of the checkbox array?
I am using the following code, but it always returns the count of checked checkboxes regardless of id.
function isCheckedById(id)
{
alert(id);
var checked = $("input[@id="+id+"]:checked").length;
alert(checked)...
I have the following function:
$("a#mylink").click(function(e){
e.preventDefault();
$.ajax({ url: $(this).attr("href") });
$(this).parent().parent().fadeOut("slow");
});
A link is being created on the page with the following code:
'<div style="margin-top: 4px; border: solid 2px #5151...
I'm looking to build a control that's a combination of the jquery ui progressbar and slider. What I really need is exactly like the range slider, except that the max shouldn't have a handle and shouldn't be movable by the user. I want to implement something like a buffered playback control, where the 'fill' is the max amount buffered and...
I have a modal window that presents a form to users. The form includes one or more file uploads as well. Therefore I cannot submit the form with ajax.
At the moment I'm doing a standard submit with a submit button. When the form is submitted (which takes a few seconds in general), a PDF is generated and sent back for download (i.e. the...
I have this function
$(this).each(function(index) {
arr[index] = ($(this).attr('id'));
console.log(arr[index]);
fullId[index] = "#"+arr.shift();
console.log(fullId[index]);
});
The results I'm expecting are
A
#A
B
#B
C
#C
D
#D
The actual results are
A
#A
B
Undefi...
I'm developing a mobile site for iPhone using jQuery. I have a hidden div (class .tile-content) that holds some content. Clicking a link with onclick="showContent(this)" calls fadeIn like this:
function showContent(obj)
{
alert($(obj).html());
$(obj).next('.tile-content').fadeIn();
r...
Hi,
I have select controls on a HTML page and using Jquery to
set change event.
But the event fires on the page load and does not fire when
I try to change values in the select controls.
Any ideas why?
$(function() {
$('select[id^=Start], select[id^=Finish], select[id^=Lunch]').change(CalculateHours($(this)));
});
...
Hello,
I have the following string elements that i want to append to the DOM, but in IE the tags do no close.
Example:
$("#accordion").append('<div id="mydiv" class="sortme">bla bla bla</div><div id="panel" class="accordionPanel"></div>');
After IE render it the div elements for instance are rendered without closing tag. It was suppo...
Hi All,
i have an Html String in which i have some elements having single quotes.When i put this inside a $('varHtml'); Since the varHtml already contains some single quotes it qives an error, Can Somebody help me how to Escape the single quotes in the varHtml
Thanks in Advance
Thomson
...
Is any Android browser able to process jQuery scripts?
which will be the 1st when?
/thx
...
I am trying to allow a click function if the user has checked a checkbox on the page. Otherwise, I want to add a class to the #additional_foreign button.
I think I am close, but it doesn't seem to be working.
Here is my code:
if($('#foreign_checkbox').attr('checked')) {
$('#additional_foreign').click(function() {
alert('T...
I have a html table similar to this:
<table>
<tr>
<td>1</td>
<td>Some text...</td>
</tr>
<tr>
<td>2</td>
<td>Some text...</td>
</tr>
<tr>
<td>3</td>
<td>Some text...</td>
</tr>
<tr>
<td>1</td>
<td>Some text...</td>
</tr>
<tr>
<td>1</td>
<td>Some text...</td>
</tr>
<tr>
<t...
Basically, I referred to some sources, and found this:
"Yah, that's easy, just create a div on your page, put the form in there, and make that your dialog." Well that's great, but what if you're trying to achieve maximum compatibility? What happens if for whatever reason a user has JavaScript disabled in their browser? Suddenly that e...