Forum Moderators: open
I have a page on my site that has an iframe that includes a page from another domain.
The page that I want to bring to my website has all the information at the bottom. It is a long page and frankly I do not want my users to see the top of the page. I don't want them to have to scroll to get to the "goods" either.
It is only a Sea Water Chart but the chart I want to show my users is at the very bottom of the long page.
Question: How do you make an iframe scroll automatically to the bottom of the page. Not my own page but the page within the iframe needs to open so it is at the bottom.
I know I could make the iframe taller but I don't want to do that. Besides being excessively long I prefer to not even show the top of the page to users.
Any help on this is greatly appreciated because I have searched Google etc and in every webmaster type forum there seems to be a guy like me asking this very question but not one person could give them an answer to solve this dating all the way back to 2001 on some forums.
Thank You in advance, Have a great weekend!
I have a page on my site that has an iframe that includes a page from another domain.
If there is a "Fragment Identifier" or "Named Anchor" or "Bookmark" on that section of that page from the other domain, then you would just include the #Fragment at the end of your src URI. Since the page resides on another domain that you have no control over, you are at the mercy of targeting whatever that page may have available for you to target using a #Fragment.
<iframe src="http://www.example.com/charts/#SeaWater"></iframe> Hopefully the person who designed that page you are framing used Fragment Identifiers which will make your referencing that much easier.
Fragment Identifiers
[webmasterworld.com...]
Just started a new topic in relation to this...
Be Specific, Use Fragment Identifiers
[webmasterworld.com...]
Yes I did look for that. I even tried to use #bottom on the end of the url.
I know when you use the link <A href="#top">Top of Page</A> say at the bottom of a page it will move to the top when clicked even without the named anchor _top being on the page.
I was hoping the same theory would work if I just added #bottom to the links end.
No luck and it was a long shot anyway because my knowledge is novice at best, maybe a tad above but this one stumped me cold.
I have seen some references to javascript I can add to the head of my file that will manipulate the iframe. I am going to try to look for that as a solution I guess now.
Thank You and if you come acrossed an answer I am all ears. Or eyes.
Thank You and if you come acrossed an answer I am all ears. Or eyes.
You would need to view the source of that page. Find the area where the specific chart is and then start looking for id="" on elements. The first element to look at or around is the one that contains the chart. It could be a <table> or a <div> and it may have an ID already assigned. So, you may see something like <table id="SeaWater">.
Now, if that isn't present, look for something else just above that <table> that has an id="" assigned to it. There may even be legacy code and it might read <a name=""></a> or something similar. If you can't find one, then there isn't much one can do, or at least my experience tells me so. :(
Whereas it used to be the same image file name all the time they have had some dynamic upgrades made to the charts that replaced the static format from before.
Which is why iframe is my only solution.
<iframe src="http://www.example.com/#chartpage"></iframe> That should do the trick. Of course you'll update the example.com/ to be the correct path of the destination URI and then append the #chartpage to the end.
Also I used to just hot link the image file which will not work anymore.
Most Webmasters despise hotlinking and will implement measures to prevent it from happening. You've run into one of those Webmasters. ;)
Thank You so much.
By the way I was hotlinking but did have permission but that permission came over 3 years ago. Guess I should have touched base. I think the issue was I was ranking top 3 for < a major keyowrd > while the provider of the service was not ranking.
He was getting some traffic from my site because I put a link on every page where I had a chart. But there are thousands that just want the free version and will not pay I guess.
Plus he had other websites doing the same. But my site receives an excessive amount of traffic for < the tpye of site it is > so I know he was getting some click thrus.
Anyway Thanks Again - Big Time!
You have a great weekend my friend!
[edited by: tedster at 8:10 pm (utc) on April 25, 2008]
[edit reason] no specific search terms - thanks [/edit]