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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryArticles Template - Show/Hide Error?Articles Template - Show/Hide Error?
Previous
 
Next
New Post
3/15/2008 7:44 AM
 

Running on DNN v04.08.01 - Repository v03.01.13

When I insert a Repository Module in any page it displays correctly, but I see in the error conole (FF WebDeveloper Toolbar):

Error: window.attachEvent is not a function
Source File: http://localhost:1861/MyWebSite/DesktopModules/Repository/js/pngfix.js
Row: 29

Ok, I don't mind as long as it works. Then I switch to "articles" the Template, I add an article, I publish it, and see its summary, but when I try to show the text of the article clicking on "read article" nothing happens, and this is recorded in the error console:

Error: missing ; before statement
Source File: http://localhost:1861/
MyWebSite/Info/tabid/54/Default.aspx
Row: 466, Column: 54
Source:
        el.innerHTML = '<span class="ArticleToggle">read article</span>';

Any ideas anyone?

P.S. Experienced in FireFox 2.0.0.12 and Internet Explorer 7.0.5730.13, same result.

 
New Post
3/15/2008 9:41 AM
 

Dario,
I used google to search for that error and is it possible that the server you are running on had Atlas installed at some point?

"If you get an error of window.attachEvent is not a function when using Microsoft Atlas then you need to include the AtlasCompat.js file too. Such are the joys of trying to do Atlas without all the ASP.NET wizardry. So far prototype is a lot better in getting started with."

I would suggest either uninstalling Atlas, or looking for  the AtlasCompat.js file and incorporate it into your DNN site.

 
New Post
3/15/2008 10:57 AM
 

Thank you very much for you prompt response.

I figured out the problem with the showhide.js was caused by the italian translation of the module that I created. In fact "read article" in italian is "leggi l'articolo", this caused the js onclick statement to go crazy. Now everything goes smooth, the article shows and hides perfectly.

Anyway the window.attachEvent is not a function error still occurs, but as long as it doesn't affect module's functionality, I will not try to go deeper in the Atlas Compatibility Matter. In fact I faced the error on a local install, using Web Developer Express 2008 and .Net Framework 3.5, maybe in production this will be correct.

Thanks anyway, your professionality on this forum helped me much!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryArticles Template - Show/Hide Error?Articles Template - Show/Hide Error?


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