Cross refernce to fucntions in another fraem

T

Trevor L.

Following advice from this NG (or was it the scripting NG?), I used this
code in album.html

<body class="thumbs"
onload="PreLoadThumbs();top.frames['heading'].getHeading('Picture
Album')">

The purpose is to place the heading 'Picture Album' into the frame named
heading

The function getHeading() is:
function getHeading(heading)
{
if (heading==null)
heading = "Trevor and Carole's Home Page"
document.getElementById("banner").innerHTML = heading
}
"banner" is an id for a span for the heading

It works in IE and in Firefox on my local disk, but FP gives and error
message Permission denied

Should I be concerned?
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
S

Stefan B Rusynko

FP Preview is not a full browser w/ the same object model as browsers
- always use File Preview in Browser when using scripts

--




| Following advice from this NG (or was it the scripting NG?), I used this
| code in album.html
|
| <body class="thumbs"
| onload="PreLoadThumbs();top.frames['heading'].getHeading('Picture
| Album')">
|
| The purpose is to place the heading 'Picture Album' into the frame named
| heading
|
| The function getHeading() is:
| function getHeading(heading)
| {
| if (heading==null)
| heading = "Trevor and Carole's Home Page"
| document.getElementById("banner").innerHTML = heading
| }
| "banner" is an id for a span for the heading
|
| It works in IE and in Firefox on my local disk, but FP gives and error
| message Permission denied
|
| Should I be concerned?
| --
| Cheers,
| Trevor L.
| Website: http://tandcl.homemail.com.au
|
|
| I choose Polesoft Lockspam to fight spam, and you?
| http://www.polesoft.com/refer.html
|
|
 

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