Hi,
When I use the tag startExpandCollapse on a page, my page "jumps" down to the point where I used it, much like a regular inline anchor tag would. In other examples I've seen, the page doesn't "jump" but stays steady, while the expanded content appears and pushes down the rest.
Am I missing something? I don't want the page to "jump". I've searched the forums but don't see this particular question addressed.
Hope you understand my problem!
Thanks!
--monghidi
startExpandCollapse jumps the page...
Re: startExpandCollapse jumps the page...
Can you post a link or an example how you call the tag?monghidi wrote: When I use the tag startExpandCollapse on a page, my page "jumps" down to the point where I used it,
Re: startExpandCollapse jumps the page...
Thanks -- here's a link to a page (in progress
)
http://www.psatg.com/cmsp/index.php?page=technology
And here's the calling code in the source:

http://www.psatg.com/cmsp/index.php?page=technology
And here's the calling code in the source:
Code: Select all
<h3>GIS/GPS</h3>
{startExpandCollapse id="01" title="More"}
<ul>
<li>Data Mapping</li>
<li>View Shed Analysis</li>
</ul>
{stopExpandCollapse}
Re: startExpandCollapse jumps the page...
when you clik the "more" it makes the page look like it is jumping because you are adding more "content" so the page is readjusting to the extra "content" and it "grows", the only way i can see to stop this is to make a container around that part of the page bigger than the page would be if you expanded everything and have both of the containers have the same background color ie., #fff, that way the outside container is big enuf for the inside container to expand as much as it will at max and not change the over all page size, it would just expand inside another larger box...
this is the same thing on the dynamic drive page, it won't look like it is jumping because the page is big enuf, has enuf stuff in it, that you don't see the bottom of the page "grow" downward, but if you look at the left side scroll bar you will see it get smaller ie., the page is growing... if that page had less stuff, just enuf to not quite fill the browser window, you would see it "jump"...
but you are right it does look like it is using the expanding text for a page anchor till you get the bottom of the page to show then everything grows from there up... i wonder what the diff. from their script to ours?...
this is the same thing on the dynamic drive page, it won't look like it is jumping because the page is big enuf, has enuf stuff in it, that you don't see the bottom of the page "grow" downward, but if you look at the left side scroll bar you will see it get smaller ie., the page is growing... if that page had less stuff, just enuf to not quite fill the browser window, you would see it "jump"...
but you are right it does look like it is using the expanding text for a page anchor till you get the bottom of the page to show then everything grows from there up... i wonder what the diff. from their script to ours?...
Re: startExpandCollapse jumps the page...
Thanks, Mark --
If you look at this page: http://www.psatg.com/cmsp/index.php?page=services -- you will see a different script working, which doesn't seem to have the jumping problem. I wonder if we could rework the startExpandCollapse tag to perform more like this one?
If you look at this page: http://www.psatg.com/cmsp/index.php?page=services -- you will see a different script working, which doesn't seem to have the jumping problem. I wonder if we could rework the startExpandCollapse tag to perform more like this one?