HighDots Forums  

JAVASCRIPT & FRAMES

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss JAVASCRIPT & FRAMES in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
SilverBullit
 
Posts: n/a

Default JAVASCRIPT & FRAMES - 11-02-2005 , 05:02 AM






Anyone know of some Javascript(or alternative) that i can use to display the
content of a specific frame within a target frameset?

I want to load x.html into the bottomframe but i also need the frameset to
change too.

Thanks



Reply With Quote
  #2  
Old   
joost kolkman
 
Posts: n/a

Default Re: JAVASCRIPT & FRAMES - 11-02-2005 , 07:34 AM






SilverBullit wrote:
Quote:
Anyone know of some Javascript(or alternative) that i can use to display the
content of a specific frame within a target frameset?

I want to load x.html into the bottomframe but i also need the frameset to
change too.

Thanks


try something like this:

// See http://www.searchmechanics.com/learn/srf/ for details.
var str = location.search;
var writeFrames = (str.indexOf("nowritefs")) && (top.window.length == 0);

if (writeFrames)
{
// We are in the frameset context - write the framset out
if (str == "")
{
var bodyFrame = window.location + "?nowritefs";
}
else
{
var bodyFrame = window.location + "&nowritefs";
}
document.write(
'<frameset cols="200,*" frameborder="NO" border="0" framespacing="0">',
'<frame src="../../navigatie/nav_p4.html" name="navigatie"
scrolling="NO" noresize id="navigatie">',
'<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">',
'<frame src="../top.html" name="topframe" scrolling="NO" noresize>',
'<frame marginHeight=0 marginWidth=00 name=textframe src="' + bodyFrame
+ '">',
'</frameset>',
'</frameset>');
}

Joost Kolkman


Reply With Quote
  #3  
Old   
SilverBullit
 
Posts: n/a

Default Re: JAVASCRIPT & FRAMES - 11-02-2005 , 07:50 AM



Thanks a lot!

Couldn't access http://www.searchmechanics.com/learn/srf/ but will try again
later.
Got to do a bit of customising, so could do with the details. It's not
exactly a frameset i'm working with- it's a standard html page with an
ilayer that is displaying the content of another html page. So i actually
want to load 'x.html' into the ilayer of the html page i am linking to.
Should be able to customise the script tho...hopefully...

Thanks again



Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: JAVASCRIPT & FRAMES - 11-02-2005 , 07:58 AM



<ilayer>? Really? Why? You know it's only suported in NN4x, right?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"SilverBullit" <silverbullit (AT) hotmail (DOT) com> wrote

Quote:
Thanks a lot!

Couldn't access http://www.searchmechanics.com/learn/srf/ but will try
again
later.
Got to do a bit of customising, so could do with the details. It's not
exactly a frameset i'm working with- it's a standard html page with an
ilayer that is displaying the content of another html page. So i actually
want to load 'x.html' into the ilayer of the html page i am linking to.
Should be able to customise the script tho...hopefully...

Thanks again





Reply With Quote
  #5  
Old   
SilverBullit
 
Posts: n/a

Default Re: JAVASCRIPT & FRAMES - 11-02-2005 , 09:24 AM



well it's working all the browsers i've tested, NN, IE, FF... maybe i meant
iframe?



Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: JAVASCRIPT & FRAMES - 11-02-2005 , 11:34 AM



Maybe. Did you try looking at the code?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"SilverBullit" <silverbullit (AT) hotmail (DOT) com> wrote

Quote:
well it's working all the browsers i've tested, NN, IE, FF... maybe i
meant
iframe?





Reply With Quote
  #7  
Old   
joost kolkman
 
Posts: n/a

Default Re: JAVASCRIPT & FRAMES - 11-03-2005 , 05:15 AM



SilverBullit wrote:
Quote:
Thanks a lot!

Couldn't access http://www.searchmechanics.com/learn/srf/ but will try again
later.
Got to do a bit of customising, so could do with the details. It's not
exactly a frameset i'm working with- it's a standard html page with an
ilayer that is displaying the content of another html page. So i actually
want to load 'x.html' into the ilayer of the html page i am linking to.
Should be able to customise the script tho...hopefully...

Thanks again


sorry, that site doesn't exist anymore... it is the sit I took the
adapted the code from so that is why it is in the source code. They had
a manual, but unfortunatly I don't have that.

Joost Kolkman


Reply With Quote
  #8  
Old   
joost kolkman
 
Posts: n/a

Default Re: JAVASCRIPT & FRAMES - 11-03-2005 , 05:21 AM



SilverBullit wrote:

Quote:
Thanks a lot!

Couldn't access http://www.searchmechanics.com/learn/srf/ but will try again
later.
Got to do a bit of customising, so could do with the details. It's not
exactly a frameset i'm working with- it's a standard html page with an
ilayer that is displaying the content of another html page. So i actually
want to load 'x.html' into the ilayer of the html page i am linking to.
Should be able to customise the script tho...hopefully...

Thanks again


You can see the site were I used the code here:

http://www.montessorischoolapollo.nl/over_de_apolloschool/index.html

All the links point to the central frame were the javascript is used to
display the surrounding frames; you can see the titles of the page and
bookmark each page and the site works in all browsers consistently from
netscape 4.7 and up (javascript has to be turned on, still have to work
on the no-script tags to make it work like a 'normal' frames site when
javascript is turned off)

Joost Kolkman


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.