HighDots Forums  

Frames -- Disable/Enable Menus

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Frames -- Disable/Enable Menus in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Deepan HTML
 
Posts: n/a

Default Frames -- Disable/Enable Menus - 04-21-2008 , 06:14 AM






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!

Reply With Quote
  #2  
Old   
Petr Vileta
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-21-2008 , 08:07 AM






Deepan HTML wrote:
Quote:
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>



Reply With Quote
  #3  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-21-2008 , 08:38 AM



Petr Vileta wrote:

Quote:
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...=Google+Search
how to include one html file in another - Google Search


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

--
Take care,

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


Reply With Quote
  #4  
Old   
Petr Vileta
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-21-2008 , 08:47 PM



Jonathan N. Little wrote:
Quote:
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...=Google+Search
how to include one html file in another - Google Search


http://www.google.com/search?hl=en&q...il&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>



Reply With Quote
  #5  
Old   
Bergamot
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-22-2008 , 07:45 AM



Petr Vileta wrote:
Quote:
Jonathan N. Little wrote:

http://www.google.com/search?hl=en&q...il&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?

Quote:
(see Subject)
Welcome to Usenet.

--
Berg


Reply With Quote
  #6  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-22-2008 , 08:03 AM



Petr Vileta wrote:
Quote:
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...=Google+Search

how to include one html file in another - Google Search


http://www.google.com/search?hl=en&q...il&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)
Yes but if you are employing server-side then there is no need for
frames in the first place. Frames was an early *hack* to modularize
webpage development when server-side scripting was being developed and
both expensive and not widely available. Again with my favorite analogy,
why would a lumberjack cling to his ax after the development of the
chainsaw?


--
Take care,

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


Reply With Quote
  #7  
Old   
David E. Ross
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-22-2008 , 11:30 AM



On 4/21/2008 6:07 AM, Petr Vileta wrote [in part]:
Quote:
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.
Gecko-based browsers (Firefox, SeaMonkey, Camino, and others) have the
user option to disable JavaScript from affecting context menus without
completely disabling JavaScript.

--
David Ross
<http://www.rossde.com/>

Have you been using Netscape and now feel abandoned by AOL?
Then use SeaMonkey. Go to <http://www.seamonkey-project.org/>.


Reply With Quote
  #8  
Old   
dorayme
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-22-2008 , 06:30 PM



In article <676505F2nqtelU2 (AT) mid (DOT) individual.net>,
Bergamot <bergamot (AT) visi (DOT) com> wrote:

Quote:
Petr Vileta wrote:
Jonathan N. Little wrote:

http://www.google.com/search?hl=en&q...il&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.
Welcome to the hysterical fundamentalisms that liken using frames to
shooting oneself.

--
dorayme


Reply With Quote
  #9  
Old   
dorayme
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-22-2008 , 06:32 PM



In article <3434f$480de160$40cba7d0$10126 (AT) NAXS (DOT) COM>,
"Jonathan N. Little" <lws4art (AT) central (DOT) net> wrote:

Quote:
Again with my favorite analogy,
why would a lumberjack cling to his ax after the development of the
chainsaw?
Because it is easy to carry and much easier to sharpen and is much less
dangerous. Any other analogies?

--
dorayme


Reply With Quote
  #10  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Frames -- Disable/Enable Menus - 04-22-2008 , 07:01 PM



dorayme wrote:
Quote:
In article <3434f$480de160$40cba7d0$10126 (AT) NAXS (DOT) COM>,
"Jonathan N. Little" <lws4art (AT) central (DOT) net> wrote:

Again with my favorite analogy,
why would a lumberjack cling to his ax after the development of the
chainsaw?

Because it is easy to carry and much easier to sharpen and is much less
dangerous. Any other analogies?

Obviously you've never chopped down a tree with an ax.

--
Take care,

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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.