473,385 Members | 1,890 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,385 software developers and data experts.

Interaction between 2 different web browsers

How can I do the following? When the user clicks on a certain button,
I will open up another web browser, which will act like a dialog box
for the first browser. When the user clicks OK in the second browser,
it will close and cause the first browser to do a refresh. I want to
pass some info from the first browser to the second one, but I don't
want to pass it in the URL for security reasons.

Thanks in advance,
John
Nov 18 '05 #1
2 969
Hi,
1. In click event of the buttion to open the new window.
window.open()
or window.showModalDialog()
or window.showModelessDialog()
2. Use Session variables to pass info to the new window.
or access from javascript if the info is defined in script
in the first window.
window.opener.document.all.myVar
3. In onunload event of the seconde window to refresh the
first window.
window.opener.navigate(window.opener.location)

Bin Song, MCP
-----Original Message-----
How can I do the following? When the user clicks on a certain button,I will open up another web browser, which will act like a dialog boxfor the first browser. When the user clicks OK in the second browser,it will close and cause the first browser to do a refresh. I want topass some info from the first browser to the second one, but I don'twant to pass it in the URL for security reasons.

Thanks in advance,
John
.

Nov 18 '05 #2
If both pages are on the same site, you can pass information using a session
variable. It will require a round trip to the server, however, so instead of
having a straight javascript function, you'd need to post back and then
write out the window.open script in the returned page.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"john" <jo********@yahoo.com> wrote in message
news:29**************************@posting.google.c om...
How can I do the following? When the user clicks on a certain button,
I will open up another web browser, which will act like a dialog box
for the first browser. When the user clicks OK in the second browser,
it will close and cause the first browser to do a refresh. I want to
pass some info from the first browser to the second one, but I don't
want to pass it in the URL for security reasons.

Thanks in advance,
John

Nov 18 '05 #3

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

Similar topics

2
by: richard | last post by:
Hi, I am about to start developing an n-tier system. And was hoping to get an insight into the best ways of doing this. Inparticular, I want to know how I can develop classes/component to be...
7
by: rdh | last post by:
Hi all, I am in process of developing a Server in C++ supporting multiple protocols. The server will be exposing various functionalities, and the clients can communicate over any of the...
8
by: Lian | last post by:
Hi all, It is a newbie's question about html tag "img". The attributes "title" and "alt" for "img" seems having the same function. So what is the main difference between them? Can i use them at...
4
by: EvanK | last post by:
Is there a way to display a message box and have it close after a certain amount of time w/o user interaction?
3
by: sheldonlg | last post by:
I don't think my last attempt posted so here it is again. This is a bit off-topic, but it does relate to php. This is the most active related group that I can find, so even if it is off-topic I...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
4
by: vivek | last post by:
I am new to flash and want someone to guide me, Is it possible to create a UI entirely in Flash and that will inetract with C# components (backend) and these components will in return interact...
1
by: dwij2u | last post by:
Hi All, Can someone guide me on how we can modify the below script so that no user interaction is required to feed the password when the script is run, current scenario is like if I try to login...
16
by: LayneMitch | last post by:
Greetings everyone. I'm new to the webdevelopment game and I developed my first site that looks good in IE but crappy in Mozilla/Firefox. Any advice on making my site browser to browser...
0
by: Omar Abid | last post by:
Reason of this project: The Microsoft.VisualBasic.Interaction class exposes many useful commands and methods that were available in Visual Basic like AppActivate, Beep, Callbyname... This...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.