473,791 Members | 2,853 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reloading frame page from popup...better solution to my problem?

K B
Hi, I could be approaching this all wrong...so please let me know what
you think.

I have a 2 page frame (WIleft.aspx and WIright.aspx) in asp.net 2.0. I
create an html page by transforming xml with xsl file into WIright and
there are buttons created with dynamic parameters to pass when the
function is run. [left page is used to display other information]
I have the following script that runs when any given button is clicked
in WIright:

function StepComplete(id In)
{
var sIdNo = '&idNo=' + idIn;
newWindow = window.open(('S tepComplete.asp x?' + sIdNo), 'StepComplete',
'width=50,heigh t=50,toolbar=no ,menubar=no,scr ollbars=no,resi zable=no');
}
This opens the pop-up window ok...but my code in the pop-up should run
(saving to database), then reload the parent frame and close the pop-up.
PROBLEM is that the parent frame loads into the pop-up window so I then
have two of the same windows running. I've tried two ways:

(1) Response.Redire ct("WIframe.asp x")
OR
(2) Response.Write( "<script
language=javasc ript>parent.lef t.location='WIl eft.aspx?Step=y es'</script>
")
Response.Write( "<script
language=javasc ript>parent.rig ht.location='WI .aspx?refresh=t rue'</script
>")
Response.Write( "<script>window .close();</script>")

Option 1 loads a new copy of the wiframe into the popup.
Option 2 doesn't work for loading the two pages in the frame, but it
does close the pop-up.

The buttons correspond to a Step ID in the right frame document, then I
need to refresh the WIleft to show that new variable.

I'm not too swift with javascript. Is there a way to adjust the function
so that I new window doesn't open, but the WIleft.aspx reloads in the
parent frame and I could pass a query string that way?

THANKS FOR ANY HELP.
Kit
*** Sent via Developersdex http://www.developersdex.com ***
Dec 21 '06 #1
0 1209

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

Similar topics

4
6581
by: kaeli | last post by:
Hey all, First off, frames - eww. I know. It's an internal site, so please don't tell me to ditch the frames. We like them for what they're being used for. That said, my users like to print just one frame, but it's a little bit irritating to have to remember to choose "print only selected frame" in the print dialog boxes. I've been messing with CSS media to try to not print the menu frame. It's not going as well as I'd hoped. Can...
4
3244
by: Fred | last post by:
I'm a newbie to JavaScript so be gentle. You know that funky IE margin issue that causes the right side of the page to get cut off when the user prints the html document? http://www.post-gazette.com/interact/20000120radin.asp Well… I'd like to warn/help the IE users of the issue before they print page. I want to combine a popup message with
6
3989
by: iwearwatches | last post by:
Group, What a root canal. Here is what I have: I have a page that has several layers that I will either show/hide based on a graphic/tab that the user clicks. (works perfectly)
0
1990
by: Marcus | last post by:
Hello! I'm buildning a webpage in ASP.NET using Visual Basic. The page contains a datagrid, a dropdownlist, some textboxes and a couple of buttons. The datagrid displays barcodes from a table in a database (Sql Server 2000). I want to automatic update the datagrid when new new posts arrives in the table. Before the datagird is updated, the choosen index from the
3
2469
by: qwerty | last post by:
I´m new to ASP.Net. My workmate has some experience with it. He claimed that in ASP.Net working with frames is much simpler than it was ASP. I asked explanation but he couldn't give me such. (a button inside a-tag with attribute target isn't anything new relating ASP.Net, its same old HTML). He claimed that you could change another page´s controls´s property´s value from another frame by using this method: ' Page "Bottom"
42
3890
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
1
1775
by: Garg | last post by:
Hi, I am facing a problem while trying to close a window that I've opened in a frame. I am using javascript to close my current popup window. I have written the following line of code on click of OK button event. Response.Write("<scriptwindow.close();</script>") Now the problem is since this window is closed, the frame is still
1
4855
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it works, displaying an awesome popup, while other times, it doesn't show a popup at all, but rather just page posts back and the panel becomes visible at the bottom of the page (where it is situated in the designer). what is even stranger to me is that...
0
9669
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
9515
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
10426
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
10207
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
9993
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
9029
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
7537
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
5430
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...
3
2913
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.