?
Solved

Scroll up iframe

Posted on 2005-04-27
6
Medium Priority
?
881 Views
Last Modified: 2008-01-09
Hi,
This is a bit hard to explain so please first check out the graphic here:
http://www.jappz.com/diagram.jpg

Ok? cool.

Now the explanation, as you can see from that graphic, I two frames (top,bottom) and an iframe in the bottom frame, in the IFrame I am displaying forms etc...as you can see the iframe does not take the whole page but is only on half of the bottom frame...to see the other half you have to scrool the bottom frame.
The problem is when i have forms in the iframe and the user scrolls the bottom frame and enters info into the form, when i write something like "form accepted" after processing it show right on top of the iframe and the user does not see it tell he scrolls the bottom frame to the top....

is there any way after submitting the form in the iframe that I can scroll the bottom frame to the top?

Thanks,
Mag
0
Comment
Question by:mag1c1an
  • 3
  • 3
6 Comments
 
LVL 25

Accepted Solution

by:
archrajan earned 1000 total points
ID: 13879702
This might help
 parent.scrollTo(0,0)
which will scroll to the top of the page when the page loads...
0
 
LVL 25

Expert Comment

by:archrajan
ID: 13879711
oops, sorry if ur calling this from the iframe itself then try to use

self.scrollTo(0,0)
0
 
LVL 2

Author Comment

by:mag1c1an
ID: 13879803
Where and how do i put that?
like this: <script> self.scrollTo(0,0) </script>
??

Thanks,
Mag
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 25

Expert Comment

by:archrajan
ID: 13879816
<body onload = "self.scrollTo(0,0)">
in the iframe body tag

or
<script>
self.scrollTo(0,0)
</script>

and place it in the iframe source
0
 
LVL 2

Author Comment

by:mag1c1an
ID: 13880232
nope, not working....any other ideas?

Thanks,
Mag
0
 
LVL 2

Author Comment

by:mag1c1an
ID: 13880607
ok..the first one worked :-)

Thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question