Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

How to get rid of the spmenu.js loading ?

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
chocolate
Posts:51



05/21/2007 8:56 AM  
Hi John, I decided to use the House Menu for my portal instead of the Solpart Menu. However, when I view the page source, it seems that spmenu.js is still being loaded. Can I get rid of that?

Thanks,
Duc

Pijaja.Com - Innovative Site Builder
John Mitchell
Posts:3276



05/21/2007 2:13 PM  
No, you will still need spmenu.js for the Action menus.
chocolate
Posts:51



05/21/2007 10:32 PM  
Well I already knew that. But when I view your site's page source, spmenu.js is not being loaded. I just wonder how you did the trick.

Pijaja.Com - Innovative Site Builder
John Mitchell
Posts:3276



05/21/2007 11:01 PM  

Oh, no fair peeking ;)

I use PageBlaster to remove it on my Home Page. I also have several more replacement rules to make it validate XHTML strict.

chocolate
Posts:51



05/22/2007 4:35 AM  
Hehe that's cool. I've checked some other famous DNN sites and none is able to do the same thing. This is definitely a big advantage when you managed to reduce nearly 70KB on initial load.

Unfortunately, I can't afford 50$ at the moment. Converting it to my country's currency, well, it's quite large for a student like me. But does an alternative method exist though? Because loading this file seems useless, since unauthenticated users surely don't need to use it when there's no solpart menu.

Pijaja.Com - Innovative Site Builder
John Mitchell
Posts:3276



05/22/2007 8:02 AM  
Ok, I'll work up a snippet of code that you can place in your skin to do the same thing.
chocolate
Posts:51



05/22/2007 8:45 AM  
Thanks John. I really appreciate your effort.

Pijaja.Com - Innovative Site Builder
John Mitchell
Posts:3276



05/22/2007 12:39 PM  

I started to do this and then realized that you will not be able to replace spmenu.js from code in the skin because that is part of the page outside of the skin.  Having access to the whole page was one of the reasons I created the PageBlaster module.

You could do it with the free PageBlaster though.

And it just came to mind that I had answered a simular question on how to do this before:

http://www.snapsis.com/DotNetNuke/Support/tabid/560/forumid/11/tpage/1/view/topic/postid/5164/Default.aspx

 

chocolate
Posts:51



05/23/2007 3:02 AM  
Excellent! I think you should add an entry regarding this issue in your blog. I'm sure everyone who use other menus than Solpart will love to know.

Thanks again for your help,
Duc

Pijaja.Com - Innovative Site Builder
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > How to get rid of the spmenu.js loading ?



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information