473,770 Members | 4,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

accessing different frames with javascript

2 New Member
HI There! I hope someone can help me with this as I have been searching for about 2 weeks now for an answer and I have to admit that I am a designer and not much of a coder so all help would be greatly appreciated!!

I have a website for a client www.respectmusic.com.au/welcome.html. At the moment it is divided into two frames and the top frame has a wimpy.swf music player. The reason for this is that my client wants the player to always be playing. The bottom frame source comes from an index.php file. Now what I need to be able to do is when they go to the online store there are options for them to listen to a preview of what they are buying but the top player is still playing. So I either need the preview song to play in the player in the top frame or the player to stop in the top frame and another player start in the bottom frame.

I have the code below but I don't know how to get it to work when the player is in a different frame. Please help!!!

[HTML]<a href="javascrip t:;"
onClick="wimpy_ loadAndPlay(
'example4.mp3', <-- URL to track.mp3
'My Artist', <-- Artist's Name
'My Title', <-- Track Title
'http://www.goto.com', <-- URL link on graphic
'coverart.jpg' <-- URL to graphic.jpg
);">
Load and Play: track 1
</a>
[/HTML]
Thankyou very much anyone that can help me. Or even if you can direct me somewhere. I did go to quirksmode.org but still not quite what I was after. thanks again
Feb 19 '08 #1
1 1526
acoder
16,027 Recognized Expert Moderator MVP
parent.topFrame .wimpy_loadAndP lay(...) where topFrame is the name of the top frame.
Feb 20 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
6664
by: Chris New | last post by:
G'Day All I am having trouble dynamically assigning a value to a table's cell from one frame to another frame. I've created a website that is primarily viewed in a frameset consisting of 2 frames - a navigation frame (navFrame) at the top and a contents frame (mainFrame) on the bottom. In all instances, the mainFrame displays a single page except in one case, where it was necessary to use a frameset consisting of a left frame...
8
1913
by: Frédéric Mayot | last post by:
Hi, I have an HTML page like this : --- test.html <html> <body> <form> <iframe id="frametest" name="frametest" src="iframe.html"></iframe> <select multiple ondblclick="alert(frametest.v);"></select>
2
2006
by: Jeremy Gollehon | last post by:
I'm trying to help a friend out but couldn't find an answer so thought I'd post here. Is it possible to access the frame window at http://www.5460.net (a chinese site)? We're trying to get the DIV elements from its DOM. We were trying: alert(document.frames.document.getElementsByTagName('DIV').length); with no luck. Thanks for any help!
3
8343
by: Greg | last post by:
Javascript Folks, I am relatively new to javascript and am working on a script where I want to utilizes a couple of iframes and format text in them. I have run into a problem with getting the following code to work in mozilla. It seems to work in ie. Eventually I will be replacing the H1 node with a table until I can get the H1 node to show up in mozilla there is not much point.
3
1591
by: Jofio | last post by:
In my frame based page, I have a hyperlink in the top frame called "header" which, when I click, should make two different pages to be loaded and displayed into two different frames, namely "thumbnails" frame and "main" frame simultaneously. My framed page is defined as follows: <frameset rows="15%,*,15%"> <frame src="headerWelcome.html" name="header" /> frameset cols="20%,*,20%">
5
1984
by: Peter | last post by:
I have 3 ASP.NET forms written in C#, I also have 3 frames (left, top and bottom) one for each form. My question is if I have data on one form in the bottom frame how do I access this data when I click on the button which is on the top frame? I want to save the data from the bottom frame to the database when a user clicks on the Update button. Does anyone have an example on how to do this? ...
3
4921
by: thompson_38 | last post by:
I am currently working on a C# application that uses an axWebBrowser control which displays HTML pages. This is being done to reuse an existing web application which resides on a client's computer. I have created a resource .dll linking in all of the HTML, images and JavaScript pages in the old project. Using the res://mydll/homepage.htm, the home page loads into the web browser control (axWebBrowser.Navigate). This page has frameset,...
13
4901
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives, suggestions or improvements? if( wmv file) document.write("<OBJECT id=Player classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 height="354" width="479">
1
1175
by: =?Utf-8?B?TmVhbA==?= | last post by:
Hi How do I execute an existing script from the codebehind.. forcing a different form to do a postback and refresh itself but in it's own frame or alternatively force a reload of an aspx form in a different frame from the aspx form which has posted back. TIA Neal
0
9602
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10237
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9882
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8905
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7431
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3987
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3589
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.