META HTTP-EQUIV="Refresh"

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

    META HTTP-EQUIV="Refresh"


    Is there a way to replace the URL value below, on the fly?

    <META HTTP-EQUIV="Refresh"
    CONTENT="3;URL= http://www.some.org/some.html">

  • Evertjan.

    #2
    Re: META HTTP-EQUIV=&quot;Ref resh&quot;

    Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:[color=blue]
    > Is there a way to replace the URL value below, on the fly?
    >
    > <META HTTP-EQUIV="Refresh"
    > CONTENT="3;URL= http://www.some.org/some.html">[/color]

    What do you mean with "on the fly"?

    And all this inside 3 seconds?

    =============== =============== =====

    If you want to do it programmaticall y with clientside javascript, you
    better use javascript all along:

    <script type='text/javascript'>

    myNewLocation = 'http://www.some.org/some.html'

    setTimeout("loc ation.href = myNewLocation", 3000)

    <script>


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Marcia Gulesian

      #3
      Re: META HTTP-EQUIV=&quot;Ref resh&quot;

      >> What do you mean with "on the fly"?

      Programatically .

      "Evertjan." wrote:
      [color=blue]
      > Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:[color=green]
      > > Is there a way to replace the URL value below, on the fly?
      > >
      > > <META HTTP-EQUIV="Refresh"
      > > CONTENT="3;URL= http://www.some.org/some.html">[/color]
      >
      > What do you mean with "on the fly"?
      >
      > And all this inside 3 seconds?
      >
      > =============== =============== =====
      >
      > If you want to do it programmaticall y with clientside javascript, you
      > better use javascript all along:
      >
      > <script type='text/javascript'>
      >
      > myNewLocation = 'http://www.some.org/some.html'
      >
      > setTimeout("loc ation.href = myNewLocation", 3000)
      >
      > <script>
      >
      > --
      > Evertjan.
      > The Netherlands.
      > (Please change the x'es to dots in my emailaddress)[/color]

      Comment

      • Evertjan.

        #4
        Re: META HTTP-EQUIV=&quot;Ref resh&quot;

        Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:
        [color=blue]
        > "Evertjan." wrote:
        >[color=green]
        >> Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:[color=darkred]
        >> > Is there a way to replace the URL value below, on the fly?
        >> >
        >> > <META HTTP-EQUIV="Refresh"
        >> > CONTENT="3;URL= http://www.some.org/some.html">[/color]
        >>
        >> What do you mean with "on the fly"?[/color][/color]
        [color=blue]
        > Programatically .[/color]
        [color=blue][color=green]
        >> And all this inside 3 seconds?
        >>
        >> =============== =============== =====
        >>
        >> If you want to do it programmaticall y with clientside javascript, you
        >> better use javascript all along:
        >>
        >> <script type='text/javascript'>
        >>
        >> myNewLocation = 'http://www.some.org/some.html'
        >>
        >> setTimeout("loc ation.href = myNewLocation", 3000)
        >>
        >> <script>[/color][/color]

        So what do you think of the above, Marcia?

        Or do you want the user to press a button to change the destination
        inside those 3 seconds?

        Or depending on the time of day?

        <script type='text/javascript'>

        t = new Date()

        myNewLocation = (t.hours()<12)
        ? 'http://www.some.org/morning.html'
        : 'http://www.some.org/afternoon.html'

        setTimeout("loc ation.href = myNewLocation", 3000)

        <script>

        But then why the 3 seconds waiting?

        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        • Mick White

          #5
          Re: META HTTP-EQUIV=&quot;Ref resh&quot;

          Evertjan. wrote:
          [color=blue]
          > Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:
          >
          >[color=green]
          >>"Evertjan." wrote:
          >>
          >>[color=darkred]
          >>>Marcia Gulesian wrote on 30 jun 2004 in comp.lang.javas cript:
          >>>
          >>>>Is there a way to replace the URL value below, on the fly?
          >>>>
          >>>><META HTTP-EQUIV="Refresh"
          >>>>CONTENT="3; URL=http://www.some.org/some.html">
          >>>
          >>>What do you mean with "on the fly"?[/color][/color]
          >
          >[color=green]
          >>Programatical ly.[/color]
          >
          >[color=green][color=darkred]
          >>>And all this inside 3 seconds?
          >>>
          >>>============ =============== ========
          >>>
          >>>If you want to do it programmaticall y with clientside javascript, you
          >>>better use javascript all along:
          >>>
          >>><script type='text/javascript'>
          >>>
          >>> myNewLocation = 'http://www.some.org/some.html'
          >>>
          >>> setTimeout("loc ation.href = myNewLocation", 3000)
          >>>
          >>><script>[/color][/color]
          >
          >
          > So what do you think of the above, Marcia?
          >
          > Or do you want the user to press a button to change the destination
          > inside those 3 seconds?
          >
          > Or depending on the time of day?
          >
          > <script type='text/javascript'>
          >
          > t = new Date()
          >
          > myNewLocation = (t.hours()<12)[/color]

          // t.getHours() perhaps?
          Mick
          [color=blue]
          > ? 'http://www.some.org/morning.html'
          > : 'http://www.some.org/afternoon.html'
          >
          > setTimeout("loc ation.href = myNewLocation", 3000)
          >
          > <script>
          >
          > But then why the 3 seconds waiting?
          >[/color]

          Comment

          Working...