Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > JS that both refreshes a page, and also loads into a frame?

Reply
Thread Tools

JS that both refreshes a page, and also loads into a frame?

 
 
jamesmgregg68@gmail.com
Guest
Posts: n/a
 
      05-05-2006
I'm somewhat of a JS dummy, so any help here is appreciated.

I have a page with multiple iFrames that load like main, secondary, and
tertiary menus -
click Link A or B in frame #1, it loads a page ("ay.htm" or "bee.htm")
in frame #2.
click Link C, D or E in frame #2, it loads a page in frame #3.
click Link F, G, H, or I in frame #3, it loads a page in frame #4.

Let's say I clicked Link B in frame #1, and opened a bunch of submenus
in the other 3 iFrames.

The problem is, if I've drilled down that far and then go back to frame
#1 and click Link A, I still see all the Link B submenu content.

I added a simple JS button so the user can click and refresh the entire
page back to nothing, but knowing end-users they don't always work that
way.

So....
How can I make it so if the user clicks Link A or B at any time, it
both refreshes the entire page (and therefore clears all the content in
frames #2-4), AND loads the requested document into frame #2?

Or is there an easier way to do this?

 
Reply With Quote
 
 
 
 
jamesmgregg68@gmail.com
Guest
Posts: n/a
 
      05-08-2006
bump....no solution to this problem? thanks

 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      05-08-2006
To further the education of mankind, vouchsafed:

> I'm somewhat of a JS dummy, so any help here is appreciated.
>
> I have a page with multiple iFrames that load like main, secondary, and
> tertiary menus -
> click Link A or B in frame #1, it loads a page ("ay.htm" or "bee.htm")
> in frame #2.
> click Link C, D or E in frame #2, it loads a page in frame #3.
> click Link F, G, H, or I in frame #3, it loads a page in frame #4.
>
> Let's say I clicked Link B in frame #1, and opened a bunch of submenus
> in the other 3 iFrames.
>
> The problem is, if I've drilled down that far and then go back to frame
> #1 and click Link A, I still see all the Link B submenu content.
>
> I added a simple JS button so the user can click and refresh the entire
> page back to nothing, but knowing end-users they don't always work that
> way.
>
> So....
> How can I make it so if the user clicks Link A or B at any time, it
> both refreshes the entire page (and therefore clears all the content in
> frames #2-4), AND loads the requested document into frame #2?
>
> Or is there an easier way to do this?


One thing I always wanted to try and never did was "about:blank" in the
iframe. If that doesn't work, you could append a hash or query string to
the url.

--
Neredbojias
Infinity has its limits.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
have a look at my blog site for asp.net .. there is microsoft contest also ( u can win so much)have a look at my blog site for asp.net .. there is microsoft contest also ( u can win so much) justpratik Python 0 06-08-2007 04:48 AM
Re: UPDATE: They didn't only pledge allegiance to Mex flag: anchor babies in TX *also* shouted "RAZA! RAZA!" in US school also tedorn44@hotmail.com Digital Photography 9 10-21-2006 11:12 AM
Databound control with both RepeatColumns and also Paging enabled? Al Cadalzo ASP .Net Web Controls 0 01-10-2006 07:43 PM
Help: Webform refreshes itself regularly - WHY??? VB Programmer ASP .Net 0 11-03-2003 07:12 PM
Where to store Variables that have to last during Refreshes and Postbacks Vincent V ASP .Net 0 07-08-2003 01:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57