Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

2.0.2 - Address Book Javascript BUG

Quote Reply
2.0.2 - Address Book Javascript BUG
Hi,

When using IE on a Mac, if you press "Close" on the pop up address book - instead of the book closing it just reloads the site back into the address book pop up page.

(using the simple templates)

There's some javascript going wrong somewhere?

Cheers,
R.

Quote Reply
Re: 2.0.2 - Address Book Javascript BUG In reply to
Hey Regan,

Edit the template and try changing <input type=button value="Close" onclick="window.close()"> to <input type=button value="Close" onclick="javascript:window.close();"> or <input type=button value="Close" onclick="javascript:window.close(); return true;">

The button should work like it is though. That might be an IE bug on the Mac.

Regards,
Charlie


Quote Reply
Re: 2.0.2 - Address Book Javascript BUG In reply to
Hello!

In Netscape 4.7, one cannot even see the Close button!!!

Quote Reply
Re: 2.0.2 - Address Book Javascript BUG In reply to
To fix that.. on this line (~169) change:
<input type=button value="Close" onclick="window.close()">
to add:
<form name="dummy_form" action="for_netscape">
<input type=button value="Close" onclick="window.close()">
</form>
netscape 4.7 doesn't like the fact that it isn't enclosed in form tags so it ignores it or something.

This might even fix the problem with ie5 on a mac... not sure. Tell me how it goes.
Adrian
Quote Reply
Re: 2.0.2 - Address Book Javascript BUG In reply to
If I remember right, the reason the button didn't show up was only because of the "placement" of the original form tags. Change the placement and it will work fine.

Netscape on a mac requires the form tags to be in exactly the same place when in a table, for example if the opening tag starts before a table row (<form><tr><td>) then it must end exactly opposite at the end of a table row to work (</td></tr></form>). Anything else, like after the <td> and before the <tr> just won't work in Netsacpe - but in IE it does without any problems.

One look at it with Dreamweaver on the mac shows the broken or uneven tags up like a sore thumb.

Cheers,
R.