mag1c1an
asked on
Scroll up iframe
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Where and how do i put that?
like this: <script> self.scrollTo(0,0) </script>
??
Thanks,
Mag
like this: <script> self.scrollTo(0,0) </script>
??
Thanks,
Mag
<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
in the iframe body tag
or
<script>
self.scrollTo(0,0)
</script>
and place it in the iframe source
ASKER
nope, not working....any other ideas?
Thanks,
Mag
Thanks,
Mag
ASKER
ok..the first one worked :-)
Thanks!
Thanks!
self.scrollTo(0,0)