Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
ben.joyce
ben.joyce's Profile
2
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Breaking change in IE9 re: each() and "this"
[2Replies]
06-Mar-2013 06:38 PM
Forum:
Using jQuery
Hello.
I've discovered some unexpected behavior to do accessing element attributes within an each() loop.
In IE8 the following code works:
jQuery.each(aPeople, function(idx)
{
var aDays = $('TD[PersonId=' + this.PersonId + ']');
}
I can read the PersonId attribute from the TD element using "this.PersonId".
However, the code does not work in IE9. It returns "undefined".
I've changed the code to this:
jQuery.each(aPeople, function(idx)
{
var aDays = $('TD[PersonId=' + $(this).attr('PersonId') + ']');
}
This works in both IE8 (in IE9 but running compatibility mode) and IE9.
Is the first version of the code is incorrect and should never have been used or is there a bug in IE9?
The version of jQuery is v1.3.2. I realise this is quite old but I'm concerned that dropping in a more recent version might cause more headaches.
Any advice/thoughts appreciated.
Cheers,
Ben
Faded backgrounds while showing JS alerts
[0Replies]
17-Dec-2009 09:18 PM
Forum:
Using jQuery
Hello.
I'm wondering if this is the best/correct way to "grey out" the background of my app while a JS alert/confirm box is shown.
Here's what I have come up with:
function btnDelete_OnClick()
{
$('#divAppContainer').fadeTo(100,0.33);
window.setTimeout("ConfirmDelete();",200);
}
I had some issues with calling ConfirmDelete() in the Callback of the fadeTo function so opted for this method instead.
Although this works, I wouldn't mind some input on if there is a better way... I'm new to JQuery and don't want to start out on the wrong foot.
Cheers,
Ben
«Prev
Next »
Moderate user : ben.joyce
Forum