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
Steve Bradwell
NA
6
0
getElementbyId.style doesn't appear in external js file intellisense
Oct 6 2009 3:26 PM
Hi All, I'm new to asp.net developement.
I'm trying to resize the height of a side nav div via js as the content panes for various options are loaded into hidden divs of variable height. The code:
var contentDom = document.getElementById("main-content");
var sidebarDom = document.getElementById("sidenav-content");
var temp = contentDom.offsetHeight;
sidebarDom.style.height = temp + "px";
works fine in the header of the aspx page. However, when moved to an exisiting js file I don't get .offsetHeight, or .style, or .innerHTML etc. displaying in intellisense, and these options are not working for me. Any help here is greatly appreciated? many thanks, Steve.
Reply
Answers (
2
)
Dynamic Menu from Database
getting aspx to run at godaddy... (from href a aspx page from a html page)