Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Frames can I make 2 events happen

Posted on 1999-01-10
12
Medium Priority
?
157 Views
Last Modified: 2010-04-09
I am using frames for navigation.  What I would liked
to do is to click on a link in the left nav bar and
have 2 things happen - update content in the main frame
(know how to do that) and update the left nav bar as well
with a new page
0
Comment
Question by:kateilles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
  • +2
12 Comments
 
LVL 10

Expert Comment

by:MasseyM
ID: 1841527
<A HREF="link to make frame 1 go to" TARGET="Frame1" onClick="Javascript:Frame1.location.href='http://yourstuff';Frame2.location.href='http://yourstuff';"

( I do not know javascript very well.. I could be TOTALLY wrong for all I know.)
0
 

Author Comment

by:kateilles
ID: 1841528
Any way to do this without JavaScript?  I am making my site fit the lowest common denominator and really don't want to use JavaScript.
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1841529
Well.... hmmmm... I believe the answer is no.  But a thought just crossed my mind.  Maybe you can have, in a META tag an auto-redirect, but the targeting would be the problem.  Basically, javascript is the easiest and most relaible way to go...
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:kateilles
ID: 1841530
Any way to do this without JavaScript?  I am making my site fit the lowest common denominator and really don't want to use JavaScript.
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1841531
Massey is on the right track. Here is the way to do it. Make your link:

<a href="onepage.html" target="firstframe">

and in the header of onepage.html put the following:

<meta http-equiv="refresh" content="0;url=secondpage.html;target=secondframe">
0
 

Author Comment

by:kateilles
ID: 1841532
I have tried the refresh statement.  However it keeps refreshing the main frame as
opposed to the left navbar (tried on services and local directory)  This is the statement I have used <meta http-equiv="refresh" content="0;url=leftnav.htm;target=leftnav">

http://searchers.net/testrefresh/tritest.htm
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1841533
OK, it doesn't work. Reject my answer. You need a javascript solution. It will work in any browser from NS2+ and IE3+. Isn't that good enough?
0
 

Author Comment

by:kateilles
ID: 1841534
I am trying to stay away from JavaScript as it doesn't work on all browsers.
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1841535
Almost every browser. Or solve your problem differently.
0
 
LVL 1

Expert Comment

by:acsmith
ID: 1841536
if you're aiming for the lowest common denominator of browser, then should you be using frames? If the browser supports frames, then it will support the javascript neccessary to redirect them.I'd go with MasseyM's answer.
0
 
LVL 11

Accepted Solution

by:
mouatts earned 200 total points
ID: 1841537
Sorry this is one of those no answers.

The _only_ way that multiple windows can be updated from a single submit or request without the use of VB script is to output a new frameset.

This is a basic feature of the HTTP protocol an not a limitation of the browser.

However loading a new frameset is not necessarily that bad in that with carefull design and the use of nested framesets you can make it look like only two frames have changed but any remaining text has stayed in place. However if you are doing a lot on the server side you may find that this complicates things a bit.

I must point out that whilst you want the lowest common denominator most of the browsers that don't support javascript don't support frames either so you might be on the trail of a holy grail here.

HTH
Steve
0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1841538
I would go with MasseyM too :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question