SSI, shtml and repetitive HTML code

Hello,
Over the last couple of weeks I've learned how to make drop down menus (basic stuff, ul/li with css styling - the "fancy" part is "rounded corners" :-) ). They look very nice and work quite well on my site. I made one drop down menu on one page of the site and was going to wait until the site was completed, then add the "final" drop down to all 40 pages.
Thinking a bit about a css style sheets and java functions, I wondered if there was a way to write a small file, attach it to a series of pages, then if necessary just change the one small file, and have it applied to all pages (didn't want to do a template).
Googling a bit I found the concept of SSI and "include" HTML functions - it works very well on my site.
My question to the group is:
If you were to have something repetitive (footer, header, navbar, etc), and if you didn't want to use a template would you use
(1) include function,
(2) some type of javascript file, or
(3) some other method?
Thanks!

Very good! Thanks very much!
For other newbies such as myself, I'll mention a couple of things I learned while doing this.
1 - There are many pages on the web that talk about using SSI, but it is clear that they really don't understand it. What I've learned is that your "major page" (the page into which you insert the "include" code) needs to be labeled xxxxx.shtml. The "s" in front of the "html" lets the server know that it has to "include" other stuff before it's piped out to the browser.
2 - The "minor page" file - that small amount of code that you insert into the major page - is labeled xxxx.html.
3 - An ISP might not have SSI turned on (I'm not sure why) so if the two files together don't work, contact your ISP to see if they have turned on SSI, and
4 - The reference code in the "major page" looks like a typical html comment.
My line of code that works fine is:
<!--#include file="navigationbar.html"-->
I have not yet experimented with adding a few spaces to see if that would disable the line.
I have yet to experiment to see if changing the extension of the .html file will allow the system to continue to work.
More experimentation for me!
Thanks very much again.

Similar Messages

  • PDF and column HTML code

    My report table include column with HTML format such as
    <a target="_blank" href="tableA.url">tableA.url</a>
    It works fine in dashbaord: I see the URL and when click on it, I got the URL in new window.
    When I export to PDF, the resulting PDF display the HTML code and not just the URL.
    Any ideas?

    user8257465 wrote:
    Hi,
    I tried to achieve this before without success. My conclussion was that the pdf converssion engine that OBIEE uses is not able to generate HTML code inside the pdf.
    Me too I will like to know if someone achieved this.
    Thanks,Unfortunately, your assessment is correct: when printing to pdf, the HTML codes are exposed rather than maintaining the functionality of the coding.

  • In which DB table standard Web Templates located and also HTML code

    Hi gurus,
    Please help me on locaton of Standard Web Templates in DB table and how can I see the HTML code in WAD. Thanks in advance and I will assign points.
    Kaveri

    Hi,
    check the following link :
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/54e487c277321ae10000000a422035/frameset.htm
    1. open the web application designer
    2. left side u'll be seeing the applications like Table, dropwdown box , check box etc
    3.usually u drag and drop the application from left to right side--> once u dropped it u'll see 3 tabs at the bottom in that one of the Tab is HTML just click on it, it will lead u to the coding part.

  • Problem in copy and paste html code generated from google adsense

    tell me where can i paste the html code in mozila .
    I am having account in googlemadsense and whenever i try to copy and go to paste in html it dosent work.please reply me.

    Hi Thanks for reply,but my dear freind as I written in my previous mail also that I am having account in google adsense and as per the given instructions only,when i try to paste the html code,which was generated from their adsense adposting , i try to paste that code after opening the html sources box,that code was not accepted.The html source window was slightly blocked.
    And for your information i am not try to paste any other code from any otherwebsite like word press etc
    Waiting for your reply soon.
    Kavitha

  • Copy and paste html code

    When i paste and copy the html code (web widget- snipet) from ebay to my iweb site it converts the price from uk £'s into US $'s. How can i stop this.
    thanks paul

    Hi Thanks for reply,but my dear freind as I written in my previous mail also that I am having account in google adsense and as per the given instructions only,when i try to paste the html code,which was generated from their adsense adposting , i try to paste that code after opening the html sources box,that code was not accepted.The html source window was slightly blocked.
    And for your information i am not try to paste any other code from any otherwebsite like word press etc
    Waiting for your reply soon.
    Kavitha

  • I can not copy and paaste html code to add to craigslist, i use an html code from vflyer for craigslist add, when using my galaxy note 10.1 i get error messagen

    i can not use copy and paste feature on my tablet, it says mozilla feature not active. i downloaded firefox and still cant paste html code for my craigslist ad....please help

    Step by step, how did you arrive at seeing this agreement?

  • Using RH10 - what's the easiest way to create and save HTML code as a snippet for later re-use?

    I am using RH10 to maintain and update several WebHelp projects for customer-facing Internet applications. I am noticing inconsistencies in css and html so I would like to create several snippets for later re-use.  My wishlist, so far:  FAQ page with internal bookmarks, product image with table of callouts, and basic page template with corporate header and footer. What's the easiest way to save / export a page that I want to use later as a snippet? Thank you.

    Have you thought about using the Resource Manager?

  • Html code exported instead of text

    Hi,
    I created an interactive report via a SQL query and used html code for one column in this SQL query:
    (case when test1>1 then '{a href=JavaScript:newPopup("f?p=&APP_ID.:PageId:&SESSION.::&DEBUG.:::"); }text1{a} else '' end )|| ' '|| (case when test2>1 then 'text2' else '' end ) "title 1"
    This column is displayed correctly (the text1 is diplayed as a link and text2 is displayed as text) in this interactive report, however, once user uses the download function, the html code {a href=JavaScript:newPopup("f?p=&APP_ID.:PageId:&SESSION.::&DEBUG.:::"); }text1{a} text2 is exported.
    Is there any way to fix this issue?
    Thanks,
    Ethan

    Can you tell us - exactly - what file your link is pointing
    at. For instance, it should be pointing at the HTM file, but which
    HTM file?
    Also, can yo uplease list - exactly - what ifles you have
    uploaded (list). Thanks!

  • IWeb hangs (spinning beachball) when I try to paste HTML code from DW-why?

    Can anyone tell me why this might be happening? When I try and paste HTML code from Dreamweaver using Web Widgets. Then the only solution is to Force Quit which means I lose any other work I've already done in iWeb. Anyone else had this problem? Is there a workaround?

    Your last two posts didn't appear in the forum! They came through my email but there is no link.

  • Why does Contribute generate extraneous HTML code?

    Why does Contribute CS4 generate so much extraneous HTML code that is either redundant or conflicts with styles specified in our style sheet?  Below are examples of what we've encountered in the first two weeks of using the product.  It seems that, if we keep using Contribute, our website will soon be cluttered with junk code.  (Some of the special characters listed below and generated by Contribute do not display correctly in this forum.)
    1.       This simple Heading 1 tag: <h1>Heading 1</h1>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:times new roman;font-size:16px;"><strong><span style="font-family:verdana; font-size:15px;">Heading 1 </span></strong></span></p>
    2.       This simple Heading 2 tag: <h2>Heading 2</h2>
    gets replaced with this code:
    <p><span style="font-family:times new roman;font-size:16px;"><strong><span style="font-family:verdana; font-size:13px;">Heading 2</span></strong></span></p>
    3.       This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <span style="font-family:verdana;"> </span><p style="margin-top:0;margin-bottom:0;"><span style="font-family:times new roman;font-size:16px;">Text<span style="font-family:verdana;font-size:13px;">Text</span></span></p>
    4.       The standard straight quote symbol (&quot;) gets replaced with left and right quotes (&ldquo;) (&rdquo;)
    5.       Apostrophe’s get replaced with “&rsquo;”.
    6.       Odd, non-visible (in some browsers) characters are inserted, like: “”.
    7.       Dashes get replaced with these special characters, which may not display in all browsers: “—”.
    8.       This non-standard style tag gets inserted at the top of some pages:
    <!--
    .style1 {font-size: 15px}
    -->
    </style>
    9.       Trademarks, which are reliably denoted with just ”&trade;”, get replaced with this code and these special characters, which may not display in all browsers: “<span style="font-size:12px;">â„¢</span>”.
    10.   The simple Heading 1 tag: : <h1>Heading 1</h1>
    gets overridden with this code:
    <h1><span style="font-family:times;font-size:16px;"><span style="font-family:arial;font-size:15px;color:black;">Heading 1</span></span></h1>
    11.   This simple Paragraph tag: <p>Text</p>
    has the inappropriate “ServNAV” navigation style applied to it:
    <p class=”ServNAV”>Text</p>
    12.   This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:Times New Roman;font-size:15px;"><span style="font-family:verdana;font-size:12px;color:#333333;">Text</span></span></p>
    13.   Extra filler space gets inserted at the bottom of a page with this code:
    <p style="margin-bottom: 0;"> </p>
    14.   Internal links are created as absolute (<a href="http://www.company.com/subfolder/Client-One.html">) rather than relative links ()<a href="../subfolder/Client-One.html">.
    15.   Links to other sites are coded incorrectly,
    as in “<a href="www.company.com">www.company.com</a>”
    instead of: “<a href="http://www.company.com">www.company.com</a>”.
    16.   This simple bold Paragraph tag: <p><strong>About Company</strong></p>
    gets replaced with this
    <p style="margin-bottom: 0;"><strong>About Company</strong></p>
    17.   This simple Paragraph tag: <p>Text</p>
    gets replaced with this code:
    <p style="margin-top:0;"><span style="font-family:times new roman;font-size:16px;"><span style="font-family:verdana;font-size:13px;">Text</span></span></p>
    Message was edited by: JerryWeb

    I've just written a detailed list of editing tips for our internal use that, in addtion to using "Paste Text Only", describe how to avoid or re-key Microsoft Office curly quotes and apostrophes, use only Contribute's Insert | Special Characters, etc.
    In addition, I created a new role in which I made the following changes:
    Under Editing, under“General editing restrictions”, checked the “Prevent users from inserting images (except shared assets); under “Paragraph spacing, changed so “Enter key moves insertion point down:” “Two lines, as in web page editors (uses standard <p> tags”; under “Other editing options”, unchecked “Allow multiple consecutive spaces”
    Under Styles and Fonts, under “Styles and Fonts”, unchecked “Include CSS styles in the Style menu; unchecked “Allow users to apply fonts and sizes”; and unchecked “Allow users to apply font color and background color”.
    Under New Pages, unchecked “Create a blank page”
    Our initial experimentation indicates this eliminates most of the extraneous and junk HTML code that Contribute otherwise introduces. Time will tell. However, it requires contributors to be pretty rigorous.

  • Create a string from HTML code

    Hello to all,
    What i have already create is a web browser integrate into a VI project and from this i can read some values like temperature or humidity. Also i have put a HTML window in order to take this values and to export to a string (for example to check these values from the browser and to be able to see in separate constat). Can you help how to do this with an example??
    Thanks in advance

    Below i have attached the code and the HTML code from the sensor. If you have to recommend anything it will be usefull for me. I have another problem now. If you see in the HTML code you will see that i have three different values to export(temperature, humidity and dewpoint) but all of them have the same regular expression in order to request in my code. Do you know how is it possible to solve this problem because always i take the same temperature value for three of them.
    Thanks in advance
    Attachments:
    TempHumid.vi ‏41 KB
    HTMLcode.jpg ‏68 KB

  • How to generate html-code using csv input with JSP or JAVA???

    Hello,
    I want to read out a .csv-file and generate html-code dynmically with JSP in an EP6 Application. The problem is, that the csv-file can’t be located or openend.
    BTW if every knows a good tutorial or weblog for this, please post the link.
    It’s located in a par-archive under:
    />dist>files
    I tried various methods, in the doContent mehtod or with JSP. Everytime same result.
    Here part of the code I tried in the doContent():
    public class CSV extends AbstractPortalComponent
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
            String strWRoot = request.getWebResourcePath();
            String contentCSV="", line="";
            String linesep = System.getProperty("line.separator");
            File fileLoadCSV = new File(strWRoot+"/files/ma_infosysteme.csv");
            boolean exCSV = fileLoadCSV.exists();
            boolean reCSV = fileLoadCSV.canRead();
            int a=0;
            if(exCSV&&reCSV){
                response.write("ok");
                try {
                  BufferedReader inputCSV = new BufferedReader(new FileReader(fileLoadCSV));
                  while((line=inputCSV.readLine())!=null){
                    contentCSV=contentCSVlinelinesep;
                    a++;
                  inputCSV.close(); 
                catch(IOException ioex){
                    System.out.println("Fehler");  
            else {
                response.write("not ok");
            response.write("<br>Wroot: "+strWRoot);
            response.write("<br>File: "+fileLoadCSV);
            response.write("<br>exists: "+exCSV);
            response.write("<br>read: "+reCSV);
            response.write("<br>Input: "+contentCSV);
    The Output is:
    not ok
    Wroot: /irj/portalapps/DHTML
    File: \irj\portalapps\DHTML\files\ma_infosysteme.csv
    exists: false
    read: false
    Input:
    So thanks to everyone who can give me a good hint.
    Bye.

    Without really looking too much into this it looks like the problem is with the way in which you are trying to open the file. I believe that when creating a File object you need to use a physical path. By using the getWebResourcePath() method you are retrieving the URL to this file and not the physical path name. There is another method (can't remember the exact name) called getPublicResourcePath() (or something similar) which will return the physical path to this file, i.e. c:\usr\sap\.....etc. If you try it this way it may well work
    I hope this helps
    D

  • Use html code in web page composer 7.3

    Hi all,
    I have a question about the standard editors of web page composer in 7.3.
    I want to create my own HTML code for the design of the portal page..
    Is it possible to use the code through one of the standard editors?
    At the moment I have created some html pages and store them in the KM content of the portal. Then I make this pages available with the KM Document iViews to use them in the Web Page Composer. The problem now is, that the links to other portal pages doesn't work..
    So is there maybe a possibility to use the html code directly in one of the editors? Or do you know, how you have to define the links to navigate to other portal pages? I tried a href="TBN://..." like the links you get with the Link List Editor, but it doesn't work..
    Thanks in advance for your help!
    Regards,
    Lydia

    Hi,
    now we have the tinyMCE editor, where you can insert and edit html-code. It works fine now for the layout,
    but there are still a few problems with the links..
    In the edit mode there are displayed all km images out of the km. But the images aren't displayed under the portal role, when i publish the page. And all the links like one to a wiki or the TBN links doesn't work, too.
    Can anybody help me further?
    Thanks in advance,
    Lydia

  • Policy Patrol HTML code

    Hi all,
    we would like to modify the HTML code of a template, inserting blinking words in the signature.
    We modified the HTML source but the recipients receives the email where the words supposed to blink don't blink.
    The added code is <span style="text-decoration: blink;">blinking text</span> but it doesn't work nor the tag pair <blink></blink>
    When I receive the email I see the signature and then HTML code with blink or the span section below, but words intended don't flash. I also enabled used a stationery with the same HTML code but no flash.
    Where am I wrong?
    Thanks in advance,
    Alex

    Try this
    <span><blink>blinking text</blink></span>
    Hope it works... because its been a long time not working with HTML

  • Cannot see included html code

    HI there
    i have a little problem with iweb and including html code.
    I use the HTML snipped to include the code
    copy paste everything as it should be
    this is the code:
    <table>
    <tr><td>Ihr Name:</td>
    <td><input name="name" type="text" size="54"></td></tr>
    <tr><td>Ihre Mailadresse:</td>
    <td><input name="mail" type="text" size="54"></td></tr>
    <tr><td>Ihre Nachricht:</td>
    <td><textarea name="text" rows="10" cols="52"></textarea></td></tr>
    </table>
    It works out finde, save and publish, if i look at my local drive: i see the table .
    But if i get this on my Webserver i can not see the table, i just see an empty space where the snipped should be
    what is wrong
    i tried to make the complete html stuff with head and body and html but i would not work.
    iWeb 3.0.4, latest OSX

    Clear the browser cache a reload the page.
    Or if that doesn't work, open the Activity window (Command-Shift-A) in Safari and locate the widget-markup file.
    Double click that file to open it in a browser window and reload the page if your content doesn't display.
    Safari is a bit stubborn to reload that file after it's being updated.
    It is assumed you published to the server.

Maybe you are looking for