views:

39

answers:

2

i am new user to php and i have a html page which is devided into two frmaes left frame and right frame and i am showing a tree list page in left frame and what i want to do is that when i click on a node of tree related link page should be open in right frame. how can i do this. plz help e out.

+2  A: 

In your frameset, you define two <frames> — add a name="X" element to both, then in your links in your tree add target="right_frame" (or whatever you named your frame).

Might I strongly suggest that you consider a design that does not use frames?

Brock Batsell
+1, frames are evil, especially if you've got PHP at your disposal.
RegDwight
+1  A: 

You need to name both frames using the name attribute, and then in the hyperlinks in the left you should specify the name of the right frame in the target attribute of the right frame.

You will find the following reference useful: http://www.w3.org/TR/WD-html40-970917/present/frames.html#h-17.2

Junto