close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Menu Current Page Wrong on Initial Site Load

Thread began 5/07/2012 10:49 am by KevinK303762 | Last modified 5/07/2012 2:21 pm by Jason Byrnes | 1398 views | 5 replies |

KevinK303762

Menu Current Page Wrong on Initial Site Load

Hello,

I have created a horizontal menu with CSS Menu Writer 2.06 and everything is working great except for one issue. When the website is loaded for the first time, the wrong page in the menu is being displayed as the current page, when it should be the home page that is shown as current. The Order link that is being initially displayed as the current page is slightly different from the other links in that it is and external website that is called, not a local page. The site can be viewed at www.usmbuy.com I have also provided the menu.asp file if needed.

Once one navigational click is performed everything functions as expected. Does anyone have any possible insight as to why the initial load of the website causes the menu to display the incorrect current page?

Thank You,
Kevin

Attached Files
menu.zip
Sign in to reply to this post

MikeyT

I had the exact same problem with a site I just finished. I came across this solution from Jason in the following thread:

showthread.php?t=23699&highlight=current+state

Insert the php code at the top of your index page.

Sign in to reply to this post

MikeyT

Oh, sorry... I just realized your site isn't written in PHP.

Sign in to reply to this post

Jason ByrnesWebAssist

It's the same issue as MikeyT had, if you visit the page with the page name in place:
index.asp


the menu highlighting is working as it should.

I think you can use this code to fix the issue in ASP VBScript:

<%
IF Request.ServerVariables("URL") = "/" Then
Response.Redirect "http://www.usmbuy.com/index.asp"
End IF
%>
Sign in to reply to this post

KevinK303762

Hi Jason,

Thanks for the quick response on this. I tried your suggestion and got the following runtime error:

Microsoft VBScript runtime
error '800a000d'
Type mismatch: '[string: "/index.asp"]'

I completely understand what you are trying to accomplish, but I am for some reason unable to put two and two together. It is most likely something ridiculously simple that I am overlooking.

Kevin

Sign in to reply to this post

Jason ByrnesWebAssist

I would need to look at the code to troubleshoot.

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

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...