Forum Moderators: coopster

Message Too Old, No Replies

Simple content swapping needed

         

RichardInAz

9:28 pm on Dec 26, 2010 (gmt 0)

10+ Year Member



Greetings all.

I am building a web site which will have a few thousand lines of basically song names. I am using a javascript routine that creates an accordion style drop menu. That is displayed on the left side of the page.

On the right side, will be information about each song.
What I want to do is to simply swap the content as the visitor clicks on a song name. Preferably, with that content coming from an external file. Not a hidden division.

I have looked at using file_get_contents() but the examples I have tried do not work as given.

The main menu is all based on <ul> <li> tags.

What other ways can I use to change the contents of the textual content of the displayed division?

coopster

8:11 pm on Dec 30, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, RichardInAz.

Have you considered AJAX? You could load the content asynchronously when the link is clicked (or on hover, etc.)