hide html when using a CD

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gnanadurai
    New Member
    • Aug 2009
    • 1

    hide html when using a CD

    We have a html web page which calls an asp page*to return search results. The problem is when this is published the code gets inserted into all of the 10,000 or more pages as this is part of the header information.
    *
    This content is also used to publish to a CD. When the users are using the CD they cannot use the asp search. To get around using asp search,*we have another page which does a local searching using a different search method.
    *
    Do you know a way to hide the html search string below when a user opens the page on a CD. The question is how can be put a smart into distinguish the page to know that its running from a CD and not the network??
    *
    Below is the snippet of code for searching.....
    *
    Code:
    <div style="margin-top: -5px"> 
    <li><a style="background-color: #3C005A"><form action=results.asp method=post><input type=text name="searchstring" size="20" maxlength="100" value="Quick Search" style="color:#999" onfocus = "clearText(this)" >
    <button type=submit style="background-color: #3C005A; width:21px; height:21px">
    <font face="Arial" color="#FFFFFF" style="font-size: 80%">Go</font></button></a>
    <div style="margin-top: +5px">
    Many Thanks

    David
    Last edited by gits; Aug 25 '09, 03:00 AM. Reason: added code tags
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    you might use a javascript function that distinguishes between the used protocols ... use:

    Code:
    window.location.protocol
    for that purpose ... when its not http then hide the node by setting its style display property to none ...

    kind regards

    Comment

    Working...