Refresh another Frame

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
 
C

Curt_C [MVP]

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.
 
E

Eddie

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...
 
V

Vidar Petursson

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
==============================
 
E

Eddie

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
==============================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top