Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 05-11-2011, 12:00 AM Anchor issue...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Hi,

For some reason, I am having a problem with this anchor code (I believe it's the iframe, but the code should work)

HTML Code:
<a name="Top">&nbsp;</a>
is located in the target page and:

HTML Code:
somepage.php#"Top"
is the link in question with
HTML Code:
target="iframe"
which opens somepage.php#Top in the iframe, but it's not opening up at the top of the page, another words, it's opening half way down the page where the link is.

The page in question?
http://www.reunitemysite.com/main.php and click on the 120 x 240 Pixels link in the banner ad index. The link is opening correct in the target iframe, but it's not going to the top of the iframe page in question and like I say, I have the
HTML Code:
<a name="Top">&nbsp;</a>
in the 120x240.php page. Anyone have the solution?

Note: I guess once banners are put into that page, there wouldn't really be a need for the anchor, but for now, it would be nice to have since I don't know when things are going to pick up.

Thanks again!
Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE

Last edited by Brian07002; 05-11-2011 at 12:50 AM..
Brian07002 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-11-2011, 03:45 AM Re: Anchor issue...
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
I can't see any anchors in the iframe - that won't help
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
Reply With Quote
View Public Profile
 
Old 05-11-2011, 04:50 AM Re: Anchor issue...
lizciz's Avatar
Super Spam Talker

Posts: 807
Name: Mattias Nordahl
Location: Sweden
Trades: 0
I've been looking at your site for a while now and I'm very confused. For me, it seems the window does in fact roll up to the top but the page doesn't open. In fact, it seems the entire iframe disappears or something. And, looking at your source code made me evan more confused.

I don't know if my browser is showing the code properly, but this is what I see.
Code:
...
<iframe width="100%" id="glu" name="iframe" onload="resize_iframe()" style=" border: 0px solid #000000" src="iframe.html"> 
<p>Your browser does not support iframes.</p>
 
</td>
</tr>
</table>
</iframe> 
<html> 
<head><title>Reunite My Site - Footer Template</title></head> 
 
<body>
...
So, almost all of your code is before the <body> tag, whereas it should be inside the <body> tag. And you have several closing tags for the table inside the <iframe> tag, whereas it should be after the <iframe> tag. It seems to me that this snippet of code should instead be looking like this:

Code:
...
<body>
...
<iframe width="100%" id="glu" name="iframe" onload="resize_iframe()" style=" border: 0px solid #000000" src="iframe.html"> 
<p>Your browser does not support iframes.</p>
</iframe>
</td>
</tr>
</table>
...
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
lizciz is offline
Reply With Quote
View Public Profile Visit lizciz's homepage!
 
Old 05-12-2011, 01:32 AM Re: Anchor issue...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by lizciz View Post
I've been looking at your site for a while now and I'm very confused. For me, it seems the window does in fact roll up to the top but the page doesn't open. In fact, it seems the entire iframe disappears or something. And, looking at your source code made me evan more confused.

I don't know if my browser is showing the code properly, but this is what I see.
Code:
...
<iframe width="100%" id="glu" name="iframe" onload="resize_iframe()" style=" border: 0px solid #000000" src="iframe.html"> 
<p>Your browser does not support iframes.</p>
 
</td>
</tr>
</table>
</iframe> 
<html> 
<head><title>Reunite My Site - Footer Template</title></head> 
 
<body>
...
So, almost all of your code is before the <body> tag, whereas it should be inside the <body> tag. And you have several closing tags for the table inside the <iframe> tag, whereas it should be after the <iframe> tag. It seems to me that this snippet of code should instead be looking like this:

Code:
...
<body>
...
<iframe width="100%" id="glu" name="iframe" onload="resize_iframe()" style=" border: 0px solid #000000" src="iframe.html"> 
<p>Your browser does not support iframes.</p>
</iframe>
</td>
</tr>
</table>
...
Yeah, I noticed, but that wasn't as bad as it seemed, (it's fixed) that was because I added the html, head, body tags to my included (footer) page by accident, and removed the body tags from my main page, so that was the issue for the messy code. But I still can't figure out why when you click on the 120 x 240 pixel banners, you need to scroll up the page manually to see the page in the iframe. I have the correct anchor tag in the 120x240 page and also used the correct link code for it.
__________________
Made2Own

Please login or register to view this content. Registration is FREE

Last edited by Brian07002; 05-12-2011 at 01:33 AM..
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 05-12-2011, 02:01 AM Re: Anchor issue...
Novice Talker

Posts: 7
Name: ankit
Trades: 0
When the page loads in it starts at the top of the page but then refreshes and takes the user down the page where the our Auction Notice field is located... which is more than half way down the page. It's almost like it is behaving like an anchor.
niftydirectt is offline
Reply With Quote
View Public Profile
 
Old 05-12-2011, 05:34 PM Re: Anchor issue...
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by niftydirectt View Post
When the page loads in it starts at the top of the page but then refreshes and takes the user down the page where the our Auction Notice field is located... which is more than half way down the page. It's almost like it is behaving like an anchor.
the our Auction Notice? That is not an auction site, it's an advertising site. Maybe your eyes saw something different when you type the message...I think you meant asoulutions link.

Ok, so on to the original topic of discussion, have you found something to fix the anchor issue?

I do appreciate, even though I sounded like otherwise.

Thanks!
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 05-13-2011, 07:55 PM Re: Anchor issue...
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Why use the <a name...> at all, you don't need it. Add "id="top" to a heading or div, or even the <body> tag and you will get the same outcome w/o the extraneous coding
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Anchor issue...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32228 seconds with 12 queries