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
external javascript file - .style .innerhtml etc
Oct 7 2009 9:05 AM
Hi All, I'm new to asp.net development. I'm using vs 2008 with c#. I'm running the code below in an aspx page, and it works fine, I tried moving it to an external javascript file, but when i do I don't get the full set of methods for getelementById() like .style, .innerhtml etc where I do when I put the javascript directly in the aspx page. The external js file is included correctly from the aspx page, and some javascript is working, it just seems to be a limited set of available functions.
var contentDom = document.getElementById("main-content");
var sidebarDom = document.getElementById("sidenav-content");
var temp = contentDom.offsetHeight;
sidebarDom.style.height = temp + "px";
Any help here is greatly appreciated?
Many thanks, Steve.
Reply
Answers (
3
)
free vcp-410 braindumps download
Is there a way to feed or stream our content to another site