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 1MB.
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:
phuc.quang
phuc.quang's Profile
1
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
IE: jQuery and Prototype conflict
[2Replies]
14-May-2010 01:31 AM
Forum:
Using jQuery
Hi,
For some reason, my page has to use both prototype and jquery. However, there is a weird problem about getting width and height of an element using jQuery.
Here is my test page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Conflict</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script>var $j = $.noConflict();</script>
<script type="text/javascript" src="http://prototypejs.org/assets/2009/8/31/prototype.js"></script>
</head>
<body>
<img id="thumb" src="http://img190.imageshack.us/img190/9420/1156473.jpg" alt = "" />
<script>
$j(window).load(function(){
alert($j("#thumb").width() + " " + $j("#thumb").height());
});
</script>
</body>
</html>
Running in Firefox, it shows "110 110", which is correct. However, running in IE (IE8), it shows "886 478". I don't know where that value comes from.
Please help!!!
Attachments
Download
Delete
1156_473.jpg
Size: 4.22 KB
Downloads: 753
«Prev
Next »
Moderate user : phuc.quang
Forum