NetTalk Central

Author Topic: Easy way to prevent headers and menu bars from showing?  (Read 3965 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Easy way to prevent headers and menu bars from showing?
« on: March 28, 2008, 05:32:42 PM »
I have a NetWebForm proc that I need to call without the header and footer from the rest of the application showing. I also don't want to have the menu bar show. Anyone know of an easy way to exclude a single proc from inheriting these from the rest of the app?
Mike Grigsby
Credify Systems
Central Oregon, USA

Rob Mikkelsen

  • Full Member
  • ***
  • Posts: 107
    • Yahoo Instant Messenger - flashpott
    • View Profile
    • Email
Re: Easy way to prevent headers and menu bars from showing?
« Reply #1 on: March 28, 2008, 08:23:22 PM »
Depending on how large your app is, it could be a PITA to change it, but what I do is to leave the header and footer blank in the global setup, then embed the <!-- Net:PageHeaderTag --> and <!-- Net:PageFooterTag --> in each of the procedures where and when I  want them. 

I just reviewed my largest app and found that I only used the header in two procedures.  The footer a bit more frequently.  It just started looking like more of the same after a while (which it was) and took valuable screen space.

Embedding the header and footer tags also allows you to change them out as necessary or set session variables that you can pass to the procedure.

The same applies to the menu bar procedure.

If it is easier to inhibit the call, with the number of embeds that are in the form procedure you should be able to look at the source code, then at the embed above the offending header, footer or menu, bracket the call with an IF FALSE, add an END at the embed below the call,  then replace the additional code that may have been deleted with the procedure call.

Cheers!

Rob Mikkelsen

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Easy way to prevent headers and menu bars from showing?
« Reply #2 on: March 28, 2008, 10:18:48 PM »
Hi Mike,

the reverse of Rob's answer is also true - and possibly more in tune with your situation.
Set the HeaderTag, and Footer Tag options for that NetWebForm (Advanced tab) to
''
(quote quote)
I think that'll work.

If the menu bar is in the header proc then this answers both questions.

Cheers
Bruce