with the link being <a href="javascript:popup(example.html)">
as you can see, Im a complete newbie to JavaScript
when i click on the link, nothing pops up and nothing happens. there is the little error on page status bar message, so i guess its something to do with my code....
the script name and pollid are variables in the poll. When i click on the popup, i get a window with the url http://thegaffer.neopages.net/url instead of http://thegaffer.neopages.net/[%scriptname%]?poll=[%pollid%]&viewcomments=1 with the variables obviuosly replaced with their values
The JavaScript isn't at fault. The server-side stuff is returning the URL /cgi-bin/poll/poll.cgi?poll=000003&viewcomments=1 whereas it should be (and I checked) cgi-bin/poll/poll.cgi?poll=000003&viewcomments=1. The problem is that the Perl, [%scriptname%], is giving you an unwanted forward slash at the start of your URL. May I suggest that you throw this part in manually since it won't change, ie:
Bookmarks