473,657 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Menu when user Refreshes Frame

I am currently designing a webpage, and the left fram has a is a 6-cell table that is being used as a navigation tool. The table currently uses Javascript to visually keep track of the current choice and open the specified target fram to the right. My problem occurs when a user has a page open and hits the refresh button. The page refreshes, but the menu bar on left resets to "Home", the default value on loading. Is there anyway so that the page can refresh but the options along top stay the same? here is the address of my site: www.grapescape.net. Thanks for any assistance!

Jul 20 '05 #1
3 1619
netgroover wrote:
I am currently designing a webpage, and the left fram has a is a 6-cell
table that is being used as a navigation tool. The table currently uses
Javascript to visually keep track of the current choice and open the
specified target fram to the right. My problem occurs when a user has a
page open and hits the refresh button. The page refreshes, but the menu
bar on left resets to "Home", the default value on loading. Is there
anyway so that the page can refresh but the options along top stay the
same? here is the address of my site: www.grapescape.net. Thanks for any
assistance!


Hi netgroover,

What you want is a bit strange.
If I hit the refreshbutton I expect the page to refesh, all frames too.
If I want a certain frame to reload only, I'll just refesh that one.

Why do you want the standardbehavio ur to change? Because you have silly
customers who don't know what refresh means?
Teach them.

Regards,
Erwin Moller
Jul 20 '05 #2
Maybe I did a poor job of explaining my problem...

I have a navigation frame on the left, and a body frame on the right... I use javascript to make change the image buttons on the left (on, off, hover) and to change the target (body) frame on the right. If I click on the "contact" button image, the image is hightlighted, and the body content changes the the contact page. Now, if the user hits refresh, the javascript menu resets to "home", but the current body frame still shows the "contents" page. How do I retain the image variable in my navigation frame when the user refreshes (frames page).

Thank you for any useful comments.

Jul 20 '05 #3
netgroover wrote:
Maybe I did a poor job of explaining my problem...

I have a navigation frame on the left, and a body frame on the right... I
use javascript to make change the image buttons on the left (on, off,
hover) and to change the target (body) frame on the right. If I click on
the "contact" button image, the image is hightlighted, and the body
content changes the the contact page. Now, if the user hits refresh, the
javascript menu resets to "home", but the current body frame still shows
the "contents" page. How do I retain the image variable in my navigation
frame when the user refreshes (frames page).

Thank you for any useful comments.


Aha,

That makes sense, because both pages are just reloaded, so your
content-frame will just reload the last one that was in there.

To correct your problem, you could use an onLoad handler in your
navigationframe .
What you want to achive is that the content-frame conatins the home-html.

Just put in your body tag the handler and let it call some function you
want.
<body onLoad="someFun ction()">

<script type="text/javascript">
function someFunction(){
parent.frames["contentfra me"].location="home .html";
}
</script>

Something like that should make sure that the contentframe will show what
you want.

Regards,
Erwin
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
5003
by: elad | last post by:
Hi The Menu doesn't work properly when I have 2 frame and the Menu popup frame=document target frame, when I choose item in the menu the doc opened and the menu get stuck. Here is the code I'm using: FrameSet ------------------------------------------------------- <html>
4
3831
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following beautiful script "http://javascript.internet.com/navigation/toolbar-menu.html". It works like a charm. I made my webpage in frames, where the nav-frame shows the menubar, so whenever I click a link in the menubar, it opens in the frame below. But...
8
1649
by: Phoenix | last post by:
Here's a challenge that is killing me: I've got 2 web servers and a SQL Server and about 5,000 'users' who stay connected to the site all day. I have a page that is supposed to be 'real-time', so to do this, I have a 1px frame that refreshes every 15 seconds (so the other frame doesn't have to reload all the time--the top only reloads when a new record or a changed record hits the db). The real time data can be filtered in about 8...
4
5762
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
5
2075
by: Bob N | last post by:
I have an ASP.NET web page -- several auto-post back DropDownLists that perform a query against a relatively large database (3 to 4 seconds delay) that repopulate a couple of datagrids, comboboxes and a chart (using dotnetCharting control) on the same page. This works just fine on its own. However, when I integrated the page into the rest of the site, it is then placed inside a frameset. Again, the page seems to work fine EXCEPT under the...
3
1686
by: Ohad Young | last post by:
Hi, I have a frameset page that contains two frames: 1. the first frame, an aspx page, contains a menu for navigating in the website. 2. the second frame contains content, pdf, html or other aspx files The problem is that the menu activates a server-side methods when the user clicks on one of the menu items. However, from the server side I cannot control in which frame the content will appears, it will always be in the menu frame...
5
3507
by: Martin Chen | last post by:
I have a frame set (as per MS FrontPage 2000). It has a contents and a main frame. The contents frame has a menu bar written with with javascript (in the context of a table). In IE6.1 everything works fine as it also does in firefox if I call the contents frame directly (i.e. outside of its frameset). However, if I call my main page (index.html) which invokes the frame set, the contents frame javascript menubar onmouseover function...
1
2307
by: Neverhood | last post by:
Hi folks, I'm trying to make a small game about being a drug dealer, with a 10x8 grid JPanel. On top of that i have another 10x8 grid JPanel as glassPane for the player icon. I have all the properties of the player in a player object class with getter and setter methods for fx his X and Y position in the grid. When i set up his X and Y position myself everything works fine and he is painted the right place. My problem is when my keyPressed...
0
8326
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8845
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8743
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8622
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.