Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2003
    Location
    Columbia, PA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to have cgi page show in html page codes?

    How do I get this cgi page of a countdown for the Super Bowl to show in HTML codes for on a compter??

    http://siggiez.com/countdownz/nfl/sbt.cgi

    In webtv we can use
    <embed src="http://siggiez.com/countdownz/nfl/sbt.cgi">
    for the page to show in HTML codes, but embed does not work on a computer.

    Thank you,
    Rocki


  • #2
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    408
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Try:

    <iframe src="http://siggiez.com/countdownz/nfl/sbt.cgi" width="160" height="175" scrolling="no"></iframe>
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #3
    New to the CF scene
    Join Date
    Dec 2003
    Location
    Columbia, PA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yes and thank you but that is what I have on my page of countdowns I made.

    http://siggiez.com/countdownz/nfl/index.cgi

    That is the only way I can get it to work is with iframe, but there must be another way for it to show in HTML codes. With the iframe and scrolling=no it leaves an edge around the countdown even with sizing it.

    Rocki

  • #4
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    408
    Thanks
    2
    Thanked 32 Times in 32 Posts
    You can try populating a layer with XMLHTTP.

    You can use this script to bring external include files into a layer in the page, or insert the text inline:

    <script type="text/javascript">
    <!--
    function include(lyr,url)
    {
    if (document.all)
    {
    // IE version
    var xml = new ActiveXObject("Microsoft.XMLHTTP");
    // older versions (IE4 and some IE5.0) might be using MSXML2.XMLHTTP.4.0
    xml.Open( "GET", url, false );
    xml.Send()
    document.getElementById(lyr).innerHTML=xml.responseText;
    }
    else
    {
    // Mozilla/Netscrap 6+ version
    var xml=new XMLHttpRequest();
    xml.open("GET",url,false);
    xml.send(null);
    document.getElementById(lyr).innerHTML=xml.responseText;
    }
    }
    //-->
    </script>
    You can trigger the script off the load:
    <body onLoad="include('somediv','http://siggiez.com/countdownz/nfl/sbt.cgi')">
    where somediv looks like: <div id="somediv">&nbsp;</div>

    or inline as a conventional include:

    <script type='text/javascript'>
    document.write('<div id="somediv">&nbsp;</div>');
    include('somediv','http://siggiez.com/countdownz/nfl/sbt.cgi');
    </script>

    If the string returned from the call contains valid HTML it will be rendered, otherwise it will display as plain text.

    Does not work for older browser like Netscrap 4.x that do not know what XML is.

    It can produce an alert in IE if the user security settings have activeX disabled
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •