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

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

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(idIn)
var sIdNo = '&idNo=' + idIn;
newWindow = window.open(('StepComplete.aspx?' + sIdNo), 'StepComplete',
'width=50,height=50,toolbar=no,menubar=no,scrollba rs=no,resizable=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.Redirect("WIframe.aspx")
(2) Response.Write("<script
language=javascript>parent.left.location='WIleft.a spx?Step=yes'</script>
language=javascript>parent.right.location='WI.aspx ?refresh=true'</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?

*** Sent via Developersdex http://www.developersdex.com ***
Dec 21 '06 #1
0 1172

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

Similar topics

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...
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?...
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)
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...
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...
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.
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...
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...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
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...
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
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...

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.