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 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is there anyway to call a script

    Is there a way? Or to have an include?

    Thanks

    Votick

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Yes, there are a lot of ways.

  • #3
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Could you posibly make me a script that would open a file in html.

    File contents:

    <marquee>
    Blah
    </marquee>

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,680
    Thanks
    6
    Thanked 1,009 Times in 982 Posts
    No...

  • #5
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    Ok wise guys... You've made your point.

    As to Votick's question, yes, there are lots of ways. Therefore, could you elaborate? Are you looking for a javascript, or a php script, or perl, or something else?

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #6
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am looking for a html/javascript script that will call a html script that is in a seperate file.

    So say i had:

    <table>
    <tr>
    <CALL ACTION src=my-html-file.com>
    </tr>
    </table>

    What would be the code to call the file that contains the html that i want to show.

    This is purely so that i can have the call code on multiple sites and then change the file accordingly.

    Thanks!

  • #7
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    I think you're looking for includes rather than a javascript. If you mean that you want to call some HTML into your code that is saved externally then the easiest way to do this would be with php although you have to ensure that your web server has php enabled. There are HTML methods for includes too:
    PHP
    Code:
    <?php include ("yourfile.html"); ?>
    
    or
    
    <?php require 'yourfile.inc' ?>
    HTML
    Code:
    <!--#include virtual="path to file/include-file.html" -->
    Last edited by ahallicks; 07-23-2007 at 09:10 AM.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #8
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,680
    Thanks
    6
    Thanked 1,009 Times in 982 Posts
    Quote Originally Posted by ahallicks View Post
    HTML
    Code:
    <!--#include virtual="path to file/include-file.html" -->
    Just to clarify: This is not just HTML, it’s called SSI (Server Side Include), and must be enabled by the server as well. The difference between PHP and SSI is that PHP is open source code and SSI is a Microsoft thing.


  •  

    Posting Permissions

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