|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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! |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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> |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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> |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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/>. |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|