Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > target frame javascript

Reply
Thread Tools

target frame javascript

 
 
email@isanoniem.nl
Guest
Posts: n/a
 
      08-07-2006
I've used the following actionscript in my Flash navigational buttons
to load the 5 individual contentpages in the content frame of my
frameset named "content"

getURL("http://www.digitalecartoons.nl/mail.htm", "content");

This works ok.

In case someone types www.digitalecartoons.nl/mail.htm, I didn't want
just the mail.htm page to be displayed. Without the navigational frame
I mean. I solved this with the following javascript in each of the 5
pages, so that instead the homepage is loaded. Meaning the index.htm
frameset.

<SCRIPT TYPE="text/javascript">
<!--
if (window == top) {
top.location.replace("index.htm"); } //-->
</SCRIPT>

This also works ok.

But now I get an email from somebody saying that when she clicks on any
flash button, instead of the page being loaded into the "content" frame
of the index frameset, the homepage is reloaded. As if in her case the
javascript doesn't recognize the "content" part in the geturl. Thinking
just the mail.htm is being accessed. Or as of the Flash button doesn't
use the "content" part.

I haven't heard any complaints like this, but what could be wrong in
her case? She both tried Internet Explorer and Firefox and uses the
latest flash player and sun java.

 
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
foist javascript into another frame, and evaluate it in the target context Phlip Javascript 13 12-17-2006 04:18 PM
target form field in iframe w/in frame from other frame starman7@hotmail.com Javascript 2 05-27-2005 10:25 AM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
navigating to a target frame using javascript rbowie@hotmail.com Javascript 1 03-30-2005 01:44 PM
need help using javascript to target a frame! TheKeith HTML 20 06-26-2003 05:19 PM



Advertisments