[Javascript] Navigating to a named anchor from a remote window

Senior, Henry (TWIi London) HSenior at twii.net
Fri Jun 14 12:38:21 CDT 2002


Alan,

I've never tried this, but there is a 'hash' property of document.location
that is read/write(javascript 1.1).
Try something like document.location.hash='teach' after the window has
refreshed.

Failing that, there is an IE4+only method
element.scrollIntoView()

-----Original Message-----
From: javascript-request at LaTech.edu
[mailto:javascript-request at LaTech.edu]
Sent: 14 June 2002 18:01
To: javascript at LaTech.edu
Subject: Javascript digest, Vol 1 #672 - 3 msgs


Send Javascript mailing list submissions to
	javascript at LaTech.edu

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.LaTech.edu/mailman/listinfo/javascript
or, via email, send a message with subject or body 'help' to
	javascript-request at LaTech.edu

You can reach the person managing the list at
	javascript-admin at LaTech.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Javascript digest..."


Today's Topics:

   1. Re: changing the mouse pointer (Rodney Myers)
   2. opener window refresh (Alan Easton)
   3. RE: opener window refresh (Scott.Wiseman)

--__--__--

Message: 1
Date: Fri, 14 Jun 2002 09:42:48 +0100
From: Rodney Myers <rodney at aflyingstart.net>
To: javascript at LaTech.edu
Subject: Re: [Javascript] changing the mouse pointer
Reply-To: javascript at LaTech.edu

According to O'Reilly / Dynamic HTML / Goodman
these are the styles available in IE4+
Book was published too early to comment on NN6 but NN4 does not support
this style.

default (arrow similar to nw-resize)

crosshair hand move text wait help

(Following are arrows pointing in the compass direction indicated)
n-resize s-resize e-resize w-resize
ne-resize se-resize nw-resize sw-resize

Rodney


Peter Brunone wrote:

>     This can be done with a style attribute over items, so you should
> be able to change it for the entire body like
> so:document.body.style.cursor = 'hand;     I only know "hand" -- don't
> have the chart handy :), but I believe the name of the hourglass
> cursor is "wait".
>
>      Is it possible to change the mouse pointer to the hourglass
>      while a piece of javascript is running? If so how?ThanksLau
>



--__--__--

Message: 2
From: Alan Easton <alan.easton at unn.ac.uk>
To: 'Java-List' <javascript at LaTech.edu>
Date: Fri, 14 Jun 2002 14:51:52 +0100
Subject: [Javascript] opener window refresh
Reply-To: javascript at LaTech.edu

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C213AA.A382EDB0
Content-Type: text/plain;
	charset="iso-8859-1"

Hi All,
 
Problem: I have a window that opens a smaller window for some ASP
calculations. Now I have the parent window(opener) refreshing okay when the
ASP calculations have finished, but I have a further problem. I would like
the opener window not only to refresh, but go to a certain <a name> tag on
the opener window page.
 
Any Ideas.
 
I use "window.opener.navigate(window.opener.document.location.href);" to
refresh the opener window, but I need it to refresh and go to a particular
part of that opener window.
 
I've tried "window.opener.navigate('profile.asp#teach');" but IE doesn't
like that, also
window.location('profile.asp#teach');" after an initial refresh of the
opener window, but IE doesn't like that either.
 
As usual, any help or ideas are much appreciated,
 
Thanks,
 
Alan...

------_=_NextPart_000_01C213AA.A382EDB0
Content-Type: application/ms-tnef
Content-Transfer-Encoding: base64

eJ8+IigNAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQWAAwAOAAAA0gcGAA4ADgAzADQABQBnAQEggAMADgAAANIHBgAO
AA4AOAAmAAUAXgEBCYABACEAAAAzQjU5Q0FBMTk4N0ZENjExQjNGNzAwNTA4QkNGN0I2QwBPBwEE
gAEAFgAAAG9wZW5lciB3aW5kb3cgcmVmcmVzaABQCAENgAQAAgAAAAIAAgABA5AGAFANAAAyAAAA
AwAAgAggBgAAAAAAwAAAAAAAAEYAAAAAUoUAACdqAQAeAAGACCAGAAAAAADAAAAAAAAARgAAAABU
hQAAAQAAAAQAAAA5LjAACwACgAggBgAAAAAAwAAAAAAAAEYAAAAABoUAAAAAAAADAAOACCAGAAAA
AADAAAAAAAAARgAAAAABhQAAAAAAAAsABIAIIAYAAAAAAMAAAAAAAABGAAAAAAOFAAAAAAAACwAF
gAggBgAAAAAAwAAAAAAAAEYAAAAADoUAAAAAAAADAAaACC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GN0I2QzA0QTUxMkJBQGNvbG9yYWRvLnVubi5hYy51az4AAABjQQ==

------_=_NextPart_000_01C213AA.A382EDB0--

--__--__--

Message: 3
From: "Scott.Wiseman" <swiseman at remax-cahi.com>
To: "'javascript at LaTech.edu'" <javascript at LaTech.edu>
Date: Fri, 14 Jun 2002 09:04:22 -0700
Subject: [Javascript] RE: opener window refresh
Reply-To: javascript at LaTech.edu

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C213BD.26252370
Content-Type: text/plain;
	charset="iso-8859-1"

opener.myform.myfield.focus();
 
 
this is from an window that was opened from a Frame window
 
<script language="JavaScript">

// opener.location.reload();

<% if popup then

response.write "alert('Not All Values Were Entered');" &vbcrlf

response.write "self.close();"&vbcrlf

else

response.write "opener.parent.TransDetail.myform.propertyaddress.focus();"

response.write "self.setTimeout('self.close()',1000) ;" 

end if

%> 

</script> 

-----Original Message-----
From: Alan Easton [mailto:alan.easton at unn.ac.uk]
Sent: Friday, June 14, 2002 6:52 AM
To: 'Java-List'
Subject: opener window refresh


Hi All,
 
Problem: I have a window that opens a smaller window for some ASP
calculations. Now I have the parent window(opener) refreshing okay when the
ASP calculations have finished, but I have a further problem. I would like
the opener window not only to refresh, but go to a certain <a name> tag on
the opener window page.
 
Any Ideas.
 
I use "window.opener.navigate(window.opener.document.location.href);" to
refresh the opener window, but I need it to refresh and go to a particular
part of that opener window.
 
I've tried "window.opener.navigate('profile.asp#teach');" but IE doesn't
like that, also
window.location('profile.asp#teach');" after an initial refresh of the
opener window, but IE doesn't like that either.
 
As usual, any help or ideas are much appreciated,
 
Thanks,
 
Alan...


------_=_NextPart_001_01C213BD.26252370
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4912.300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=968310316-14062002><FONT face=Arial color=#0000ff 
size=2>opener.myform.myfield.focus();</FONT></SPAN></DIV>
<DIV><SPAN class=968310316-14062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=968310316-14062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=968310316-14062002><FONT face=Arial color=#0000ff
size=2>this 
is from an window that was opened from a Frame window</FONT></SPAN></DIV>
<DIV><SPAN class=968310316-14062002><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=968310316-14062002><FONT color=#0000c0 size=1>
<P>&lt;script language</FONT><FONT color=#000000 
size=1>="JavaScript"</FONT><FONT color=#0000c0 size=1>&gt;</P></FONT><FONT 
color=#800000 size=1>
<P>// opener.location.reload();</P>
<P>&lt;% if popup then</P>
<P>response.write "alert('Not All Values Were Entered');" &amp;vbcrlf</P>
<P>response.write "self.close();"&amp;vbcrlf</P>
<P>else</P>
<P>response.write 
"opener.parent.TransDetail.myform.propertyaddress.focus();"</P>
<P>response.write "self.setTimeout('self.close()',1000) ;" </P>
<P></P>
<P>end if</P>
<P>%&gt; </P>
<P></P></FONT><FONT color=#0000c0 size=1>
<P>&lt;/script&gt;</FONT><FONT color=#000000 size=1>
</P></FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Alan Easton 
  [mailto:alan.easton at unn.ac.uk]<BR><B>Sent:</B> Friday, June 14, 2002 6:52 
  AM<BR><B>To:</B> 'Java-List'<BR><B>Subject:</B> opener window 
  refresh<BR><BR></FONT></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial size=2>Hi 
  All,</FONT></SPAN></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial size=2>Problem: I
have a 
  window that opens a smaller window for some ASP calculations. Now I have
the 
  parent window(opener) refreshing okay when the ASP calculations have
finished, 
  but I have a further problem. I would like the opener window not only to 
  refresh, but go to a certain &lt;a name&gt; tag on the opener window 
  page.</FONT></SPAN></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial size=2>Any 
  Ideas.</FONT></SPAN></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial size=2><FONT
face=Arial 
  size=2></FONT></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial size=2>I use 
  "window.opener.navigate(window.opener.document.location.href);" to refresh
the 
  opener window, but I need it to refresh and go to a particular part of
that 
  opener window.</FONT></SPAN></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial size=2>I've tried 
  "window.opener.navigate('profile.asp#teach');" but IE doesn't like that, 
  also</FONT></SPAN></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2>window.location('profile.asp#teach');" after an initial refresh of
the 
  opener window, but IE doesn't like that either.</FONT></SPAN></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial size=2>As usual, any
help 
  or ideas are much appreciated,</FONT></SPAN></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2>Thanks,</FONT></SPAN></DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=981474013-14062002><FONT face=Arial 
  size=2>Alan...</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C213BD.26252370--


--__--__--

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


End of Javascript Digest


DISCLAIMER - The preceding e-mail message (including any attachments)
contains information that may be confidential, may be protected by the
attorney-client or other applicable privileges, or may constitute non-public
information.  It is intended to be conveyed only to the designated
recipient(s) named above.  If you are not an intended recipient of this
message, or have otherwise received it in error, please notify the sender by
replying to this message and then delete all copies of it from your computer
system.  Any use, dissemination, distribution, or reproduction of this
message by unintended recipients is not authorized and may be unlawful. The
contents of this communication do not necessarily represent the views of
this company.



More information about the Javascript mailing list