Getting info from server without changing window

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

    Getting info from server without changing window

    Good morning.

    I have a page displayed and want to get information from a user using
    showModalDialog , and then send a request to the server for more information
    based on the user info from the showModalDialog - without changing the
    displayed page.

    Is this possible?

    Thanks.


  • steve stevo

    #2
    Re: Getting info from server without changing window

    you could try looking at active x - xml storing the data

    you could load this using jscript / vbscript and display


    " Ron Brennan" <rbrennan@magma .ca> wrote in message
    news:6qudnS7NM4 NiSAaiRVn-sw@magma.ca...[color=blue]
    > Good morning.
    >
    > I have a page displayed and want to get information from a user using
    > showModalDialog , and then send a request to the server for more[/color]
    information[color=blue]
    > based on the user info from the showModalDialog - without changing the
    > displayed page.
    >
    > Is this possible?
    >
    > Thanks.
    >
    >[/color]


    Comment

    • Ron Brennan

      #3
      Re: Getting info from server without changing window


      "Ron Brennan" <rbrennan@magma .ca> wrote in message
      news:6qudnS7NM4 NiSAaiRVn-sw@magma.ca...[color=blue]
      > Good morning.
      >
      > I have a page displayed and want to get information from a user using
      > showModalDialog , and then send a request to the server for more[/color]
      information[color=blue]
      > based on the user info from the showModalDialog - without changing the
      > displayed page.
      >
      > Is this possible?
      >
      > Thanks.[/color]
      ---------------------------------------
      Thanks Steve.

      I also found the following:

      "You trigger a server-side script by setting any object's URL. For example a
      frame, window, or an
      Image. An image will also "swallow" the data sent back by the server so that
      they will not be
      visible anywhere.

      var dummyImage = new Image();
      dummyImage.src = "scriptURL.asp? param=" + varName; "

      and

      "In win32 IE5 and Mozilla, there is the XMLHTTPRequest object, which allows
      passing back of
      information from the server easy."

      Not being a JavaScript specialist, I think Steve's suggestion is the second.

      The first possibility kind of does what I want but doesn't give me a way to
      get a returned value; the second uses ActiveX, which I'd rather avoid.

      Any other ideas?




      Comment

      • Laurent Bugnion, GalaSoft

        #4
        Re: Getting info from server without changing window

        Hi,

        Ron Brennan wrote:
        [color=blue]
        > "Ron Brennan" <rbrennan@magma .ca> wrote in message
        > news:6qudnS7NM4 NiSAaiRVn-sw@magma.ca...
        >[color=green]
        >>Good morning.
        >>
        >>I have a page displayed and want to get information from a user using
        >>showModalDial og, and then send a request to the server for more[/color]
        >
        > information
        >[color=green]
        >>based on the user info from the showModalDialog - without changing the
        >>displayed page.
        >>
        >>Is this possible?
        >>
        >>Thanks.[/color]
        >
        > ---------------------------------------
        > Thanks Steve.
        >
        > I also found the following:
        >
        > "You trigger a server-side script by setting any object's URL. For example a
        > frame, window, or an
        > Image. An image will also "swallow" the data sent back by the server so that
        > they will not be
        > visible anywhere.
        >
        > var dummyImage = new Image();
        > dummyImage.src = "scriptURL.asp? param=" + varName; "
        >
        > and
        >
        > "In win32 IE5 and Mozilla, there is the XMLHTTPRequest object, which allows
        > passing back of
        > information from the server easy."
        >
        > Not being a JavaScript specialist, I think Steve's suggestion is the second.
        >
        > The first possibility kind of does what I want but doesn't give me a way to
        > get a returned value; the second uses ActiveX, which I'd rather avoid.
        >
        > Any other ideas?[/color]

        If you need the return value, but don't want to display the server's
        answer to the user, you can have the server send it to an invisible
        frame. Use the ONLOAD event handler of the frame to trigger a
        communication between the invisible frame and the visible one, et voilĂ .

        HTH,

        Laurent
        --
        Laurent Bugnion, GalaSoft
        Webdesign, Java, JavaScript: http://www.galasoft-LB.ch
        Private/Malaysia: http://mypage.bluewin.ch/lbugnion
        Support children in Calcutta: http://www.calcutta-espoir.ch

        Comment

        Working...