help with SSI, or directions to proper group

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TK

    help with SSI, or directions to proper group

    I'm sure this is probably the wrong place to ask, but is there a way to
    execute an SSI script in javascript?

    I'm using an SSI script to read a memory address, and I'd like to be
    able to update the value every few seconds without having to refresh the
    entire page. Does anyone know a possible way to do this, or am I stuck
    with refreshing the entire page every 4 seconds?

    If I'm in the wrong group, does anyone know the proper place to ask?
  • Dag Sunde

    #2
    Re: help with SSI, or directions to proper group

    "TK" <tok135@hotmail .com> wrote in message
    news:11ah94m5q1 dl7e4@corp.supe rnews.com...[color=blue]
    > I'm sure this is probably the wrong place to ask, but is there a way to
    > execute an SSI script in javascript?
    >
    > I'm using an SSI script to read a memory address, and I'd like to be
    > able to update the value every few seconds without having to refresh the
    > entire page. Does anyone know a possible way to do this, or am I stuck
    > with refreshing the entire page every 4 seconds?
    >
    > If I'm in the wrong group, does anyone know the proper place to ask?[/color]

    Google for "XmlHttp JavaScript"

    --
    Dag.


    Comment

    • ASM

      #3
      Re: help with SSI, or directions to proper group

      TK a ecrit :[color=blue]
      >
      > I'm sure this is probably the wrong place to ask, but is there a way to
      > execute an SSI script in javascript?
      >
      > I'm using an SSI script to read a memory address,[/color]

      What is a SSI script reading a memory address ?
      You can do that with SSI ?
      [color=blue]
      > and I'd like to be
      > able to update the value every few seconds without having to refresh the
      > entire page. Does anyone know a possible way to do this,[/color]

      You can try with frames.
      One of the frames fixed to 1px (non really visible) get the refreshed page
      The other is modified from the 1st.

      In browser the code of your *.shtml opened in 1st frame
      would look like :

      <script type="text/javascript">
      parent.frames[1].document.getEl ementById('upda te').innerHTML= 'value of memory';
      setTimeout('sel f.location=self .location',4000 );
      </script>

      Take care on 1st load :
      it is the page in 2nd frame after its complete loading
      which have to launch the *.shtml in 1st frame

      You may also use an iFrame to get the *.shtml
      iFrame inserted in your main page
      the iFrame sized to 1 x 1 px and styled on invisible.

      <scr ..>
      parent.document .getElementById ('update').inne rHTML='value of memory';
      setTimeout('sel f.src=self.src' ,4000);
      </script>

      (not tested)
      [color=blue]
      > or am I stuck
      > with refreshing the entire page every 4 seconds?[/color]

      On my idea, a page flashing every few seconds, if it doesn't afraid me
      (what's happen with my UC?), I run away.
      [color=blue]
      > If I'm in the wrong group, does anyone know the proper place to ask?[/color]

      is there a place somewhere for SSI ?

      --
      *************** *************** *************** **********
      Stéphane MORIAUX et son vieux Mac
      *************** *************** *************** **********

      Comment

      • Danny

        #4
        Re: help with SSI, or directions to proper group


        Why you need a memory address read to begin with? any server
        transaction requires a server request and response, so yes, if the
        resource is AT the server, the page will refresh, it be PHP, Perl, ASP,
        CFML or SSI, once sent from the server, js can manipulate it.


        Danny

        On Thu, 09 Jun 2005 13:20:55 -0700, TK <tok135@hotmail .com> wrote:
        [color=blue]
        > I'm sure this is probably the wrong place to ask, but is there a way to
        > execute an SSI script in javascript?
        >
        > I'm using an SSI script to read a memory address, and I'd like to be
        > able to update the value every few seconds without having to refresh the
        > entire page. Does anyone know a possible way to do this, or am I stuck
        > with refreshing the entire page every 4 seconds?
        >
        > If I'm in the wrong group, does anyone know the proper place to ask?[/color]



        --
        Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

        Comment

        • Randy Webb

          #5
          Re: help with SSI, or directions to proper group

          Danny wrote:[color=blue]
          >
          > Why you need a memory address read to begin with?[/color]

          Probably has something to do with wanting the data that is stored in
          that address.

          [color=blue]
          > any server transaction requires a server request and response,
          > so yes, if the resource is AT the server, the page will refresh,[/color]

          Oh really? You should read up on the HTTPRequest object and while you
          are researching that one, research dynamically loading JS files. Because
          it is *not* required to refresh a page to get a response from the server.

          [color=blue]
          > it be PHP, Perl, ASP, CFML or SSI, once sent from the server,
          > js can manipulate it.[/color]

          That is not entirely true either. JS can only manipulate it if it is in
          a form that JS can manipulate.

          Read the group FAQ. ALL of it. You just might learn something.

          --
          Randy
          comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
          Answer:It destroys the order of the conversation
          Question: Why?
          Answer: Top-Posting.
          Question: Whats the most annoying thing on Usenet?

          Comment

          Working...