How to display file contents in a new window

Discuss everything related to ApPHP TreeMenu. Any questions related to the ApPHP TreeMenu developing or using should be posted to this forum.

Moderators: alexandrleonenko, Milton

sferraro
Senior
Senior
Posts: 29
Joined: Sep 30th, '09, 04:14

How to display file contents in a new window

Postby sferraro » Jul 3rd, '13, 17:26

When building a tree menu from contents of a folder, how do I display ShowContent() results in a new window when the user clicks on a file? I've tried "OpenNewWindow(true);" in various locations in my code, but I can't seem to get it to work.

administrator
Site Admin
Site Admin
Posts: 5997
Joined: Jan 7th, '09, 23:18
Contact:

Re: How to display file contents in a new window

Postby administrator » Jul 4th, '13, 07:16

ShowContent() is related to your current treemenu object, so if you want to show it's content in another window, you have to repead there your code and pass (simulate) clicked node ID

Earlene99
Newbie
Newbie
Posts: 1
Joined: Dec 23rd, '13, 04:06

Re: How to display file contents in a new window

Postby Earlene99 » Dec 23rd, '13, 04:38

I agree all this post.Thanx for sharing such an informative post.

Ehsan270
Newbie
Newbie
Posts: 1
Joined: Dec 27th, '13, 06:48

Re: How to display file contents in a new window

Postby Ehsan270 » Dec 27th, '13, 06:57

I am very happy for reading this great information.


Return to “ApPHP TreeMenu”