Does window.open use GET or POST?

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

    Does window.open use GET or POST?

    Hi all,

    I am new in javascript. And I would like to find out whether
    window.open use GET or POST.

    I have tried to find the FAQ but no finding.

    Please enlighten me or direct me to any FAQ.

    Thanks in advance for any inputs or ideas,

    Earth
  • Andrew Thompson

    #2
    Re: Does window.open use GET or POST?

    On 26 May 2004 03:37:43 -0700, Earth wrote:
    [color=blue]
    > I am new in javascript. And I would like to find out whether
    > window.open use GET or POST.[/color]

    Try opening it with address bar..

    If the bit after '?' is there,
    GET, else POST..

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology

    Comment

    • Grant Wagner

      #3
      Re: Does window.open use GET or POST?

      Andrew Thompson wrote:
      [color=blue]
      > On 26 May 2004 03:37:43 -0700, Earth wrote:
      >[color=green]
      > > I am new in javascript. And I would like to find out whether
      > > window.open use GET or POST.[/color]
      >
      > Try opening it with address bar..
      >
      > If the bit after '?' is there,
      > GET, else POST..[/color]

      Not necessarily:

      <form name="myForm" method="POST"
      action="mypage. cgi?something=s omethingelse">

      However, I'm unsure why it matters if window.open() performs a GET
      or POST (for the record, it does a GET). You can put stuff on the
      URL which would be accessible to client-side Javascript even with
      a POST. So to move information from one window to another, it's:

      window.open('th enewpage.html?t heKey=' + theValue, 'window_name',
      '<attributes>') ;

      regardless of whether window.open() performed a GET or POST.

      --
      | Grant Wagner <gwagner@agrico reunited.com>

      * Client-side Javascript and Netscape 4 DOM Reference available
      at:
      *


      * Internet Explorer DOM Reference available at:
      *
      Learn with interactive lessons and technical documentation, earn professional development hours and certifications, and connect with the community.


      * Netscape 6/7 DOM Reference available at:
      * http://www.mozilla.org/docs/dom/domref/
      * Tips for upgrading JavaScript for Netscape 7 / Mozilla
      * http://www.mozilla.org/docs/web-deve...upgrade_2.html


      Comment

      • Andrew Thompson

        #4
        Re: Does window.open use GET or POST?

        On Wed, 26 May 2004 14:18:29 GMT, Grant Wagner wrote:
        [color=blue][color=green]
        >> If the bit after '?' is there,
        >> GET, else POST..[/color]
        >
        > Not necessarily:
        >
        > <form name="myForm" method="POST"
        > action="mypage. cgi?something=s omethingelse">[/color]

        ...took me a few moments to get what
        you meant there.

        The arguments are being 'post'ed
        on from the mypage.cgi?

        --
        Andrew Thompson
        http://www.PhySci.org/ Open-source software suite
        http://www.PhySci.org/codes/ Web & IT Help
        http://www.1point1C.org/ Science & Technology

        Comment

        • Lee

          #5
          Re: Does window.open use GET or POST?

          Andrew Thompson said:[color=blue]
          >
          >On Wed, 26 May 2004 14:18:29 GMT, Grant Wagner wrote:
          >[color=green][color=darkred]
          >>> If the bit after '?' is there,
          >>> GET, else POST..[/color]
          >>
          >> Not necessarily:
          >>
          >> <form name="myForm" method="POST"
          >> action="mypage. cgi?something=s omethingelse">[/color]
          >
          >..took me a few moments to get what
          >you meant there.
          >
          >The arguments are being 'post'ed
          >on from the mypage.cgi?[/color]

          There is no GET request in that case.
          Values of form elements are posted to mypage.cgi.
          The script can *also* see the value of QUERY_STRING.

          Comment

          • Dr John Stockton

            #6
            Re: Does window.open use GET or POST?

            JRS: In article <69e5770d.04052 60237.80b8bcf@p osting.google.c om>, seen
            in news:comp.lang. javascript, Earth <eclifeww@yahoo .com> posted at Wed,
            26 May 2004 03:37:43 :[color=blue]
            >
            >I have tried to find the FAQ but no finding.
            >
            >Please enlighten me or direct me to any FAQ.[/color]


            Since the newsgroup FAQ is posted here three times a week, frequently
            cited in the group in signatures and otherwise, and IIRC well-known to
            search engines, ISTM that you should, as a matter of urgent expediency,
            endeavour to improve your search techniques.

            --
            © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
            <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
            <URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
            <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.

            Comment

            Working...