Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > using window.location with frames

Reply
Thread Tools

using window.location with frames

 
 
cillic
Guest
Posts: n/a
 
      08-16-2005
I have a page which consists of index.html, navigation.html and
home.html.

Index.html has the following frameset info...

<FRAMESET COLS="250,*" FRAMEBORDER="NO" FRAMESPACING="0"
SCROLLING="NO">
<FRAME SRC="navigation.html" NAME="NAVIGATE" SCROLLING="AUTO">
<FRAME SRC="home.html" NAME="DETAIL" SCROLLING="AUTO">
</FRAMESET>

On navigation.html, I have a form consiting of a text box and a button
which is used to run a function (mySearch) which pulls the resulting
webpage into the frame with:

window.location = url;

The search works splendid, except that window.location = url; populates
my the 'Navigation' frame (where the form/code is). I want it to
populate the 'DETAIL' frame. How can i modify my function to hit the
other frame, or is there additional programming necessary for this?

Thanks in advanced!

 
Reply With Quote
 
 
 
 
ASM
Guest
Posts: n/a
 
      08-16-2005
cillic wrote:
> I have a page which consists of index.html, navigation.html and
> home.html.
>
> Index.html has the following frameset info...
>
> <FRAMESET COLS="250,*" FRAMEBORDER="NO" FRAMESPACING="0"
> SCROLLING="NO">
> <FRAME SRC="navigation.html" NAME="NAVIGATE" SCROLLING="AUTO">
> <FRAME SRC="home.html" NAME="DETAIL" SCROLLING="AUTO">
> </FRAMESET>


parent.DETAIL.location.href = url;

or

<form target="DETAIL" action="http://www.google.com/custom" method="get">



--
Stephane Moriaux et son [moins] vieux Mac
 
Reply With Quote
 
 
 
 
Guy
Guest
Posts: n/a
 
      08-17-2005
Bonjour,

try :

parent.DETAIL.location.href = myurl;

Guy

cillic a écrit:
> I have a page which consists of index.html, navigation.html and
> home.html.
>
> Index.html has the following frameset info...
>
> <FRAMESET COLS="250,*" FRAMEBORDER="NO" FRAMESPACING="0"
> SCROLLING="NO">
> <FRAME SRC="navigation.html" NAME="NAVIGATE" SCROLLING="AUTO">
> <FRAME SRC="home.html" NAME="DETAIL" SCROLLING="AUTO">
> </FRAMESET>
>
> On navigation.html, I have a form consiting of a text box and a button
> which is used to run a function (mySearch) which pulls the resulting
> webpage into the frame with:
>
> window.location = url;
>
> The search works splendid, except that window.location = url; populates
> my the 'Navigation' frame (where the form/code is). I want it to
> populate the 'DETAIL' frame. How can i modify my function to hit the
> other frame, or is there additional programming necessary for this?
>
> Thanks in advanced!
>


 
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
having a problem with scrolling frames as if no frames surfunbear@yahoo.com HTML 0 03-08-2006 09:54 PM
Frames and borders around specific frames meyousikmann@yahoo.com HTML 1 02-10-2006 11:12 PM
Frames or not Frames... Ale HTML 17 08-05-2005 12:10 AM
Link needed to go from a non-frames page to a Frames page, and load a particular frame. How? - Newbe Philip HTML 3 06-28-2004 03:06 PM
From Frames to no frames? Powerslave2112 HTML 2 01-20-2004 10:30 PM



Advertisments