Wake Up !

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

    Wake Up !

    Don't you think by now, being the 5+ version they would have fixed the
    Header() to have a target, like " _top " and so on...

    ~ Somebody's Not Thinking ~

  • Oli Filth

    #2
    Re: Wake Up !

    Maverick said the following on 01/10/2005 10:33:[color=blue]
    > Don't you think by now, being the 5+ version they would have fixed the
    > Header() to have a target, like " _top " and so on...
    >
    > ~ Somebody's Not Thinking ~[/color]

    You?

    What are you talking about??

    --
    Oli

    Comment

    • Andy Hassall

      #3
      Re: Wake Up !

      On 1 Oct 2005 02:33:52 -0700, "Maverick" <saenzcorp@yaho o.com> wrote:
      [color=blue]
      >Don't you think by now, being the 5+ version they would have fixed the
      >Header() to have a target, like " _top " and so on...[/color]

      You are apparently confusing PHP with the HTTP standard. There is no good
      reason for HTTP to change the Location header to include HTML attributes such
      as target.

      HTTP is at version 1.1, not 5, and is unlikely to get any higher since it does
      the job it's supposed to do quite well. http://www.w3.org/Protocols/
      --
      Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
      http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

      Comment

      • Maverick

        #4
        Re: Wake Up !

        You guys are clueless; as to what I'm talking about, why answer...

        php has a redirect function called header("locatio n:
        http:/so&so.com/");

        it's not intended to replace html links like <a href: bla bla >
        that is only a link function in html that requires you to click
        something,

        I'm talking php, a page that can redirect you to another page, but
        can't select a target in case you want to use frames or iframes or
        popup window, get it ?

        and don't say "you can do it with javascript", because javascript seems
        to not work well with tabs, that I think are very cool, and save
        memory...

        hope you understand now,
        Thanks

        Comment

        • www.douglassdavis.com

          #5
          Re: Wake Up !


          Maverick wrote:[color=blue]
          > You guys are clueless; as to what I'm talking about, why answer...
          >
          > php has a redirect function called header("locatio n:
          > http:/so&so.com/");
          >
          > it's not intended to replace html links like <a href: bla bla >
          > that is only a link function in html that requires you to click
          > something,
          >
          > I'm talking php, a page that can redirect you to another page, but
          > can't select a target in case you want to use frames or iframes or
          > popup window, get it ?
          >
          > and don't say "you can do it with javascript", because javascript seems
          > to not work well with tabs, that I think are very cool, and save
          > memory...
          >
          > hope you understand now,
          > Thanks[/color]

          the header function works using the HTTP standard to send a header to
          the browser through the server. That's why it's called header. If an
          HTTP server doesn't support it there's nothing PHP can do about it.

          javascript is client side, and works in a totally different way.

          Hope you understand now.


          i doubt it though.

          Comment

          • Drazen Gemic

            #6
            Re: Wake Up !

            Target like _top, _self, _parent can not be implemented on
            the server side (where PHP runs). They can not be implemented
            in any language that runs on server side.

            Target like _top, _self, _parent refer to layout of windows on
            clients (yours) desktop. Server does not know anything about that.

            DG

            Comment

            • Oli Filth

              #7
              Re: Wake Up !

              Maverick wrote:[color=blue]
              > You guys are clueless; as to what I'm talking about, why answer...
              >
              > php has a redirect function called header("locatio n:
              > http:/so&so.com/");[/color]

              I repeat: *You* are not thinking.

              "Location: ..." is not a function of PHP, but part of the HTTP
              specification.

              "_top", "_parent", etc. is HTML, i.e. is nothing to do with HTTP, and
              certainly not PHP.

              So, there will never be a function in PHP to do this, because it's
              impossible.


              P.S. I'd watch your attitude if you expect any help from a NG in
              future.

              --
              Oli

              Comment

              • Andy Hassall

                #8
                Re: Wake Up !

                On 3 Oct 2005 03:21:55 -0700, "Maverick" <saenzcorp@yaho o.com> wrote:
                [color=blue]
                >php has a redirect function called header("locatio n:
                >http:/so&so.com/");[/color]

                You are apparently still confusing PHP with the HTTP standard.
                --
                Andy Hassall :: andy@andyh.co.u k :: http://www.andyh.co.uk
                http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

                Comment

                • Maverick

                  #9
                  Re: Wake Up !

                  ok, it's obvious I must not be explaining this right,
                  I don't know how else to explain this, but I have no interest in
                  upsetting anyone, only to fix problems with PHP...
                  In programming I find nothing " Impossible ", just a lack of vision
                  that's easily fixed...

                  I appreciate all your comments guys...good&bad ...

                  Thanks,
                  Mav

                  Comment

                  • Samuel

                    #10
                    Re: Wake Up !

                    You are explaining this right, and you are being answered right. Thing
                    is, it is *not* a problem with PHP, as you've already been said. PHP is
                    server side, and the fact that you open an html page in a _parent, _top
                    or _blank window is client side. It simply has nothing to do, and
                    possibly it cannot be done. But even if it could, it would be PHP
                    getting out of its turf.

                    Comment

                    • kerul4u

                      #11
                      Re: Wake Up !

                      Hey I think you are going to invent new application which can handle
                      both client and server side component...!!!

                      I'm not trying to upsetting you..but sometime be practical..

                      If still you want to combine north pol and south pol to the center of
                      earth
                      best of luck..........

                      Comment

                      • www.douglassdavis.com

                        #12
                        Re: Wake Up !


                        Maverick wrote:[color=blue]
                        > ok, it's obvious I must not be explaining this right,
                        > I don't know how else to explain this, but I have no interest in
                        > upsetting anyone, only to fix problems with PHP...
                        > In programming I find nothing " Impossible ", just a lack of vision
                        > that's easily fixed...
                        >[/color]


                        YOU WANT THE TRUTH!!?? YOU CAN'T HANDLE THE TRUTH!!!


                        :)

                        Comment

                        • Wayne

                          #13
                          Re: Wake Up !

                          On 3 Oct 2005 23:30:31 -0700, "Maverick" <saenzcorp@yaho o.com> wrote:
                          [color=blue]
                          >ok, it's obvious I must not be explaining this right,[/color]

                          You are totally explaining it right. You want to be able to redirect
                          to a specific frame. I had exactly the same issue with an application
                          I am working on. Apparently really old versions of Netscape supported
                          this particular thing (via a header) but no modern browser supports
                          it.

                          The syntax, in PHP, is:
                          header('Window-target: sometarget');
                          header('Locatio n: http://somelocation');

                          Just don't expect it to work on anything other than old versions of
                          Netscape.

                          The problem is not PHP, it's with browsers and the HTTP spec. The
                          feature you are looking for doesn't exist in the browser or in the
                          spec.

                          The solution (which I culled from an ASP forum) is to simply fire out
                          some javascript. It doesn't have too many problems with tabs as it
                          will look to the current tab first before looking to other tabs.
                          [color=blue]
                          >In programming I find nothing " Impossible ", just a lack of vision
                          >that's easily fixed...[/color]

                          Nothing is impossible -- but you do you have to find the right
                          location for your solution. You would need to add the feature to the
                          web browsers before PHP would be able to use it. ;)

                          Comment

                          • Malcolm Dew-Jones

                            #14
                            Re: Wake Up !

                            Maverick (saenzcorp@yaho o.com) wrote:
                            : ok, it's obvious I must not be explaining this right,

                            Not explaining well is usually a symptom of not understanding well.


                            --

                            This programmer available for rent.

                            Comment

                            Working...