Click here to get back home

Frames -- Disable/Enable Menus

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Frames -- Disable/Enable Menus Deepan HTML 04-21-2008
Get Chitika Premium
Posted by Deepan HTML on April 21, 2008, 7:14 am
Please log in for more thread options
Hi All,
Currently i am working in a framed environment where i have
divided the window as 20% and 80% and the 20% is used for navigation
purpose and right frame for displaying the orignal content. Now i want
to Disable ad Enable the menu items which are placed in the left frame
for navigation purpose.

Can any of you input me with any idea as how to proceed? If you
need any other information then please let me know.

Thanks!

Posted by Petr Vileta on April 21, 2008, 9:07 am
Please log in for more thread options
Deepan HTML wrote:
> Hi All,
> Currently i am working in a framed environment where i have
> divided the window as 20% and 80% and the 20% is used for navigation
> purpose and right frame for displaying the orignal content. Now i want
> to Disable ad Enable the menu items which are placed in the left frame
> for navigation purpose.
>
> Can any of you input me with any idea as how to proceed? If you
> need any other information then please let me know.
>
There is two possible ways to do it.
First way is to use javascript and it is relatively simple. You define
javascript function to control menu item status and call it as onload() at all
right pages with 2 parameters - item id and needed state. For example
<body onload="setmenu('first','disable')">
This way you can use for static html pages.

Second way is to use scripts (Perl CGI or PHP) to generate frameset and left
page. In this case you must use links to frameset with parameters and this
script (for generating frameset) pass paramaters to other script for
generating left menu. This way is relatively more complex but work even if
user have javascript disabled.

--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>


Posted by Jonathan N. Little on April 21, 2008, 9:38 am
Please log in for more thread options
Petr Vileta wrote:

> Second way is to use scripts (Perl CGI or PHP) to generate frameset and
> left page. In this case you must use links to frameset with parameters
> and this script (for generating frameset) pass paramaters to other
> script for generating left menu. This way is relatively more complex but
> work even if user have javascript disabled.

If doing it this way then dispense with frames all together!

http://www.google.com/search?hl=en&q=how+to+include+one+html+file+in+another&btnG=Google+Search
how to include one html file in another - Google Search


http://www.google.com/search?hl=en&q=why+frames+are+evil&btnG=Search
why frames are evil - Google Search

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Posted by Petr Vileta on April 21, 2008, 9:47 pm
Please log in for more thread options
Jonathan N. Little wrote:
> Petr Vileta wrote:
>
>> Second way is to use scripts (Perl CGI or PHP) to generate frameset
>> and left page. In this case you must use links to frameset with
>> parameters and this script (for generating frameset) pass paramaters
>> to other script for generating left menu. This way is relatively
>> more complex but work even if user have javascript disabled.
>
> If doing it this way then dispense with frames all together!
>
>
http://www.google.com/search?hl=en&q=how+to+include+one+html+file+in+another&btnG=Google+Search
> how to include one html file in another - Google Search
>
>
> http://www.google.com/search?hl=en&q=why+frames+are+evil&btnG=Search
> why frames are evil - Google Search

Yes, I know it, but original question was be about "How to do for frames" ;-)
(see Subject)
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>


Posted by Bergamot on April 22, 2008, 8:45 am
Please log in for more thread options
Petr Vileta wrote:
> Jonathan N. Little wrote:
>>
>> http://www.google.com/search?hl=en&q=why+frames+are+evil&btnG=Search
>> why frames are evil - Google Search
>
> Yes, I know it, but original question was be about "How to do for frames" ;-)

If you asked how you could shoot yourself in the foot, don't you think
we'd rather talk you out of it than provide step-by-step instructions?

> (see Subject)

Welcome to Usenet. ;)

--
Berg

Similar ThreadsPosted
sub-menus August 5, 2005, 6:45 am
pulldown menus September 8, 2005, 7:23 pm
Drop down menus February 12, 2006, 4:45 am
best way to markup navigation menus? July 9, 2004, 11:37 pm
dependent select menus January 23, 2007, 6:47 pm
Customizable dropdown menus? February 2, 2008, 10:24 pm
Problem with expanding/collapsing menus and NE7 August 26, 2004, 7:04 pm
Help: Adding a banner to a site that uses "flanking menus", and CSS August 19, 2004, 6:00 am
Dropdown menu javascript menus a bad choice? July 22, 2005, 10:06 pm
Create Pulldown Menus for Month/Day/Year in HTA December 29, 2006, 10:31 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap