I basically have a webpage with two frames.
-Left for nav
-Right for main content. I have a text-box here called "file_path"
Currently, I have a list of files on the left hand side that I am displaying as anchors. I want the functionality that if the user clicks a file on the left hand frame, I can grab the value and put it in the text-box on the right hand frame. I able to do this successfully, but the problem is that after getting the value in the right frame, my left-frame opens the file in that section … I want to prevent the file from being open. I only want it to pass the value there.
echo "<li><a href=\".$filepath.\" onClick=\"parent.right.document.getElementById('file_path').value='$filepath'\">$filepath</a></li>";
I tried merely putting the onClick for the list item, but this way I loose functionality, so that the user feels that the link is clickable. It just appears as static text … I’d rather have the cursor change when the user goes on it like an anchor tag, but just not open the file … Is this possible?
echo "<li onClick=\"parent.right.document.getElementById('file_path').value='$filepath'\">$filepath</li>";
just put
<a style="cursor:pointer" onclick="...">bla bla bla</a>