Getting info from server without changing window

R

Ron Brennan

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.
 
S

steve stevo

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

you could load this using jscript / vbscript and display
 
R

Ron Brennan

Ron Brennan said:
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?
 
L

Laurent Bugnion, GalaSoft

Hi,

Ron said:
---------------------------------------
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top