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

DoDialog

Hi All,

Does anybody know, if I call a pop-up window as top.__doDialog, and do some
changes to my data, then close this pop-up page, how can I force a reload of
the main window to refresh the data?

In a few words, I'm having a main WebApp, I need to do something on the
database, enter a new data for example, I call a pop-up window, it makes
something and finally I close this window, how the main window should know
that it's time to reload the data from the database to show all changes made
by this dialog window?

Thanks,
Dmitri

Nov 18 '05 #1
4 1515
Dmitri,

Do you create the popup with createPopup()? Then you can access any control
on the main form from the popup form via document.parentWindow. For example,
you can simulate a button click:

document.parentWindow.document.getElementById("myB utton").click();

If the button is the server-side control, you can process OnClick event on
server side.

Eliyahu

"Just D" <no@spam.please> wrote in message
news:hjsvc.13215$lL1.2550@fed1read03...
Hi All,

Does anybody know, if I call a pop-up window as top.__doDialog, and do some changes to my data, then close this pop-up page, how can I force a reload of the main window to refresh the data?

In a few words, I'm having a main WebApp, I need to do something on the
database, enter a new data for example, I call a pop-up window, it makes
something and finally I close this window, how the main window should know
that it's time to reload the data from the database to show all changes made by this dialog window?

Thanks,
Dmitri

Nov 18 '05 #2
Wow, in this case we probably can initiate a full refresh of the parent
page? Do you know how to do that? Maybe we can initiate a click on a
"refresh" button when we close the pop-up window? That's interesting How can
we call these methods from C# code, not from ASPX directly where the
"document." is accessible?

document.parentWindow.document.getElementById("myB utton").click();

Thanks,
Dmitri

"Eliyahu Goldin"
Do you create the popup with createPopup()? Then you can access any
control
on the main form from the popup form via document.parentWindow. For
example,
you can simulate a button click:

document.parentWindow.document.getElementById("myB utton").click();

If the button is the server-side control, you can process OnClick event on
server side.

Eliyahu

"Just D"

Does anybody know, if I call a pop-up window as top.__doDialog, and do

some
changes to my data, then close this pop-up page, how can I force a reload

of
the main window to refresh the data?

In a few words, I'm having a main WebApp, I need to do something on the
database, enter a new data for example, I call a pop-up window, it makes
something and finally I close this window, how the main window should
know
that it's time to reload the data from the database to show all changes

made by this dialog window?

Nov 18 '05 #3
Dmitri,

If myButton is a webcontrol, then calling

document.parentWindow.document.getElementById("myB utton").click();

from the client-side javascript should trigger postback and you should get a
server-side event OnClick(). If you provide a C# code-behind handler for
this event, it should get called at this stage. In this code you can refresh
whatever you want and it will be sent back to the client.

Eliyahu
"Just D" <no@spam.please> wrote in message
news:RgBvc.13912$lL1.6640@fed1read03...
Wow, in this case we probably can initiate a full refresh of the parent
page? Do you know how to do that? Maybe we can initiate a click on a
"refresh" button when we close the pop-up window? That's interesting How can we call these methods from C# code, not from ASPX directly where the
"document." is accessible?

document.parentWindow.document.getElementById("myB utton").click();

Thanks,
Dmitri

"Eliyahu Goldin"
Do you create the popup with createPopup()? Then you can access any
control
on the main form from the popup form via document.parentWindow. For
example,
you can simulate a button click:

document.parentWindow.document.getElementById("myB utton").click();

If the button is the server-side control, you can process OnClick event on
server side.

Eliyahu

"Just D"

Does anybody know, if I call a pop-up window as top.__doDialog, and do

some
changes to my data, then close this pop-up page, how can I force a reload
of
the main window to refresh the data?

In a few words, I'm having a main WebApp, I need to do something on the
database, enter a new data for example, I call a pop-up window, it

makes something and finally I close this window, how the main window should
know
that it's time to reload the data from the database to show all changes

made by this dialog window?


Nov 18 '05 #4
Thanks a lot, I'm sure it will help.

Dmitri

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Dmitri,

If myButton is a webcontrol, then calling

document.parentWindow.document.getElementById("myB utton").click();

from the client-side javascript should trigger postback and you should get
a
server-side event OnClick(). If you provide a C# code-behind handler for
this event, it should get called at this stage. In this code you can
refresh
whatever you want and it will be sent back to the client.

Eliyahu
"Just D" <no@spam.please> wrote in message
news:RgBvc.13912$lL1.6640@fed1read03...
Wow, in this case we probably can initiate a full refresh of the parent
page? Do you know how to do that? Maybe we can initiate a click on a
"refresh" button when we close the pop-up window? That's interesting How

can
we call these methods from C# code, not from ASPX directly where the
"document." is accessible?

document.parentWindow.document.getElementById("myB utton").click();

Thanks,
Dmitri

"Eliyahu Goldin"
> Do you create the popup with createPopup()? Then you can access any
> control
> on the main form from the popup form via document.parentWindow. For
> example,
> you can simulate a button click:
>
> document.parentWindow.document.getElementById("myB utton").click();
>
> If the button is the server-side control, you can process OnClick event on > server side.
>
> Eliyahu
>
> "Just D"

>> Does anybody know, if I call a pop-up window as top.__doDialog, and
>> do
> some
>> changes to my data, then close this pop-up page, how can I force a reload > of
>> the main window to refresh the data?
>>
>> In a few words, I'm having a main WebApp, I need to do something on
>> the
>> database, enter a new data for example, I call a pop-up window, it makes >> something and finally I close this window, how the main window should
>> know
>> that it's time to reload the data from the database to show all
>> changes
> made by this dialog window?




Nov 18 '05 #5

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

Similar topics

2
by: Kiyomi | last post by:
Hello, I have some codes under event ButtonSend_Click to check the user input values. This check is complicated enough using different stored procedures. Then according the result of the...
4
by: Kiyomi | last post by:
Hello, I am trying to replace my alert message box with a popup page. In my page behind,
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
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.