Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reloading a page at the same point as you cause the reload



Two different approaches that could work for you:

1) Populate the page with the entire result set, placing each thread in a <div> with display set to 'none'. Then use the arrows and a javascript onclick event handler to toggle display to 'block' .

2) Code your PHP to place each thread in an iframe and have the arrow target the iframe.

if you choose #2, don't forget to nest ilayer tags so that Netscape4.x won't choke.

Norm
/* Sure, go ahead and code in your fancy IDE. Just remember: it's all fun and games until someone puts an $i out. */



On Tuesday, October 14, 2003, at 05:10 PM, Walter Lee Davis wrote:

Try using a named anchor on the arrow image, and include it in the URL you pass to the page to make it refresh. That should make it jump back down to the image. It won't be perfect, there will be some amount of fidget, but it should get you close.

Walter

On Tuesday, October 14, 2003, at 08:00  PM, David Holt wrote:

Hi everyone,

I have a php page that I am using to list threaded messages. I have
expansion arrows to expand and collapse the threads. My problem is that
hitting the arrow reloads the page and it always goes to the top after
it reloads. Is there a way to get it to expand at the point where the
cursor is and take you right back to that spot when the page reloads?
Thanks for any help,


David

--
Just because everything is different doesn't mean anything has changed.


-- Irene Poter

from Sunbeams: http://www.thesunmagazine.org
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Reloading a page at the same point as you cause the reload (From: Walter Lee Davis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.