473,715 Members | 5,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Refresh a parent window???

I have a frameset. left and main. Inside the main frame I have a IFRAME. I
need to refresh the main frame when I post a form inside the IFRAME. I am
trying the code below with no luck??
Private Sub addMachine_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles addMachine.Clic k

Dim sScript As New System.Text.Str ingBuilder
sScript.Append( "<SCRIPT language=""java script"">" & vbCrLf)
sScript.Append( "parent.window. opener.location =
parent.window.o pener.location; " & vbCrLf)
sScript.Append( "</SCRIPT>" & vbCrLf)
RegisterClientS criptBlock("For ceDefaultToScri pt", sScript.ToStrin g)
End Sub
--

_______________ _______
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
da***@helixpoin t.com

Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products, contact
da***@helixpoin t.com
_______________ _______
Nov 17 '05 #1
1 4728
Hi

If you want to refresh the whole frameset then this is ok...
If you only want to refresh the frame/document the iframe is located in

parent.location .href = "pagetogo.aspx" ;
Or
parent.location .reload(true);
--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Internet Client & Controls MVP
=============== ===============
"Helixpoint " <da**@helixpoin t.com> wrote in message
news:eJ******** ******@TK2MSFTN GP10.phx.gbl...
This works:)

Private Sub addMachine_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles addMachine.Clic k

Dim sScript As New System.Text.Str ingBuilder

sScript.Append( "<SCRIPT language=""java script"">" & vbCrLf)

sScript.Append( "top.main.locat ion = top.main.locati on;" & vbCrLf)

sScript.Append( "</SCRIPT>" & vbCrLf)

RegisterClientS criptBlock("For ceDefaultToScri pt", sScript.ToStrin g)

End Sub

"Helixpoint " <da**@helixpoin t.com> wrote in message
news:eo******** ******@tk2msftn gp13.phx.gbl...
I have a frameset. left and main. Inside the main frame I have a IFRAME. I need to refresh the main frame when I post a form inside the IFRAME. I am trying the code below with no luck??
Private Sub addMachine_Clic k(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles addMachine.Clic k

Dim sScript As New System.Text.Str ingBuilder
sScript.Append( "<SCRIPT language=""java script"">" & vbCrLf)
sScript.Append( "parent.window. opener.location =
parent.window.o pener.location; " & vbCrLf)
sScript.Append( "</SCRIPT>" & vbCrLf)
RegisterClientS criptBlock("For ceDefaultToScri pt", sScript.ToStrin g)
End Sub
--

_______________ _______
David Fetrow
HelixPoint LLC.
http://www.helixpoint.com
da***@helixpoin t.com

Interested in Affordable Email Marketing?
Check out the HelixMailer at http://www.helixpoint.com/helixmailer.asp
If you are interested in becoming a Reseller of HelixPoint products,

contact
da***@helixpoin t.com
_______________ _______


Nov 17 '05 #2

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

Similar topics

4
3168
by: Andrew Alger | last post by:
ok i have two forms. Customer.aspx and Parent_Searh.aspx. There is a button on Customer.aspx that when executed runs javascript code to open up parent_search as a popup. After the user searches for the parent and finds the proper parent in the datagrid they then click on the accept button in the grid. Then I populate a session variable with the parent ID. I then go back to the main page and have it refresh using: ...
3
4791
by: MEM | last post by:
Hello, I'd like to refresh the main or top most browser window from a child window. Specifically, child popup A is opened by a main browser window then child popup B is opened from within child popup A. How do i refer to the very first parent window? Visual...
3
10604
by: nicver | last post by:
I am working on updating a Web site with a frameset. A page opens a pop-up window in which the user uploads pictures. Once the upload is done, I would like to refresh the content of the frame which opened the pop-up but so far have failed. Here is my code: <% (ASP code which saves the photo in a database) %>
1
2026
by: baggy | last post by:
Hi, I have a situation where I need to be able to refresh a windows parent parent. I can not seem to use anything like window.opener.parent.location.reload() as by the time I execute the statement the parent has closed and all connections closed and I am not even sure that would work! Is there a way to reference a window to refresh it other than by using
2
23504
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent window to open a child window thru javascript window.open 2) I have some functionality in the child window that changes the data
2
23503
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an iframe on my page whose html has the refresh meta as follows : <meta http-equiv="refresh" content="10"> The iframe is effectivelyh refreshed every 10 seconds without having the
5
4601
by: Peter | last post by:
1) I have a C# web application and what I am trying to do is create a popup window from a link on the parent window 2) the popup window will have a button and when a user clicks on the button the program should update a database, close the window and refresh the parent window. My question is does anyone have a example of popup window wich will close it's self and refresh the parent window when a user clicks on a button? I know there are...
7
8705
by: Ben Schumacher | last post by:
How can I refresh the parent page from a popup window that was created using window.showmodaldialog? I would like to accomplish this using vbscript if possible.
3
3578
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup and then do a refresh of the calling form. Any ideas on how to get a reference to the calling form? I tried window.parent.location.reload() , but it doesn't work. Thanks a lot.
3
2254
by: Natygan | last post by:
Hi, I've got a Web page which can become a parent window : some links use "window.open" to open the desired link into a new child window. This parent window has got an auto-refresh functionality (<meta http-equiv="refresh" content="60">). My point is that when I'm looking at the child window, I don't want the parent window to take the focus when refreshing. Does anybody have an idea ? Thanks !
0
9343
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9198
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9047
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...
0
7973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6646
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
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3175
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
2541
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2119
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.