From: Matthew B. <mat...@ou...> - 2007-01-16 10:33:47
|
Naomi Miles wrote: > Question re. js. I have opened a new window (to display report) and > it has a 'close' link which worked like a sweetie in some browsers > (usual story). Anyhow at the mo I have some javascript which is > based around the good ol' window.close() method, this sort of works, > the only prob is that it still submits, i.e. it executes the bit of > html in the template that goes off to the method in Facility (which > then throws a null pointer). How do I stop this from happening? When you say "executes the bit of HTML" what do you mean? Do you mean your popup window contains a form and when the user clicks on the close link the form gets submitted? Do you have the HTML somewhere so we could have a look at it? -- Matthew Buckett |