Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0style.display is nullstyle.display is null
Previous
 
Next
New Post
7/17/2007 10:55 AM
 

I am creating a new custom module. Exactly when I hover over a menu item an error appears in the IE7 Browser:

Line: 262

Char: 2

Error: 'style.display' is null or not an object

Code: 0

I'm using DNN 4.5.3 and don't know where to begin to track this down.

 
New Post
7/17/2007 11:38 AM
 

If it only appears in IE7 -- this may not be the ultimate solution. but -- you can still do some investigating with firebug in firefox to track down what exactly is happening there.....

what menu item is it that you are hovering over? -- a custom menu?

-Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
7/17/2007 12:10 PM
 

I don't know that it only appears in IE7, that's just what my Vista development system has. It errors out hovering over any menu item such as "Home".

This error doesn't happen on other pages I have setup so I'm guessing it must have something to do with my custom control.

And Line 262 doesn't tell me anything. If I view source and copy and paste the HTML into Visual Studio where I can get a line number count, it only goes to line 186.

 
New Post
7/18/2007 9:03 AM
 

The following is the DNN javasript where this is breaking. eSrc is passed in as a Boolean False. Now I just have to figure out what is causing this. There is no style.display property for a Boolean.

//dims object

dnn_dom_positioning.prototype.dims = function (eSrc) {

var bHidden = (eSrc.style.display == 'none');

 
New Post
7/18/2007 10:18 AM
 

I have some more information. When I remove references to javascript source in my custom control in my custom module, the error goes away. Somehow this javascript is interfering with the DNN javascript. Any easy way to prevent this interference? Any easy way to track down this interference?

 

<script src="<%=this.ModulePath %>scripts/myscript.js" type="text/javascript"></script>

<link rel="stylesheet" href="<%=this.ModulePath %>css/mycss.css" type="text/css" media="screen" />

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0style.display is nullstyle.display is null


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out