close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

'Current Page Only' doesn't work any more

Thread began 12/14/2009 3:09 am by elspeth383646 | Last modified 3/03/2010 10:24 pm by info400292 | 5309 views | 21 replies |

elspeth383646

'Current Page Only' doesn't work any more

In MenuWriter, I am unable to get the 'current page only' option to work. It worked the first time I ever used it but no more. I must have gone thru' the MW process so many times now I'm sure I could almost complete it with my eyes shut. Nothing I'm doing helps. What am I doing wrong - I can't figure it out. PLEASE give me some tips to put me back on the right path. I'd be extremely grateful believe me!

Elspeth

Sign in to reply to this post

Jimmy Wu

What happens when you set the property and then view the pages in a browser? Does anything get highlighted?

Do you have links set up for each of the menu items and are they exactly matching what the page is showing up in the browser when you click on the menu item?

Sign in to reply to this post

elspeth383646

Hi Jimmy

I believe I have done everything correctly in Menu Writer. When I view the page in a browser the hover state works but not current ie no page is highlighted.

Since posting I have discovered that I can make it work by manually inserting 2 classes in the html like this:-

<ul class="level-0" id="cssmw1">
<li class="current"><a href="index.html"class="current">home</a></li>

Why should I have to do this? The current state DID work the first time I tried it.

Also, please can you tell me - why does my css not validate just after I insert the menu using MenuWriter? I get this from the W3C Validator -

@import are not allowed after any valid statement other than @charset and @import. @import url("CSSMenuWriter/cssmw1/menu.css");

PLEASE HELP - in anticipation, Thanks!

Sign in to reply to this post

Jimmy Wu

Could you post up the page in question that is giving this validation error?

Also, as a test, could you try creating a new blank site and testing the current page only option on that site to see if that works? Are any of the other options for the highlight working as they are supposed to?

Sign in to reply to this post

sandy170299

I'm having the exact same problem. I also have to manually enter the following

<ul class="level-0" id="cssmw1">
<li class="current"><a href="index.html" class="current">Home</a></li>

in order for the current state to be displayed when I load index.html.

Sign in to reply to this post

Ray BorduinWebAssist

The current state functionality is done with the javascript. It may be a bad javascript page reference causing the issue. Do you have a sample url?

Sign in to reply to this post
Did this help? Tips are appreciated...

sandy170299

Ray, this is only on my local PC for the time being. Should I send the javascript file to you?

Sign in to reply to this post

Ray BorduinWebAssist

I think it would be better to just wait until you have a url I can look at. Could you post it up temporarily somewhere so I can look?

Sign in to reply to this post
Did this help? Tips are appreciated...

sandy170299

Here it is - temporarily. It's very much a work in progress and only the first two links are valid at this point. It takes awhile to load because (temporarily) I'm using a huge PNG file for the background - so be patient, please :)

index.html

Sign in to reply to this post

Ray BorduinWebAssist

The code is as if you hadn't checked that option... I see:

<script type="text/javascript">if(window.attachEvent) { window.attachEvent("onload", function() { cssmw1.intializeMenu('cssmw1',{select_current: 0, orientation: 1}); }); } else if(window.addEventListener) { window.addEventListener("load", function() { cssmw1.intializeMenu('cssmw1',{select_current: 0, orientation: 1}); }, true); }</script>




I think you need to replace: select_current: 0 with select_current: 1

so it should be:

<script type="text/javascript">if(window.attachEvent) { window.attachEvent("onload", function() { cssmw1.intializeMenu('cssmw1',{select_current: 1, orientation: 1}); }); } else if(window.addEventListener) { window.addEventListener("load", function() { cssmw1.intializeMenu('cssmw1',{select_current: 1, orientation: 1}); }, true); }</script>
Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...