Refresh another Frame

  • Thread starter Thread starter Eddie
  • Start date Start date
E

Eddie

Hi All,

I really need to Update my "header" frame when the user click on a button on
the "main" frame of my web page.
How may I do that ? The problem is that I don't have choice to use Frame...
I have to modify an existing web page with frameset...

Any help will be appreciate ...

Thx

Eddie
 
you will have to do this clientside.....
I would suggest looking at losing the frames though. With ASP.NET it's
really easy to use UC's instead and it will solve sooooo many issues you
will run into with frames.
 
Thank you...

I don't have choice... I Need to keep Frames...
How may I do it on ClientSide ? JavaScript ? VBScript ?

Do you have any code for my understanding ? I'm not familiar with Java or vb
Script...

Thx...
 
Hi

myBtn.Attributes.Add("onclick","parent.FRAMENAME.location.reload()");
myBtn.Attributes.Add("onclick","parent.FRAMENAME.location.href='pageToGo.aspx'");
Where FRAMENAME is the name of the frame to reload/update...

--
Best Regards
Vidar Petursson
==============================
Microsoft Visual: Scripting MVP 2000-2004
http://www.icysoft.com/
http://www.deus-x.com/ Instant e-commerce
http://www.microsoft.com/technet/scriptcenter/
Playground: http://213.190.104.211/ ( IE 5.5+ only )

No matter where you go there you are
==============================
 
Works perfectly !
Thank you...

Eddie


Vidar Petursson said:
Hi

myBtn.Attributes.Add("onclick","parent.FRAMENAME.location.reload()");
myBtn.Attributes.Add("onclick","parent.FRAMENAME.location.href='pageToGo.asp
x'");
Where FRAMENAME is the name of the frame to reload/update...

--
Best Regards
Vidar Petursson
==============================
Microsoft Visual: Scripting MVP 2000-2004
http://www.icysoft.com/
http://www.deus-x.com/ Instant e-commerce
http://www.microsoft.com/technet/scriptcenter/
Playground: http://213.190.104.211/ ( IE 5.5+ only )

No matter where you go there you are
==============================
 
Back
Top