473,325 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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.
Jul 20 '05 #1
3 2176
you could try looking at active x - xml storing the data

you could load this using jscript / vbscript and display
" Ron Brennan" <rb******@magma.ca> wrote in message
news:6q********************@magma.ca...
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.

Jul 20 '05 #2

"Ron Brennan" <rb******@magma.ca> wrote in message
news:6q********************@magma.ca...
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?


Jul 20 '05 #3
Hi,

Ron Brennan wrote:
"Ron Brennan" <rb******@magma.ca> wrote in message
news:6q********************@magma.ca...
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

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Person | last post by:
I have a popup window with a form: The popup window is opened like this: <SCRIPT LANGUAGE=javascript> window.open('primos.html', 'primos', config='height=300, width=400') </SCRIPT> The...
3
by: karl | last post by:
I have several .net applications running on a webserver. I recently installed the patches to the system to stop the worm virus that was going around last week. Since that time I ran into a...
2
by: Alex | last post by:
Hi all, I'm writing a small web application which searches a database based on a date field, and populates a datagrid control with the results. The datagrid control has selection buttons added...
2
by: MSK | last post by:
Hi, Continued to my earlier post regaring "Breakpoints are not getting hit" , I have comeup with more input this time.. Kindly give me some idea. I am a newbie to .NET, recently I installed...
6
by: hemant.singh | last post by:
Hi all, I am trying to get a way by which I'll know exactly when user goes out of my site by clicking on close button in browser, So that w/e user click close button in browser, I can send a...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
3
by: DrKen | last post by:
I need to have a user be able to click a link or button that brings up a popup window. When the user selects an item from the drop down list on the popup window (should I require only a click of...
3
by: Jeff | last post by:
I know how to use php/mysql, but the html aspect of what Im trying to do (if its even possible this way) is what Im unsure of. I want to have a button that a user can hit to valid mysql info...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.