I am trying to create a collapsible treeview based on a filesystem:
I have this link:
<img src="bullet.gif"><a href="<%=fl11.path%>" style="color:darkgreen;"><%=fl11.name%></a>
When the link is clicked, the document (can be .xls, .pdf, .doc, .vbs or .txt) sometimes open on the browser and sometimes open up another window.
I guess it all depends on the users file type setting in the folder option.
What I want to do is to open a new window, regardless.
How can I code an onclick function into this and pass the complete path of the file to the function, something like this:
<img src="bullet.gif"><a onclick="mywind(<%=fl11.path%>)" style="color:darkgreen;"><%=fl11.name%></a>
How can I code mywind function?
Also, I do not want users to make changes on the document.
Any help will be greatly appreciated.
I have this link:
<img src="bullet.gif"><a href="<%=fl11.path%>" style="color:darkgreen;"><%=fl11.name%></a>
When the link is clicked, the document (can be .xls, .pdf, .doc, .vbs or .txt) sometimes open on the browser and sometimes open up another window.
I guess it all depends on the users file type setting in the folder option.
What I want to do is to open a new window, regardless.
How can I code an onclick function into this and pass the complete path of the file to the function, something like this:
<img src="bullet.gif"><a onclick="mywind(<%=fl11.path%>)" style="color:darkgreen;"><%=fl11.name%></a>
How can I code mywind function?
Also, I do not want users to make changes on the document.
Any help will be greatly appreciated.