473,698 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2206
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******** ************@ma gma.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******** ************@ma gma.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******** ************@ma gma.ca...
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


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
2599
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 form on the popup window is this:
3
1753
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 problem with session state. Prior to this each application was configured to have sessionState, cookieless=false. However for some reason after installing the patches one and only one application began to run into problems with session data not being...
2
2840
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 to it to view additional details about the selected result (a second database query is triggered). I want this second query to pop up in a new window, the way it would if I used "window.open" in javascript. I've added a function in the
2
4217
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 .NET. I could not debug using breakpoints, breakpoints are not getting hit, but the application is working fine with out any issue.
6
3939
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 signal to server. This seems to be achievable with body unload events, but it is little too much, as even if user navigate within my site, this event will be generated, this can be avoided by handling onclick of each link, so that I'll know exactly...
33
11849
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 (NT_AUTHORITY\SYSTEM). I understand that when the service starts, no user may be logged in, but that's ok, as the app I am monitoring can only be run by a logged in user. Do I need to use WMI to get the user context of Explorer.exe or is there a...
3
1899
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 the item or clicking a separate button like "continue"?), I need the selection to show up in a text field on the main page. Yet, so far as I can tell, window.open() has no way to return any value. So how can I do this please? I'm sure it's a...
3
2294
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 before submitting the full page of info. I know this doesnt work, but something like the following:
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8876
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.