Jump to content

Archived

This topic is now archived and is closed to further replies.

Moron

Can ShowDiv() and HideDiv() work with links?

Recommended Posts

Can ShowDiv() open a separate HTML (PHP, in this case) page within the original page? Conversely, can HideDiv() hide it again? If so, I can't seem to find the code for doing this.

Share this post


Link to post
Share on other sites
The answer to the first question exactly as asked is 'No, except without a great deal of trouble'.

http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm might be what you're looking for.

Share this post


Link to post
Share on other sites
[quote author=AndyB link=topic=105392.msg421062#msg421062 date=1156370483]
The answer to the first question exactly as asked is 'No, except without a great deal of trouble'.

http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm might be what you're looking for.
[/quote]

Thanks, Andy. You came through yet again!

I'm working on an employee leave program in PHP (as many of you know). The page automatically displays leave for the current fiscal year. I want them to be able to click Show History/Hide History and have it dynamically appear on the page.

I think this script will do the trick.
:)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.