473,396 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

multiple frame-update

Hello,

I try to update several frames in one mouseclick. There is an error in the
code below, that is for sure. The Text-frame doesn't get updated. What do I
do wrong?

Thanks,

Sjoerd


<a href="Mirte.htm"
target="Info"
onclick="if (parent.frames.Play) {
parent.frames.Play.location.href = 'PlayMirte.htm';
}
and
if (parent.frames.Text) {
parent.frames.Text.location.href = 'Text0000.htm';
}
return true;">
Mirte
</a>
Nov 7 '05 #1
1 1230
ark312 wrote:
I try to update several frames in one mouseclick. There is an error in the
code below, that is for sure. The Text-frame doesn't get updated. What do
I do wrong?
[...]
<a href="Mirte.htm"
target="Info"
onclick="if (parent.frames.Play) {
parent.frames.Play.location.href = 'PlayMirte.htm';
}
and
if (parent.frames.Text) {
parent.frames.Text.location.href = 'Text0000.htm';
}
return true;">
Mirte
</a>


Using fantasy code. There is no `and' operator in JS, and even
if it were, it would have to be within the `if' statement and its
conditional expression, not without:

if (parent.frames['Play'] && parent.frames['Text'])
{
...
}

Or if either statement should only be executed if the respective
frame is available, omit the `and'.

Note that newlines in attribute values are potentially harmful in XHTML.
The code above is harder to maintain anyway, call a method instead.

Get yourself decent language documentations and look it up.

<http://jibbering.com/faq/>
PointedEars

P.S.: Multiposting to several newsgroups is a Bad Thing.
Nov 7 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: flupke | last post by:
Hi, i need to develop a gui which will load several "windows" depending on what the users selects in the menu and i thought i could accomplish this with panels. What i'm trying to do to test...
6
by: Wladimir Borsov | last post by:
I would like to load multiple web pages from Internet into ONE single browser window - one below the other. How do I do that most easily ? One idea is to built a frameset (for e.g 6 web pages)...
5
by: Tim Johnson | last post by:
Howdy: Let's suppose for illustration that I have a web page with 3 frames: Let's call them 'fStates', 'fCounties', and 'fCities'. On loading the page, fStates has a select list of states and...
0
by: fchef | last post by:
I am looking for some advice on working with Multiple frame instances. Essentially I need to be able to refer to specific control values in a frame and be able to hide/show a specific frame. In VB...
1
by: Andy Britcliffe | last post by:
Hi I'm faced with the situation where I could have a single physical file that could contain multiplie XML documents e.g file.txt contains the following: <?xml version="1.0"...
1
by: favor08 | last post by:
I need help with a big project. I am struggle getting multiple option buttons and filters to work together. They need to be able to filter a subform. My first set of option buttons work fine all...
13
Sushi
by: Sushi | last post by:
Hello again all! (and happy easter if you are that way inclined) I have this file called cameratrack.txt: 0 (0 ,0 ,0 ) 5 (5 ,0 ,0 ) 10 (10 ,0 ,0 ) 15 (15 ,5 ,0 ) 20 (20 ,10 ,0 ...
3
by: ApoorvaDesai | last post by:
I have 2 frames and on a button click event on frame 1 I want to hide frame 1 and show frame 2 I can hide frame 1 but frame 2 does not appear. I would really appreciate all the help. I am...
4
by: tudyfruity18 | last post by:
I'm suppose to write an applet that contains two buttons Investment calculator and Loan Calculator. When the Investment Calculator button is clicked, a frame appears in a new window for calculating...
0
by: Anish Chapagain | last post by:
Hi!! I'm trying to program an application which have multiple windows and is capable of executing method defined inside class of one another, i tries a simpel frame work here and am creating...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.