Page 2 of 2

Posted: Fri Mar 25, 2005 1:42 am
by feyd
that's Javascript dynamically changing content, like I said before. :?

Posted: Fri Mar 25, 2005 1:46 am
by feyd
MaxBlast-PHP wrote:well then why do i see a few websites that use php have them??? like a Alphabet stuff you click a letter and everything under that letter comes up?? on that page without going to a different page
^ miss-post

It has little to do with php itself, you're talking about Javascript stuff.

nothin

Posted: Fri Mar 25, 2005 1:58 am
by method_man
ill see if i can find out how

matt

answer

Posted: Fri Mar 25, 2005 2:01 am
by method_man
i believe your answer can be found here. i just skimmd it but it looks like it has it.

http://javascriptkit.com/javatutors/index.shtml

matt

Posted: Fri Mar 25, 2005 2:10 am
by Chris Corbyn
I know what you mean. Just hiding and displaying DIV's (or playing with the innerHTML object). Even if that's not what YOU think YOU mean.

You'll need to read up on CSS and JavaScript. Bear in mind, depending upon how much you want to be able to load from just one page, the download times could get slow.

Look in CSS at the 'visibility' attribute, the positioning attrbutes and the z-index attribute.

Then read up on the CSS objects in javascript. Should get you started.

http://www.w3schools.com/css/

Posted: Fri Mar 25, 2005 3:18 am
by Roja
MaxBlast-PHP wrote:i didnt say use iframes with php i said its LIKE having a iframe or a frame like you click a link and it changes like a picture or text in the iframe.. but i want it to change like a text on a page WITHOUT the iframe/frame part...
What you are describing is inline dhtml - or "dom modification".

A decent demo and writeup on how to do so is here: http://www.javascriptkit.com/javatutors ... ent4.shtml

Posted: Fri Mar 25, 2005 4:07 am
by phpScott
The other bit I would suggest getting a little handle on is javacript objects so that you can quickly display any information and pictures quickly.
The javascript objects will get loaded at page display time but can slow down you page load depending on how much information is being loaded.

Then you will have to follow what some of the others have suggested by using javascript to determing what was clicked, grab the right information from the javascript object list and then changing the innerHtml or div tag.

If you are using php to create the javascript objects then(knowing form experience) you will likely pull out some of your hair becuase you will be having to worry about the javascript syntax inside of the php syntax. single or double quotes and semicolons are my biggest headaches when coding this way.
phpScott