How to 'push' new Images to client ?

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

    How to 'push' new Images to client ?

    Is there a way to use ASP to 'push' a new image to the client every 15
    seconds or so?

    I guess the entire page will have to be 're-sent' to the client but I'm not
    sure.

    I'm trying to 'rotate' a new product image every few seconds.

    I could use an animated gif or some java script maybe, but I want to keep
    the file small and not have to count on the user having java script
    enabled...

    So, I would like to make all this happen from the server side if I can.

    thanks for any help.


  • Evertjan.

    #2
    Re: How to 'push' new Images to client ?

    tmb wrote on 29 nov 2004 in microsoft.publi c.inetserver.as p.general:
    [color=blue]
    > Is there a way to use ASP to 'push' a new image to the client every 15
    > seconds or so?
    >
    > I guess the entire page will have to be 're-sent' to the client but
    > I'm not sure.
    >[/color]

    "pull" an iframe.

    Comment

    • Jeff Cochran

      #3
      Re: How to 'push' new Images to client ?

      On Mon, 29 Nov 2004 20:00:17 GMT, "tmb" <topmailbox@yah oo.com> wrote:
      [color=blue]
      >Is there a way to use ASP to 'push' a new image to the client every 15
      >seconds or so?[/color]

      Not really.
      [color=blue]
      >I guess the entire page will have to be 're-sent' to the client but I'm not
      >sure.[/color]

      Depends on what you have set up. Could be just a frame. But it
      doesn't depend on ASP.
      [color=blue]
      >I'm trying to 'rotate' a new product image every few seconds.[/color]

      Look at the ad rotator script included in the sample scripts and
      figure pout a way to have the client request the page every few
      seconds.
      [color=blue]
      >I could use an animated gif or some java script maybe, but I want to keep
      >the file small and not have to count on the user having java script
      >enabled...[/color]

      Instead of using a client-side option you'd prefer to drmatically
      increase the load on the server? Rethink your options and use the
      appropriate technology.
      [color=blue]
      >So, I would like to make all this happen from the server side if I can.[/color]

      In ASP you can't Client requests ASP page. Server process ASP and
      sends page to client. Client renders page. There's no mechanism for
      a server to force a client to receive a page.

      Best handled client-side, if it needs to be server side then ASP.NET
      is a better option.

      Jeff

      Comment

      • tmb

        #4
        Re: How to 'push' new Images to client ?

        Thanks for the comments.

        So, if I must do this on the client side... what is the most widely used
        client side tecnique?

        Java Script maybe?

        What are your favorites.

        thanks.

        tmb

        "Jeff Cochran" <jeff.nospam@zi na.com> wrote in message
        news:41ac8e2d.1 04377386@msnews .microsoft.com. ..[color=blue]
        > On Mon, 29 Nov 2004 20:00:17 GMT, "tmb" <topmailbox@yah oo.com> wrote:
        >[color=green]
        >>Is there a way to use ASP to 'push' a new image to the client every 15
        >>seconds or so?[/color]
        >
        > Not really.
        >[color=green]
        >>I guess the entire page will have to be 're-sent' to the client but I'm
        >>not
        >>sure.[/color]
        >
        > Depends on what you have set up. Could be just a frame. But it
        > doesn't depend on ASP.
        >[color=green]
        >>I'm trying to 'rotate' a new product image every few seconds.[/color]
        >
        > Look at the ad rotator script included in the sample scripts and
        > figure pout a way to have the client request the page every few
        > seconds.
        >[color=green]
        >>I could use an animated gif or some java script maybe, but I want to keep
        >>the file small and not have to count on the user having java script
        >>enabled...[/color]
        >
        > Instead of using a client-side option you'd prefer to drmatically
        > increase the load on the server? Rethink your options and use the
        > appropriate technology.
        >[color=green]
        >>So, I would like to make all this happen from the server side if I can.[/color]
        >
        > In ASP you can't Client requests ASP page. Server process ASP and
        > sends page to client. Client renders page. There's no mechanism for
        > a server to force a client to receive a page.
        >
        > Best handled client-side, if it needs to be server side then ASP.NET
        > is a better option.
        >
        > Jeff[/color]


        Comment

        • Patrice

          #5
          Re: How to 'push' new Images to client ?

          Yes, you could use setTimeout to trigger a script on a regular basis the
          script would load a new image (just change the src for your img tagl).

          Patrice

          --

          "tmb" <topmailbox@yah oo.com> a écrit dans le message de
          news:U45rd.8508 5$8G4.17115@tor nado.tampabay.r r.com...[color=blue]
          > Thanks for the comments.
          >
          > So, if I must do this on the client side... what is the most widely used
          > client side tecnique?
          >
          > Java Script maybe?
          >
          > What are your favorites.
          >
          > thanks.
          >
          > tmb
          >
          > "Jeff Cochran" <jeff.nospam@zi na.com> wrote in message
          > news:41ac8e2d.1 04377386@msnews .microsoft.com. ..[color=green]
          > > On Mon, 29 Nov 2004 20:00:17 GMT, "tmb" <topmailbox@yah oo.com> wrote:
          > >[color=darkred]
          > >>Is there a way to use ASP to 'push' a new image to the client every 15
          > >>seconds or so?[/color]
          > >
          > > Not really.
          > >[color=darkred]
          > >>I guess the entire page will have to be 're-sent' to the client but I'm
          > >>not
          > >>sure.[/color]
          > >
          > > Depends on what you have set up. Could be just a frame. But it
          > > doesn't depend on ASP.
          > >[color=darkred]
          > >>I'm trying to 'rotate' a new product image every few seconds.[/color]
          > >
          > > Look at the ad rotator script included in the sample scripts and
          > > figure pout a way to have the client request the page every few
          > > seconds.
          > >[color=darkred]
          > >>I could use an animated gif or some java script maybe, but I want to[/color][/color][/color]
          keep[color=blue][color=green][color=darkred]
          > >>the file small and not have to count on the user having java script
          > >>enabled...[/color]
          > >
          > > Instead of using a client-side option you'd prefer to drmatically
          > > increase the load on the server? Rethink your options and use the
          > > appropriate technology.
          > >[color=darkred]
          > >>So, I would like to make all this happen from the server side if I can.[/color]
          > >
          > > In ASP you can't Client requests ASP page. Server process ASP and
          > > sends page to client. Client renders page. There's no mechanism for
          > > a server to force a client to receive a page.
          > >
          > > Best handled client-side, if it needs to be server side then ASP.NET
          > > is a better option.
          > >
          > > Jeff[/color]
          >
          >[/color]


          Comment

          • Jeff Cochran

            #6
            Re: How to 'push' new Images to client ?

            On Tue, 30 Nov 2004 20:53:08 GMT, "tmb" <topmailbox@yah oo.com> wrote:
            [color=blue]
            >So, if I must do this on the client side... what is the most widely used
            >client side tecnique?[/color]
            [color=blue]
            >Java Script maybe?[/color]
            [color=blue]
            >What are your favorites.[/color]

            All valid questions, but not ASP. Try a client-side group for help,
            and choose your own technique appropriate to your situation, not
            somebody else's favorite that may not fit your needs.

            Jeff

            [color=blue]
            >"Jeff Cochran" <jeff.nospam@zi na.com> wrote in message
            >news:41ac8e2d. 104377386@msnew s.microsoft.com ...[color=green]
            >> On Mon, 29 Nov 2004 20:00:17 GMT, "tmb" <topmailbox@yah oo.com> wrote:
            >>[color=darkred]
            >>>Is there a way to use ASP to 'push' a new image to the client every 15
            >>>seconds or so?[/color]
            >>
            >> Not really.
            >>[color=darkred]
            >>>I guess the entire page will have to be 're-sent' to the client but I'm
            >>>not
            >>>sure.[/color]
            >>
            >> Depends on what you have set up. Could be just a frame. But it
            >> doesn't depend on ASP.
            >>[color=darkred]
            >>>I'm trying to 'rotate' a new product image every few seconds.[/color]
            >>
            >> Look at the ad rotator script included in the sample scripts and
            >> figure pout a way to have the client request the page every few
            >> seconds.
            >>[color=darkred]
            >>>I could use an animated gif or some java script maybe, but I want to keep
            >>>the file small and not have to count on the user having java script
            >>>enabled...[/color]
            >>
            >> Instead of using a client-side option you'd prefer to drmatically
            >> increase the load on the server? Rethink your options and use the
            >> appropriate technology.
            >>[color=darkred]
            >>>So, I would like to make all this happen from the server side if I can.[/color]
            >>
            >> In ASP you can't Client requests ASP page. Server process ASP and
            >> sends page to client. Client renders page. There's no mechanism for
            >> a server to force a client to receive a page.
            >>
            >> Best handled client-side, if it needs to be server side then ASP.NET
            >> is a better option.
            >>
            >> Jeff[/color]
            >[/color]

            Comment

            Working...