dynamic POST

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

    dynamic POST

    Is there any way to get an IFRAME to do a POST without altering the
    browser window's history?

    I can achieve dynamic data loading using GET via the iframe's
    contentWindow.l ocation.replace method, but that isn't suitable for large
    requests.
    --
    Robin Becker
  • Martin Honnen

    #2
    Re: dynamic POST



    Robin Becker wrote:
    [color=blue]
    > Is there any way to get an IFRAME to do a POST without altering the
    > browser window's history?
    >
    > I can achieve dynamic data loading using GET via the iframe's
    > contentWindow.l ocation.replace method, but that isn't suitable for large
    > requests.[/color]

    You could submit some form in the iframe and let the CGI return the HTTP
    status code
    204
    which means no response (body) and therefore I would guess the history
    remains unchange.
    --

    Martin Honnen


    Comment

    • Robin Becker

      #3
      Re: dynamic POST

      In article <404b0a6c$1@ola f.komtel.net>, Martin Honnen
      <mahotrash@yaho o.de> writes[color=blue]
      >
      >
      >Robin Becker wrote:
      >[color=green]
      >> Is there any way to get an IFRAME to do a POST without altering the
      >> browser window's history?
      >>
      >> I can achieve dynamic data loading using GET via the iframe's
      >> contentWindow.l ocation.replace method, but that isn't suitable for large
      >> requests.[/color]
      >
      >You could submit some form in the iframe and let the CGI return the HTTP
      >status code
      > 204
      >which means no response (body) and therefore I would guess the history
      >remains unchange.[/color]

      Unfortunately, the idea is to actually get some response via a standard
      call back embedded in the returned html/javascript.
      --
      Robin Becker

      Comment

      • Martin Honnen

        #4
        Re: dynamic POST



        Robin Becker wrote:
        [color=blue]
        > Unfortunately, the idea is to actually get some response via a standard
        > call back embedded in the returned html/javascript.[/color]

        Then I think you will have to live with a history being built up unless
        you have an intranet with IE5/Win users and/or Mozilla users where you
        could post data with XMLHttpRequest
        --

        Martin Honnen


        Comment

        • Robin Becker

          #5
          Re: dynamic POST

          In article <404b22b5$1@ola f.komtel.net>, Martin Honnen
          <mahotrash@yaho o.de> writes[color=blue]
          >
          >
          >Robin Becker wrote:
          >[color=green]
          >> Unfortunately, the idea is to actually get some response via a standard
          >> call back embedded in the returned html/javascript.[/color]
          >
          >Then I think you will have to live with a history being built up unless
          >you have an intranet with IE5/Win users and/or Mozilla users where you
          >could post data with XMLHttpRequest[/color]
          So is that a standard in modern browsers? I can certainly do the server
          side.
          --
          Robin Becker

          Comment

          • Martin Honnen

            #6
            Re: dynamic POST



            Robin Becker wrote:
            [color=blue]
            > In article <404b22b5$1@ola f.komtel.net>, Martin Honnen
            > <mahotrash@yaho o.de> writes[color=green]
            >>Then I think you will have to live with a history being built up unless
            >>you have an intranet with IE5/Win users and/or Mozilla users where you
            >>could post data with XMLHttpRequest[/color]
            >
            > So is that a standard in modern browsers? I can certainly do the server
            > side.[/color]

            It is not a standard defined by the W3C or any other body publishing
            standards for the Web but MS has implemented a COM based XML solution on
            Windows that can be scripted with JScript in IE and Mozilla has tried to
            implement the same API as close as possible in Mozilla browsers, see

            for instance
            --

            Martin Honnen


            Comment

            • Robin Becker

              #7
              Re: dynamic POST

              In article <JnuT+LAGbzSAFw 4p@jessikat.fsn et.co.uk>, Robin Becker
              <robin@jessikat .fsnet.co.uk> writes[color=blue]
              >In article <404b22b5$1@ola f.komtel.net>, Martin Honnen
              ><mahotrash@yah oo.de> writes[color=green]
              >>
              >>
              >>Robin Becker wrote:
              >>[color=darkred]
              >>> Unfortunately, the idea is to actually get some response via a standard
              >>> call back embedded in the returned html/javascript.[/color]
              >>
              >>Then I think you will have to live with a history being built up unless
              >>you have an intranet with IE5/Win users and/or Mozilla users where you
              >>could post data with XMLHttpRequest[/color]
              >So is that a standard in modern browsers? I can certainly do the server
              >side.[/color]
              After a bit of a google I discover quite a lot about this, but the
              simple example at http://jibbering.com/2002/4/add.1 seems to add history
              in Firefox/Mozilla, but not in IE 6. So the Mozilla XMLHttpRequest
              object suffers from the same problem as iframe with post. At present I
              can get by with my current strategy, but this sort of thing really bugs
              me.
              --
              Robin Becker

              Comment

              • Martin Honnen

                #8
                Re: dynamic POST



                Robin Becker wrote:
                [color=blue]
                > After a bit of a google I discover quite a lot about this, but the
                > simple example at http://jibbering.com/2002/4/add.1 seems to add history
                > in Firefox/Mozilla, but not in IE 6. So the Mozilla XMLHttpRequest
                > object suffers from the same problem as iframe with post. At present I
                > can get by with my current strategy, but this sort of thing really bugs
                > me.[/color]

                No, in my view that example is buggy, it doesn't work with Mozilla where
                the script causes a script error (check the JavaScript console) and then
                the form gets submitted normally and that is why you see a history being
                built up.
                --

                Martin Honnen


                Comment

                • Robin Becker

                  #9
                  Re: dynamic POST

                  In article <404b3f35@olaf. komtel.net>, Martin Honnen
                  <mahotrash@yaho o.de> writes[color=blue]
                  >
                  >
                  >Robin Becker wrote:[/color]
                  .......[color=blue]
                  >
                  >No, in my view that example is buggy, it doesn't work with Mozilla where
                  >the script causes a script error (check the JavaScript console) and then
                  >the form gets submitted normally and that is why you see a history being
                  >built up.[/color]
                  you're right, but I still don't think I will change from my current
                  stuff. I will certainly bear this in mind in future though.
                  --
                  Robin Becker

                  Comment

                  • Jim Ley

                    #10
                    Re: dynamic POST

                    On Sun, 07 Mar 2004 16:26:37 +0100, Martin Honnen <mahotrash@yaho o.de>
                    wrote:
                    [color=blue]
                    >
                    >
                    >Robin Becker wrote:
                    >[color=green]
                    >> After a bit of a google I discover quite a lot about this, but the
                    >> simple example at http://jibbering.com/2002/4/add.1 seems to add history
                    >> in Firefox/Mozilla, but not in IE 6. So the Mozilla XMLHttpRequest
                    >> object suffers from the same problem as iframe with post. At present I
                    >> can get by with my current strategy, but this sort of thing really bugs
                    >> me.[/color]
                    >
                    >No, in my view that example is buggy, it doesn't work with Mozilla where
                    >the script causes a script error (check the JavaScript console) and then
                    >the form gets submitted normally and that is why you see a history being
                    >built up.[/color]

                    It predates the current Mozilla implementation and is written to the
                    specification, as I don't have a mozilla to hand, what's the error?

                    I know it would hit the old Mozilla bug of xmlhttp.send() erroring,
                    but I can't believe they've not fixed that one.

                    At least it falls back sensibly...

                    Cheers,

                    Jim.
                    --
                    comp.lang.javas cript FAQ - http://jibbering.com/faq/

                    Comment

                    Working...