PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.html > Frames -- Disable/Enable Menus
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Frames -- Disable/Enable Menus

Réponse
 
LinkBack Outils de la discussion
Vieux 21/04/2008, 12h14   #1
Deepan HTML
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Frames -- Disable/Enable Menus

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!
  Réponse avec citation
Vieux 21/04/2008, 14h07   #2
Petr Vileta
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Frames -- Disable/Enable Menus

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>

  Réponse avec citation
Vieux 21/04/2008, 14h38   #3
Jonathan N. Little
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Frames -- Disable/Enable Menus

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

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Réponse avec citation
Vieux 22/04/2008, 02h47   #4
Petr Vileta
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Frames -- Disable/Enable Menus

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

  Réponse avec citation
Vieux 22/04/2008, 13h45   #5
Bergamot
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Frames -- Disable/Enable Menus

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.

--
Berg
  Réponse avec citation
Vieux 22/04/2008, 14h03   #6
Jonathan N. Little
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Frames -- Disable/Enable Menus

Petr Vileta wrote:
> 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
  Réponse avec citation
Vieux 22/04/2008, 17h30   #7
David E. Ross
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Frames -- Disable/Enable Menus

On 4/21/2008 6:07 AM, Petr Vileta wrote [in part]:
> 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/>.
  Réponse avec citation
Vieux 23/04/2008, 01h01   #8
Jonathan N. Little
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Frames -- Disable/Enable Menus

dorayme wrote:
> In article <3434f$480de160$40cba7d0$10126@NAXS.COM>,
> "Jonathan N. Little" <lws4art@central.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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 14h31.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13655 seconds with 16 queries