Bingo! Got it!
Your most recent suggestion is what worked - specifically:
' parent.thumbFrame.location.href = "page.aspx" '
It probably helps that none of the pages involved in this modal dialog
scenario requires a querystring or client-side parameters in order to
display the correct information - as all of that comes from server-side
logic via each page's respective code-behind. All I have to do is cause the
page to reload itself and the updated information is served up from the
database.
I really appreciate you hanging in there with me on this one... taking the
time...
-GH
"Ken Dopierala Jr." <kdopierala2@wi.rr.com> wrote in message
news:%23AH3u09qEHA.332@TK2MSFTNGP14.phx.gbl...[color=blue]
> Hi,
>
> You could try:
>
> onclick = ' parent.thumbFrame.location.href = "page.aspx" '
>
> Or maybe call a function in the thumbFrame page and have it use:
>
> self.location.reload() or self.location.href.....
>
> I think you'll just need to play around with it till you find the right
> combination. Also, the reload(true) mimics the refresh button. Meaning
> that it will use the same querystring and etc. as it did when it was[/color]
loaded.[color=blue]
> What this also means, is that if the page is in its state because of a
> postback. Doing a reload will redo that postback. In both cases if you[/color]
set[color=blue]
> a breakpoint on your page load event for the page in the thumbFrame you[/color]
will[color=blue]
> see that it will hit your breakpoint. So you might want to step through[/color]
it[color=blue]
> and maybe override the render event so you can take a snapshot of what it[/color]
is[color=blue]
> sending to the browser. Maybe even try loading a simple html page in that
> frame and seeing if you can get that to reload will help you with some[/color]
clues[color=blue]
> as to what is going on. Good luck! Ken.
>
> --
> Ken Dopierala Jr.
> For great ASP.Net web hosting try:
>
http://www.webhost4life.com/default.asp?refid=Spinlight
> If you sign up under me and need help, email me.
>
> "Guadala Harry" <GMan@NoSpam.com> wrote in message
> news:%23n3v9T9qEHA.1232@TK2MSFTNGP11.phx.gbl...[color=green]
> > Hi Ken,
> >
> > I did as you suggest - (put <base target="_self"> into the <head> of the
> > pages that show up in the IFrames; all pages involved here now have[/color]
> that)...[color=green]
> > still no dice. But after additional testing, I think the problem[/color][/color]
actually[color=blue][color=green]
> > has nothing to do with the page posting back to itself. Here's what I[/color][/color]
did[color=blue]
> to[color=green]
> > eliminate the Postback issue as a possible explanation:
> > I placed the following in the page that shows up in mainFrame:
> >
> > <input type="button" value="Refresh Thumbs"
> > onclick="parent.thumbFrame.location.reload(true)" >
> >
> > When the frameset is viewed by itself (i.e., not modal), clicking that
> > button causes the page in thumbFrame to reload. But when the frameset is
> > opened as a modal dialog, the page in thumbFrame does not reload when[/color][/color]
that[color=blue][color=green]
> > button is clicked. Because that button is hard-coded into the page, that
> > eliminates the whole postback issue. It appears that there is something
> > about a modal dialog box that prevents that simple onclick statement to
> > execute.
> >
> > Any ideas? or is it time to give up on this functionality working in a[/color]
> modal[color=green]
> > dialog?
> >
> > Thanks!
> >
> > -GH
> >
> >
> >
> >
> >
> >
> > "Ken Dopierala Jr." <kdopierala2@wi.rr.com> wrote in message
> > news:O%23RgFt5qEHA.3520@TK2MSFTNGP11.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > You need to but <Base target="_self"> into the .Aspx page that shows[/color][/color][/color]
up[color=blue]
> in[color=green][color=darkred]
> > > the frame. Not the page that contains the IFrames, it needs to go in[/color][/color]
> the[color=green][color=darkred]
> > > page that is posting back to itself. Also, if the newly uploaded[/color]
> > thumbnail[color=darkred]
> > > has the same name as the old one you may need to add an arguement to[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > name or it will display the old image. <img src="mygif.gif?arg=1">[/color][/color]
> then[color=green][color=darkred]
> > > when you change the image <img src="mygif.gif?arg=2">. Good luck![/color][/color][/color]
Ken.[color=blue][color=green][color=darkred]
> > >
> > > --
> > > Ken Dopierala Jr.
> > > For great ASP.Net web hosting try:
> > >
http://www.webhost4life.com/default.asp?refid=Spinlight
> > > If you sign up under me and need help, email me.
> > >
> > > "Guadala Harry" <GMan@NoSpam.com> wrote in message
> > > news:O8v1OS3qEHA.372@TK2MSFTNGP12.phx.gbl...
> > > > I tried putting <BASE target="_self"> in (I placed it in the <head>[/color][/color][/color]
of[color=blue][color=green]
> > the[color=darkred]
> > > > aspx page that contains the IFrames)... no dice.
> > > >
> > > > Specifically, what is not working is that upon uploading a new[/color][/color][/color]
image,[color=blue][color=green]
> > the[color=darkred]
> > > > page that appears in the thumbFrame does not reload, and therefore[/color][/color]
> users[color=green][color=darkred]
> > > > don't see the thumbnail of the newly uploaded graphic.
> > > >
> > > > Here is the code that I expect would cause the page in thumbFrame to
> > > reload.
> > > > This code executes in the code-behind module behind the page that[/color][/color]
> loads[color=green][color=darkred]
> > > into
> > > > mainFrame.
> > > > string scriptString = "<script
> > > >[/color][/color][/color]
language=JavaScript>parent.thumbFrame.location.rel oad(true)</script>";[color=blue][color=green][color=darkred]
> > > > if(!this.IsClientScriptBlockRegistered("clientScri pt")){
> > > > this.RegisterStartupScript("clientScript", scriptString);
> > > > }
> > > >
> > > > Here is all the code in the ASPX page that contains the IFrames[/color][/color][/color]
(there[color=blue][color=green]
> > is[color=darkred]
> > > no
> > > > code-behind logic for this page):
> > > > <%@ Page %>
> > > > <%@ OutputCache Location="none" %>
> > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
> > > > "http://www.w3.org/TR/html4/frameset.dtd">
> > > > <html>
> > > > <head>
> > > > <title>Select Image</title>
> > > > <meta http-equiv="Content-Type" content="text/html;[/color][/color]
> charset=iso-8859-1">[color=green][color=darkred]
> > > > <BASE target="_self">
> > > > </head>
> > > > <body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0">
> > > > <form id="Form1" method="post" runat="server">
> > > > <table border="0" cellpadding="0" cellspacing="0">
> > > > <tr>
> > > > <td width="225px">
> > > > <iframe id="thumbFrame" name="thumbFrame"[/color][/color][/color]
src="SelectAssetThumbs.aspx"[color=blue][color=green][color=darkred]
> > > > frameborder="0" scrolling="auto" style="width: 225px; height:
> > > > 410px"></iframe>
> > > > </td>
> > > > <td width="100%">
> > > > <iframe id="mainFrame" name="mainFrame" src="SelectAssetFull.aspx"
> > > > frameborder="0" scrolling="no" style="width: 100%; height:
> > > 410px"></iframe>
> > > > </td>
> > > > </tr>
> > > > </table>
> > > > </form>
> > > > </body>
> > > > </html>
> > > >
> > > > Thanks for any guidance on making this work!
> > > >
> > > > -GH
> > > >
> > > >
> > > >
> > > > "Ken Dopierala Jr." <kdopierala2@wi.rr.com> wrote in message
> > > > news:eTh9sSyqEHA.1644@tk2msftngp13.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > Try putting:
> > > > >
> > > > > <BASE target="_self">
> > > > >
> > > > > In your <head> tag. Also, what isn't it doing? Not posting back?
> > > Image
> > > > > not changing? Good luck! Ken.
> > > > >
> > > > > --
> > > > > Ken Dopierala Jr.
> > > > > For great ASP.Net web hosting try:
> > > > >
http://www.webhost4life.com/default.asp?refid=Spinlight
> > > > > If you sign up under me and need help, email me.
> > > > >
> > > > > "Guadala Harry" <GMan@NoSpam.com> wrote in message
> > > > > news:%23SuJTKxqEHA.1816@TK2MSFTNGP09.phx.gbl...
> > > > > > I have a modal dialog that currently does all of the following[/color]
> > except[color=darkred]
> > > > item
> > > > > > 4.
> > > > > >
> > > > > > 1. lets users select a graphic from a list of thumbnails (and[/color][/color][/color]
when[color=blue][color=green][color=darkred]
> > > > > selected,
> > > > > > displays the full-size image in a preview DIV)
> > > > > > 2. when users close the dialog, the application receives the URL[/color][/color]
> to[color=green][color=darkred]
> > > the
> > > > > > selected graphic.
> > > > > > 3. the modal dialog lets the users upload a new graphic if the[/color]
> > dialog[color=darkred]
> > > > does
> > > > > > not present them with one they are already happy with.
> > > > > > 4. upon uploading a new graphic, the newly uploaded graphic[/color][/color]
> appears[color=green]
> > in[color=darkred]
> > > > the
> > > > > > dialog along with the existing thumbnails.
> > > > > >
> > > > > > What I started with (and does items 1-3 just fine) was a[/color][/color][/color]
frameset[color=blue][color=green]
> > aspx[color=darkred]
> > > > > page
> > > > > > that included two frames - one frame for the thumbnails, and[/color][/color]
> another[color=green][color=darkred]
> > > > frame
> > > > > > that provided (1) a preview area for the full-sized version of[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > > selected
> > > > > > thumbnail, and (2) the controls required for uploading new[/color][/color]
> graphics.[color=green][color=darkred]
> > > In
> > > > > > order to accomplish item 4, I had a RegisterStartupScript line[/color][/color]
> that[color=green][color=darkred]
> > > > would
> > > > > > cause the thumbnail frame to reload itself. Please note that[/color][/color][/color]
this[color=blue][color=green][color=darkred]
> > > setup
> > > > > > works (all items 1-4 work fine) when the frameset is viewed by[/color]
> > itself.[color=darkred]
> > > > But
> > > > > > when viewed as a modal dialog, item 4 does not happen... as if[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > > > > RegisterStartupScript line isn't executed (but it in fact is).[/color][/color][/color]
But[color=blue][color=green][color=darkred]
> > > > because
> > > > > I
> > > > > > need to display this as a modal dialog, this arrangement won't[/color][/color]
> work.[color=green][color=darkred]
> > > > > >
> > > > > > I received some advice to get away from a frameset and use[/color][/color][/color]
IFrames[color=blue][color=green][color=darkred]
> > > > > instead.
> > > > > > So I converted the above frameset to be one aspx page that[/color][/color]
> contains[color=green][color=darkred]
> > > two
> > > > > > IFrames (one for thumbnails and the other for the[/color][/color]
> full-size/preview[color=green][color=darkred]
> > > and
> > > > > > upload controls). This is same as before, just with IFrames.[/color][/color][/color]
Still[color=blue][color=green]
> > no[color=darkred]
> > > > > dice.
> > > > > >
> > > > > > So, at this point I'm thinking it might make sense to have one[/color][/color]
> aspx[color=green][color=darkred]
> > > page
> > > > > > with one IFrame. The aspx page would provide all of the[/color]
> > preview/upload[color=darkred]
> > > > > > controls, and the IFrame would display the thumbnails. Would[/color][/color][/color]
this[color=blue][color=green]
> > get[color=darkred]
> > > me
> > > > > all
> > > > > > of items 1-4?
> > > > > >
> > > > > > I'd sure appreciate some suggestions that would would give me[/color][/color][/color]
all[color=blue]
> of[color=green][color=darkred]
> > > > items
> > > > > > 1-4 as a modal dialog.
> > > > > >
> > > > > > Thanks!!!
> > > > > >
> > > > > > -GH
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]