Getting info from server without changing window

Discussion in 'Javascript' started by Ron Brennan, Oct 26, 2003.

  1. Ron Brennan

    Ron Brennan Guest

    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.
     
    Ron Brennan, Oct 26, 2003
    #1
    1. Advertising

  2. Ron Brennan

    steve stevo Guest

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

    you could load this using jscript / vbscript and display


    " Ron Brennan" <> wrote in message
    news:...
    > 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, Oct 26, 2003
    #2
    1. Advertising

  3. Ron Brennan

    Ron Brennan Guest

    "Ron Brennan" <> wrote in message
    news:...
    > 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.

    ---------------------------------------
    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?
     
    Ron Brennan, Oct 26, 2003
    #3
  4. Hi,

    Ron Brennan wrote:

    > "Ron Brennan" <> wrote in message
    > news:...
    >
    >>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.

    >
    > ---------------------------------------
    > 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?


    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
     
    Laurent Bugnion, GalaSoft, Oct 26, 2003
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alvin Bruney

    Re: Send Info from Window to Window

    Alvin Bruney, Aug 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    388
    Alvin Bruney
    Aug 24, 2003
  2. chuckdfoster

    Send Info From PopUp Window To Parent Window

    chuckdfoster, Dec 6, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    746
    =?Utf-8?B?SmVk?=
    Dec 6, 2005
  3. Replies:
    2
    Views:
    473
    Neil Kurzman
    Mar 16, 2005
  4. Aaron Beall
    Replies:
    2
    Views:
    1,911
    Aaron Beall
    Sep 14, 2007
  5. DrKen
    Replies:
    3
    Views:
    109
Loading...

Share This Page