TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ashutosh Tripathi
NA
44
11.6k
javascript onresize not working
Aug 30 2015 8:30 AM
i am using
window.onresize
to fire some code which is not working due to some other code, i am unable to understand the meaning of other code to make required changes. I am providing both codes below:
My code which i want to execute
$(document).ready(function () {
if ($(window).width() > 1127) {
window.location = "http://www.24caratevent.com";
}
window.onresize = function (event) {
if ($(window).width() > 1127) {
window.location = "http://www.24caratevent.com";
}
};
});
Another code which create problem is:
$(document).ready(function(){
window.addEventListener('load', function() {
FastClick.attach(document.body);
}, false);
});
I have to merge my code into this code, so that the working of both will not get affected, and they both run in my project.
Reply
Answers (
1
)
I want to zoom image in browser using cursor
Rotate Multiple Images to 90 Degrees and save them.