I know this is written in php but the question has more to do with javascript.
the code
[code]
<script>
var filepath;
filepath = “../details/branddetails.php?id=$id”;
</script>
<A HREF=”java script:newwindow()”>$id</A>
<SCRIPT language=JavaScript>
function newwindow()
{
window.open(‘filepath’,”,’width=”10″,height=”10″,resizable=no, scroolbars=no, toolbar=no, status=no, menubar=no’);
}
</SCRIPT>
This code is located in the main directory. The details files are located in a child directory. The include file is being called from a file in a child directory. But everytime I click to open a new window I get a file can not be found error.
If i call the inclide file from a script in a child dir and the define files are in a different child dir, I would have to regress to the parent then go to the define directory. am I correct in thinking this. Even though the include file is in the main directory links and what now will be traveled from the file that called it. Does anybody have any idea of why this is happening.
does the javascript part look correct and does anybody know of any javascript/php issues when trying to open a new window.
any help, howtos, flames, etc are gladly welcomed