Solved

HTML Header & Footer Tags

Posted on 1998-03-11
9
1,758 Views
Last Modified: 2013-12-25
I'm trying to create a front end to a Currency Converter website.  They suggest I can customer the Front and back end of there Conversion CGI program.  By front end, I mean use my own page colors and design.  The problem is, I'm not very familiar with the Header & Footer tags they sugesstion I use in the Form Post.

<INPUT TYPE="hidden" NAME="Header" VALUE="HTML_Header_string">

<INPUT TYPE="hidden" NAME="Footer" VALUE="HTML_Footer_string">

Is this simliar to the Include tag, where the Footer tag represents an HTML document?  The Currency site's URL is http://www.xe.net/currency/customize.htm.

Thanks.
0
Comment
Question by:d4jaj1
  • 5
  • 4
9 Comments
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
If i understand it correctly, this has nothing to do with any common protocol.

I mean, i guess "they" are just telling they have a CGI which accepts a couple of hidden fields to specify some HTML code to be put, respectively, as the header and as the footer of their result page.

So, basically, it seems that, while writing your front end form, you should add those hidden fields putting some personal HTML as the VALUE of them.

You could contact "them" and ask confirmation about this, and, also important, ask what you are allowed to put inside those VALUE attributes.
0
 
LVL 5

Accepted Solution

by:
julio011597 earned 50 total points
Comment Utility
Sorry, i must be spleeping... i've just seen i've given a url to look at.

Yes, it's how i guessed: just put need HTML into the VALUE attributes, being carefull to respect a few syntax requirements:

1. use square brackets instead of angle brackets, i.e. "[" and "]" instead of "<" and ">";
2. for double quotes, use the sequence \DQ and use \SQ for the single quote character.

So, say you want to show a banner on top of your customized page; the usual HTML code could be something like:

<IMG SRC="http://my.site/images/banner.jpg">

to put it into the VALUE attribute you should write:

<INPUT TYPE="hidden" NAME="Header"
  VALUE="[IMG SRC=\DQhttp://my.site/images/banner.jpg\DQ]">

I guess you now have it!
0
 
LVL 3

Author Comment

by:d4jaj1
Comment Utility
Thanks for the update, but now I'm kinda confused.  I have a website, complete with common backgrounds, button colors, etc. to give my users a familiar look throught the site.  Idealy I would like to display the results of their script "within" my existing site layout.  You answer is certainly correct, in that it answers my question, but I'll lose teh feel of my site if I can only link to graphics.  Can I show my page background behind the results and/or several pictures?
0
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
Lets try to think of it this way (dispite of my English :)

the resulting web page is made up of three parts:

1. the header stuff you provide, or, if you dont, a default header provided by xe.net;
2. the actual results (i guess a table or such);
3. the footer stuff you provide, or, if you don't...

So, basically,  you do have great control on the look of the result page.
I.e., in my sample i showed how to put an image as header, but you could put many lines of HTML code there, maybe including a BODY tag with your own background, and so on.

I suggest you go with some tries to know what you are really allowed to do.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 3

Author Comment

by:d4jaj1
Comment Utility
I follow what you are saying, but I'm not sure if I'm writing teh tags correctly, thus I'm not sure I'm the feature isn't supported or if I'm just typing it wrong.  I can add

    <INPUT TYPE="hidden" NAME="Footer" VALUE="I'm trying to create a front...">      OR  <INPUT TYPE="hidden" NAME="Header"
  VALUE="[IMG SRC=\DQhttp://my.site/images/banner.jpg\DQ]">

and an Image and Text appear at the top and bottom of the page.

I try;
    <INPUT TYPE="hidden" NAME="Header"
      VALUE="[<body bgcolor=\DQ#FF00FF\DQ> </body>]">
and
    <INPUT TYPE="hidden" NAME="Header"
      VALUE="[<body background=\DQborder.gif\DQ> </body>]">

to set the page color or background.  If I'm typing this correctly, can I assume I can't do it?  If I'm not typing it correctly, what am I missing?

Thanks for all of your help.


0
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
Hmm... i can see a few problems with it:

1. you have to use "[]" INSTEAD of "<>", i.e. write "[]" where you'd usually write "<>";

2. you would never write a document like this:
--//--
<HTML>
  <BODY bgcolor="#FF00FF">  </BODY>  <-- here is theHeader you are sending!!!
  ... other stuff here ...
  </BODY>
</HTML>
--//--
i.e., don't close the BODY tag: you are specifying a header!

3. you can put any HTML code you like as Header or Footer, except that i don't know if the BODY tag in particular is supported :(
To be sure, try this as Header and tell back what happens (posting the source of the result page would be of great help):

<INPUT TYPE="hidden" NAME="header"
  VALUE="[body bgcolor=\DQ#FF00FF\DQ]">

--

BTW, i'm glad to be of help, but this prolonged "support service" deserves some more points, doesn't it?
0
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
NAME="header"

should be:

NAME="Header"
0
 
LVL 3

Author Comment

by:d4jaj1
Comment Utility
Adjusted points to 50
0
 
LVL 3

Author Comment

by:d4jaj1
Comment Utility
I fianlly figured out the syntax.  I was able to add a page background and additional graphics.  No problem with teh points, either.  Thanks again.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now