Sign In  |  Register
 
 
DotNetNuke Support Forums
How to get rid of the spmenu.js loading ?
Last Post 23 May 2007 03:02 AM by chocolate. 8 Replies.
Printer Friendly
Sort:
PrevPrevNextNext
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
chocolate
New Member
New Member
Send Private Message
Posts:51

--
21 May 2007 08: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
John Mitchell
Administrator
Veteran Member
Veteran Member
Send Private Message
Posts:4397
Avatar

--
21 May 2007 02:13 PM  
No, you will still need spmenu.js for the Action menus.
chocolate
New Member
New Member
Send Private Message
Posts:51

--
21 May 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.
John Mitchell
Administrator
Veteran Member
Veteran Member
Send Private Message
Posts:4397
Avatar

--
21 May 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
New Member
New Member
Send Private Message
Posts:51

--
22 May 2007 04: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.
John Mitchell
Administrator
Veteran Member
Veteran Member
Send Private Message
Posts:4397
Avatar

--
22 May 2007 08:02 AM  
Ok, I'll work up a snippet of code that you can place in your skin to do the same thing.
chocolate
New Member
New Member
Send Private Message
Posts:51

--
22 May 2007 08:45 AM  
Thanks John. I really appreciate your effort.
John Mitchell
Administrator
Veteran Member
Veteran Member
Send Private Message
Posts:4397
Avatar

--
22 May 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
New Member
New Member
Send Private Message
Posts:51

--
23 May 2007 03: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
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.


Active Forums 4.1
Visit our Store for great DotNetNuke Modules and Skins
DotNetNuke CSS Menu 3.4.6 (single use)

Item codeCSSNM33SU
AuthorJohn Mitchell
Base Price$39.00
Product Information 
DotNetNuke CSS NavMenu 3.4.6 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
DotNetNuke Performance Caching & Compression - PageBlaster 3.4.5 - Professional Edition

AuthorJohn Mitchell
Base Price$59.00
Product Information