![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Folks If I open a window using window.open and give it a name (ie call it myWindow), can I also reference this window using the html tag <A HREF=/xyz.html TARGET=myWindow). |
|
I have tried but find that when I click on my <A> tag link it opens a new window instead of using a previously javascript opened/named window of the same name. |
|
done something wrong. For more info, I have a different post (that nobody has replied too probably because its a bit long) with the subject line "Problems with target in hyperlinks" All help, via the newsgroup is much appreciated, thanks randelld |
#2
| |||
| |||
|
|
Randell D. wrote: Folks If I open a window using window.open and give it a name (ie call it myWindow), can I also reference this window using the html tag <A HREF=/xyz.html TARGET=myWindow). It must be a secondary window, I believe. You can reference a named secondary window with the target attribute but the issue is that such window won't get the focus once the link is clicked (the new document will load though). So, you need javascript support enabled. I have tried but find that when I click on my <A> tag link it opens a new window instead of using a previously javascript opened/named window of the same name. That shouldn't be. Show the code, preferably just an url. |
#3
| ||||
| ||||
|
|
"DU" <drunclear (AT) hot-R-E-M-O-V-E-mail (DOT) com> wrote in message news:bo6fug$h7f$1 (AT) news (DOT) eusc.inter.net... Randell D. wrote: Folks If I open a window using window.open and give it a name (ie call it myWindow), can I also reference this window using the html tag <A HREF=/xyz.html TARGET=myWindow). It must be a secondary window, I believe. You can reference a named secondary window with the target attribute but the issue is that such window won't get the focus once the link is clicked (the new document will load though). So, you need javascript support enabled. I have tried but find that when I click on my <A> tag link it opens a new window instead of using a previously javascript opened/named window of the same name. That shouldn't be. Show the code, preferably just an url. Thanks for the prompt reply and the help... I'm unable to make the actual pages available since the whole application is on an intranet - I have been able to upload the page though on to a webserver - It should be sufficient though cosmetically speaking, it looks awful... http://www.wiredwords.net/cmlist.html The above page shows addresses - I filled my database with about 10,000 records for me to play with - random names, streets and other info... Secondly, the above page showsa slimed down list. Also, at the same time, a new window is opened (using window.open and called "contactManager"). |
|
that a new window opens up and is "hidden" underneath the main cmlist.html window. |
|
Now... if you click on one of the names (to see the full record) on the cmlist.html window (for example Mr Curt BlastnameAEIY) it has a target of "contactManager". I would expect the record is displayed on the "hidden" window (called contactManager) - Instead, a new window is opened... Both were named "contactManager" - the only difference is that one was named using javascript, while the other was named from within an HTML A tag. |
|
D'ya know why? D'ya know how I could fix it? My javascript skills are new so I don't know if its something I'm doing wrong, or if its something I'm doing wright, but is infact not supported/permitted hence I don't know if I'm wasteing my time trying to get it to work. Your help is very much appreciated, thanks randelld. |
#4
| |||
| |||
|
|
Secondly, the above page showsa slimed down list. Also, at the same time, a new window is opened (using window.open and called "contactManager"). Note that a new window opens up and is "hidden" underneath the main cmlist.html window. |
|
Now... if you click on one of the names (to see the full record) on the cmlist.html window (for example Mr Curt BlastnameAEIY) it has a target of "contactManager". |
|
D'ya know why? D'ya know how I could fix it? |
#5
| |||
| |||
|
|
Secondly, the above page showsa slimed down list. Also, at the same time, a new window is opened (using window.open and called "contactManager"). Note that a new window opens up and is "hidden" underneath the main cmlist.html window. This is true. Now... if you click on one of the names (to see the full record) on the cmlist.html window (for example Mr Curt BlastnameAEIY) it has a target of "contactManager". Not on the URL you specified it hasn't. D'ya know why? D'ya know how I could fix it? The 'www' links have the target of 'contactManager' and do open in the window you want. The names on the other hand use onClick handlers that trigger the form submission and the target of the form is 'new' which is the third window. |
![]() |
| Thread Tools | |
| Display Modes | |
| |