473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

target="_top" tag problems

Hello,

I have written a website www.pusspaws.net, my problem is in the
gallery section.
I have coded ...

<object type="text/html" data="galleryobj.html" border="0" width="422"
height="325"></object><br>

to make a scrolling window (Or is it a frame with an <object> tab ?),
which seems to work well,

Inside the window I have made every image a clickable link to view a
larger picture. The code I have used is ...

<a href="card1.html"
target="_top"><img src="jpegs/card1.jpeg" alt=
"Diamond wedding invitation card" title=
"Diamond wedding invitation card" align="left" border="0" width=
"200" height="141"></a> <span class="midtext"> ...

Where jpegs/card1.html is the larger image.

MY PROBLEM ...

In windows 98SE it works perfectly. The _top target breaks out of the
<object> tag & displays the image full screen. If I click the browser
back arrow I go back to the main galler page, just as I intended.

In windows XP it apparently (I do not run XP) does not work. The large
image is caught inside the <object> "frame" & you have to use the
scroll bars to see a tiny portion of it. Not what I intended.

Can anyone suggest some coding changes to make it work in XP ?

Many thanks in advance
Dave
Jul 20 '05 #1
8 6687
Els
Dave wrote:
Hello,

I have written a website www.pusspaws.net, my problem is in the
gallery section.
I have coded ...

<object type="text/html" data="galleryobj.html" border="0" width="422"
height="325"></object><br>

to make a scrolling window (Or is it a frame with an <object> tab ?),
which seems to work well,

Inside the window I have made every image a clickable link to view a
larger picture. The code I have used is ...

<a href="card1.html"
target="_top"><img src="jpegs/card1.jpeg" alt=
"Diamond wedding invitation card" title=
"Diamond wedding invitation card" align="left" border="0" width=
"200" height="141"></a> <span class="midtext"> ...

Where jpegs/card1.html is the larger image.

MY PROBLEM ...

In windows 98SE it works perfectly. The _top target breaks out of the
<object> tag & displays the image full screen. If I click the browser
back arrow I go back to the main galler page, just as I intended.

In windows XP it apparently (I do not run XP) does not work. The large
image is caught inside the <object> "frame" & you have to use the
scroll bars to see a tiny portion of it. Not what I intended.

Can anyone suggest some coding changes to make it work in XP ?


It's not XP that's the problem, but IE.
Netscape under XP displays it the way you intended.
I don't know anything about using <object>, so I'll leave
the answering of your question to others ;-)
--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #2
go****@pusspaws.net (Dave) wrote:
I have coded ...

<object type="text/html" data="galleryobj.html" border="0" width="422"
height="325"></object><br>
Stop doing that. Problem solved.
In windows XP it apparently (I do not run XP) does not work. The large
image is caught inside the <object> "frame" & you have to use the
scroll bars to see a tiny portion of it. Not what I intended.
What made you think the target="_top" attribute should work in some
particular way in this context? An element embedded via <object> is to be
rendered autonomously, just in a canvas embedded into another page's
content, so it's a moot point what "_top" reallt refers to.
Can anyone suggest some coding changes to make it work in XP ?


Stop using frames, and especially stop using fake frames.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #3
> <object type="text/html" data="galleryobj.html" border="0" width="422"
height="325"></object><br>
I have only limited experience with <object> used like this but it was
sufficient for me to avoid it. Weird and wonderful things happened when I
tried to use it, especially with IE which in particular behaved very
strangely unless the embedded page was XHTML instead of HTML 4.01.
In windows XP it apparently (I do not run XP) does not work. The large
image is caught inside the <object> "frame" & you have to use the
scroll bars to see a tiny portion of it. Not what I intended.
As has been suggested, this is probably an IE v other browsers problem
though which is the 'correct' behaviour seems a little unclear. It seems to
me that IE's interpretation has a lot going for it. <object> is not a
'frame' after all so treating it like a separate canvas seems to make a lot
of sense.
Can anyone suggest some coding changes to make it work in XP ?


You seem to be using 4.01 Transitional so why not give <iframe> a go. That
is very much a 'frame' so browser behaviour should be consistent.
G.


Jul 20 '05 #4
Dave wrote:
In windows XP it apparently (I do not run XP) does not work. The large
image is caught inside the <object> "frame" & you have to use the
scroll bars to see a tiny portion of it. Not what I intended.


It works fine for me in Mozilla under Windows XP.

--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/

Jul 20 '05 #5
"Graham J" <in***************@orangebucket.co.uk> wrote in message news:<bk************@ID-203032.news.uni-berlin.de>...
<object type="text/html" data="galleryobj.html" border="0" width="422"
height="325"></object><br>


I have only limited experience with <object> used like this but it was
sufficient for me to avoid it. Weird and wonderful things happened when I
tried to use it, especially with IE which in particular behaved very
strangely unless the embedded page was XHTML instead of HTML 4.01.
In windows XP it apparently (I do not run XP) does not work. The large
image is caught inside the <object> "frame" & you have to use the
scroll bars to see a tiny portion of it. Not what I intended.


As has been suggested, this is probably an IE v other browsers problem
though which is the 'correct' behaviour seems a little unclear. It seems to
me that IE's interpretation has a lot going for it. <object> is not a
'frame' after all so treating it like a separate canvas seems to make a lot
of sense.
Can anyone suggest some coding changes to make it work in XP ?


You seem to be using 4.01 Transitional so why not give <iframe> a go. That
is very much a 'frame' so browser behaviour should be consistent.
G.


Many thanks, I will give <iframe> a go

Dave
Jul 20 '05 #6
Hello,

I have modified <object> to <itable>, can anyone running XP IE look at
www.pusspaws.net & tell me if the gallery works as I had planned ...
ie initial e-mail.

Many thanks
Dave
Jul 20 '05 #7
Els
Dave wrote:
Hello,

I have modified <object> to <itable>, can anyone running XP IE look at
www.pusspaws.net & tell me if the gallery works as I had planned ...
ie initial e-mail.


Yep, it's working.
Just a little thing: Once the bigger pic is on the screen,
the only way back is with the back-button of the browser.
I, just speaking for myself, find it easy if I can go back
by clicking on the big picture.
(just a habit ;-) )

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #8
> Yep, it's working.
Just a little thing: Once the bigger pic is on the screen,
the only way back is with the back-button of the browser.
I, just speaking for myself, find it easy if I can go back
by clicking on the big picture.
(just a habit ;-) )


Tweeked it again, added a link at the bottom,hopefully still works,
Thanks for your input

Dave
Jul 20 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rob McLennan - ZETLAND | last post by:
Hi, I'm relatively clueless when it comes to correct ASP syntax. I'm testing out a search form for my company's website which is done in ASP. The results are displayed as per the code shown at the...
19
by: Arthur Connor | last post by:
Currently I specified a TARGET attribute inside an <A> tag which is not allowed under strict XHTML. How do I change the line to meet the requirements of strict HTML? <A...
4
by: socialism001 | last post by:
I have the following code in my cgi script. How would I use target="_top" in the code below so that it would prevent my page from opening in a frame. Thanks, Chris ********************* my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.