Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Compose JavaScript Error

Quote Reply
Compose JavaScript Error
I am getting a javascript error when I try to compose a message without attachment in Safari (1.2 v125) using GMail 2.2.1. The error is:

"You seem to have forgotten to attach your attachment. Are you sure you want to proceed?"

(I never even touched the attachment field...)

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Compose JavaScript Error In reply to
If you look at data/templates/common/compose.js, around line 22 there's:
Code:
var attach_okay = /^\s*$/.test(document.msgs.attach_filename.value);
If you do an alert(attach_okay), what do you get?

Adrian
Quote Reply
Re: [brewt] Compose JavaScript Error In reply to
I just get 'false'.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Compose JavaScript Error In reply to
What about if you alert("'" + document.msgs.attach_filename.value + "'");

Adrian
Quote Reply
Re: [brewt] Compose JavaScript Error In reply to
I get

''

(i.e. twice ' and an empty string inbetween).

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Compose JavaScript Error In reply to
hrmph, that regex isn't working like it should. I'll have to ask around on that one since I'm no javascript expert.

Adrian
Quote Reply
Re: [yogi] Compose JavaScript Error In reply to
I'm guessing just changing the line:
Code:
else if (!attach_okay) {
to
Code:
else if (document.msgs.attach_filename.value) {
should work as well.

Adrian

Last edited by:

brewt: Feb 24, 2004, 2:49 AM