473,394 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

menuse - yet another problem.

Ok, so I have a vertical expanding menu on my left column. I am using
frames and the left column is not wide enough for my submenu.

Is it possible to bring the sub menu across the boarders of frames??
Feb 20 '06 #1
7 1002
Prophet wrote:
Ok, so I have a vertical expanding menu on my left column. I am using
frames
Oh dear. http://allmyfaqs.net/faq.pl?Problems_with_using_frames
and the left column is not wide enough for my submenu.

Is it possible to bring the sub menu across the boarders of frames??


Well - you could duplicate the entire element in the other document and
carefully position it so it lines up - but it almost certainly isn't worth
it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 20 '06 #2

"David Dorward" <do*****@yahoo.com> wrote in message
news:dt*******************@news.demon.co.uk...
Prophet wrote:
Ok, so I have a vertical expanding menu on my left column. I am using
frames


Oh dear. http://allmyfaqs.net/faq.pl?Problems_with_using_frames
and the left column is not wide enough for my submenu.

Is it possible to bring the sub menu across the boarders of frames??


Well - you could duplicate the entire element in the other document and
carefully position it so it lines up - but it almost certainly isn't worth
it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

The reason I used a frames was that I wanted to have the menu constant and
only have to change one page rather than the 50 or so pages that the menu
brings up every time I ad something to the menu.

Is there a better way????
Feb 20 '06 #3
I think there are a couple of solutions to your problem. I'm no expert
by any stretch of the imagnation, but I've asked enough questions here
that I think I should at least try to pitch in.

You might be able to use some kind of ajax functionality to load the
page contents while not having to reload the rest of the page. The
basics are really quite simple and you can find several tutorials
online. Basically, when somebody clicked on one of your links, your
XMLHttpRequest object could send that request to the webserver and
populate the main page content element with the new content. This
would keep you from having to reload the menu for each page.

You could also, possibly, save the menu object into the session object
and then just print it out on each page. You'd want to do a check to
make sure the menu exists on each paint though and create it if it
doesn't exist.

Really though, unless your menu is extensive, I'd suspect that just
rewriting the menu every time the page is loaded wouldn't cause
extensive performance issues.

Like I said, I'm no expert, just thought I'd chip in my .02¢.

Feb 20 '06 #4

<sp****@gmail.com> wrote in message
news:11*********************@o13g2000cwo.googlegro ups.com...
I think there are a couple of solutions to your problem. I'm no expert
by any stretch of the imagnation, but I've asked enough questions here
that I think I should at least try to pitch in.

You might be able to use some kind of ajax functionality to load the
page contents while not having to reload the rest of the page. The
basics are really quite simple and you can find several tutorials
online. Basically, when somebody clicked on one of your links, your
XMLHttpRequest object could send that request to the webserver and
populate the main page content element with the new content. This
would keep you from having to reload the menu for each page.

You could also, possibly, save the menu object into the session object
and then just print it out on each page. You'd want to do a check to
make sure the menu exists on each paint though and create it if it
doesn't exist.

Really though, unless your menu is extensive, I'd suspect that just
rewriting the menu every time the page is loaded wouldn't cause
extensive performance issues.

Like I said, I'm no expert, just thought I'd chip in my .02¢.
I was not to worried about operating time - just the time to copy the menu
to all of the pages so that I do not have to use frames - especially since I
am adding new items to the menu on a continual basis.

I will look at the Ajax programming as I know nothing about it.
Feb 20 '06 #5
Prophet wrote:
Oh dear. http://allmyfaqs.net/faq.pl?Problems_with_using_frames
The reason I used a frames was that I wanted to have the menu constant and
only have to change one page rather than the 50 or so pages that the menu
brings up every time I ad something to the menu.

Is there a better way????


Yes. See the URL I referenced previously. It has a nice section labeled
"What are the alternatives to using frames?".

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 20 '06 #6

Prophet wrote:
"David Dorward" <do*****@yahoo.com> wrote in message
news:dt*******************@news.demon.co.uk...
Prophet wrote:
Ok, so I have a vertical expanding menu on my left column. I am using
frames


Oh dear. http://allmyfaqs.net/faq.pl?Problems_with_using_frames
and the left column is not wide enough for my submenu.

Is it possible to bring the sub menu across the boarders of frames??


Well - you could duplicate the entire element in the other document and
carefully position it so it lines up - but it almost certainly isn't worth
it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

The reason I used a frames was that I wanted to have the menu constant and
only have to change one page rather than the 50 or so pages that the menu
brings up every time I ad something to the menu.

Is there a better way????


The URL given to you by David should help you with that problem. Use
SSI (server side includes) to include one file across many pages. When
you make a change to a single file, the change will be seen across all
pages that have included it.

Feb 21 '06 #7

sp****@gmail.com wrote:
You might be able to use some kind of ajax functionality to load the
page contents while not having to reload the rest of the page. The
basics are really quite simple and you can find several tutorials
online. Basically, when somebody clicked on one of your links, your
XMLHttpRequest object could send that request to the webserver and
populate the main page content element with the new content. This
would keep you from having to reload the menu for each page.


Your solution could work, however what would you do for a user that has
javascript disabled? Site navigation becomes broken. You could
attempt to do graceful degradation, but this can become really messy.

Feb 21 '06 #8

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

Similar topics

0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
11
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class...
0
by: Refky Wahib | last post by:
Hi I need Technical Support I finished a Great project using .Net and SQL Server and .Net Mobile Control My Business case is to implement this Program to accept about 1 Million concurrent...
9
by: Sudesh Sawant | last post by:
Hello, We have an application which communicates using remoting. There is a server which is a Windows Service. The server exposes an object which is a singleton. The client is a Web Application...
117
by: Peter Olcott | last post by:
www.halting-problem.com
28
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass();...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.