The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to scroll to the bottom of page within another page using html
princevisram
post Jan 29 2009, 04:36 PM
Post #1





Group: Members
Posts: 1
Joined: 29-January 09
Member No.: 7,673



I am stuck with this stupid code that i have been trying to fix for an hour! Please help. Heres my problem...:

I want to embed a webpage within another and scroll it to the bottom of the page automaticly because i want the information at the bottom which is updated frequently. I also dont want a scroll bar, so all that is seen is the table. the website is www.totalfta.com. I want from below the ENTER|EXIT sign to the bottom of the table. I have attached what i have so far.

***I have the embed into another page, and the no scroll bar... i just want to make it auto scroll to the table..****

Thank you..!


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-...
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tester</title>

</head>
<iframe height="410" width="100%" frameBorder="0" src="http://www.totalfta.com" mce_src="http://www.totalfta.com" scrolling="no"
body onLoad="for (i=0;i<window.screen.availHeight;i++) {window.scroll(0,i); }"</iframe>
<body>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Jan 30 2009, 03:13 AM
Post #2


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Since the table where you want the page to scroll to in the other URL has an ID, you could use that in the src url of your iframe: src="http://www.totalfta.com/#receiverStatusWrapOutter".

For a javascript solution, google for "scroll to bottom of iframe".
The link to codingforums.com (forums of Javascriptkit.com) seems to have a solution at http://www.codingforums.com/archive/index.php/t-21379.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jan 30 2009, 06:30 AM
Post #3


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



JavaScript doesn't work if the framed page is on another domain as I get the feeling it is.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 07:10 AM