Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Really confusing Java question...

Quote Reply
Really confusing Java question...
I edited the links.html template to do the following:

Once I click on Build All, it generates the links with the following added:

<SCRIPT Language='JavaScript'>
-- JavaScript Follows
function pop<%ID%> () {
msg=open("","NewWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=400,height=260");
msg.document.write("<HEAD><TITLE>Name</TITLE></HEAD>");
msg.document.write("<CENTER><img src="<%Description%>">");
}
//JavaScript Ends --
</SCRIPT>

And....


<a href="javascript:pop<%ID%>();"><%Title%></a>

The Idea is to have a java pop up box (when I finish it) that allows an image to be pulled up and printed without leaving the page. The problem is when I "Build All" the nph-build.cgi adds the URL to the above Java using the <%description%>, but when the http:// is added to the Java, the "//" of the http:// causes an error in the script???? I know this sounds confusing as heck, but any suggestions??

Trust in your elders, for they hold the key to life...
Subject Author Views Date
Post Really confusing Java question... Dinky 1049 Jul 28, 2000, 5:28 PM