473,563 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="galleryob j.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.htm l"
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 6701
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="galleryob j.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.htm l"
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="galleryob j.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="galleryob j.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************ ***@orangebucke t.co.uk> wrote in message news:<bk******* *****@ID-203032.news.uni-berlin.de>...
<object type="text/html" data="galleryob j.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,hopefull y 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
2630
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 very bottom of this message. All I want to do is add a target="top" to the URL which is displayed as a link at the top of the results. I know...
19
11176
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 HREF="http://www.targetedomain.com/" TARGET="_top">...</A> Arty
4
7363
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 $url_1 = 'http://www.company.com/cgi-bin/company.cgi/_address?for_sale=&_act=query&_dbf=retailol.dbf&_tar=_ret_m&';
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
923
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.