[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 ways to load stuff(was Re: writing to frames)
You shouldn't have problems with
location = URL; // note: no .href property; you're setting
the location object
If you do, tell me! You have to be careful that you don't try to set the
location property of the document object. I think this is okay:
window.location.href = URL; // href of object location
(or)
window.location = URL; // href inferred
but this isn't:
document.location.href; //href of document property location, a
read-only value
As for your comment:
>Seems to me there ought to be a way to set the href without actually
>triggering a loading of the page...
This is logically incongruent. Set the href (a physical entity) and you
change the physical page.
-- Gordon
At 09:19 AM 3/5/96 -0800, you wrote:
>On Mon, 4 Mar 1996, Brian Karlak wrote:
>
>> On Mar 4, 8:21pm, chandy@lunatech.com wrote:
>>
>> > I have a list of links in one frame. On a mouseover() event I want a brief
>> > description of the currently selected link to be written in another small
>> > frame in the user window. How can I write to other frames in a window from
>> > within this frame?
>>
>> Two ways, HTML & JS:
>>
>> HTML: <A HREF="...." TARGET="OtherFrameName">
>>
>> JS: top.frames['OtherFrameName'].document.location.href = "....."
>>
>> Brian
>
>I would like to get a few comments about the various methods of
>triggering a page load via JS. Most of you folks seem to have
>settled upon using the above technique:
>blah.blah.blah.location.href=Full_URL_String
>
>I found that in some of the latter Beta versions of Netscape's 2.0 browser
>the loading of pages was not actually triggered by the setting of the href.
>I had to use the heretofore unexpounded-upon-in-the-docs "assign" method:
>blah.blah.location.assign(Full_URL_String)
>
>Anyone know or have a feeling about whether both will be acceptable
>techniques in the "long-run"?
>
>Seems to me there ought to be a way to set the href without actually
>triggering a loading of the page...hence, I assumed, the .href=""
>capability provided for that need.
>
--------------------------------------------------------------------
For help about the list, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
List archives and pointer to FAQ: http://www.obscure.org/javascript/