NetTalk Central

Author Topic: Windows Menu on Frame  (Read 4984 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Windows Menu on Frame
« on: March 06, 2009, 04:40:26 AM »
Hi,
Have a site with 3 frames, 1 on top (Header) and two on bottom, left and right.
I need to add a windows menu to the left frame

I try making a MenuWin NetWebPage proc with the menu, and add it to WebServer/Settings/General/Generic Header Tag as '<!-- Net:MenuWin -->' but it does not work. Nothing appears.

I use the Footer Page at WebServer/Settings/General/Generic Footer Tag and it works ok.

How can I do it?

Thanks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Windows Menu on Frame
« Reply #1 on: March 06, 2009, 07:39:44 AM »
In the examples with frames, you'll notice the generic header, and generic footer, are not, well, generic.
They're not "set" as generic in the webserver procedure.

This is for a good reason - in a frame situation the browses and forms tend to appear in a frame _whout_ extra headers and footers. The headers and footers are in frames of their own.

For an example of a menu in a frame see example 4, or 7. You can change the menu type in the "menuonleft" procedure.

Cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Windows Menu on Frame
« Reply #2 on: March 06, 2009, 07:59:45 AM »
Thaks Bruce but...

I dont want to loose page space letting a frame only to hold a menu.

I´ve tried adding a menu to the meader page (top frame) and it works, but, the menus opens up to the top of the page and I dont like very much.

Is there any way to add the menu to the bottom-left frame in which browses and forms and pages will be displayed?

Thanks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Windows Menu on Frame
« Reply #3 on: March 08, 2009, 12:38:42 AM »
bottom left- or bottom right?

usually (but of course not necessarily) the browses and forms are in bottom right.
If so, then yes - just set the generic header as normal in the web server procedure.
and add the menu to the header.

Cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Windows Menu on Frame
« Reply #4 on: March 09, 2009, 12:54:57 AM »
Button left, I need the bottom right frame to display publicity.
Setting the generic Footer works ok but the generic header does not work.

Any idea?
Thanks
Alberto
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Windows Menu on Frame *FIXED*
« Reply #5 on: March 09, 2009, 03:05:52 AM »
Bruce:
My page header was a Page template, changing it to a source it works ok... why?

Thaks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Windows Menu on Frame
« Reply #6 on: March 09, 2009, 09:36:07 PM »
Because you cannot embed a page on a page.

A NetWebPage is a "page" - in other words it has a header, footer and so on in html. html pages only have one HEAD section etc.

A NetWebSource is _not_ a page, it is designed to be embedded on other pages. It does not have the HTML head part, so cannot be a page on it's own.

A NetWebBrowse and NetWebForm are special. They can behave either as "includes" on another page, or if called directly will be wrapped inside a "generic page".

The Header and Footer tags you specify on the WebServer procedure have to be NetWebSource, and will be included before, and after, Browse and Form procedures, ONLY IF those browses & forms are called as "pages".

Cheers
Bruce