I am using some javascript code that jscheuer1 (sp?) posted a couple months ago. This is the part where I am getting an error:
I also added some database selection criteria. If I make a selection from the database, I get an error, but it works anyway and pops up the compose box. The error says:PHP Code:function compose(){
var addys='', cc='?cc=', boxes = document.getElementById('boxes').getElementsByTagName('input')
for (var i=0; i<boxes.length; i++)
if (boxes[i].checked&&boxes[i].name=='mail')
addys+=boxes[i].value+', ';
else if (boxes[i].checked&&boxes[i].name=='cc')
cc+=boxes[i].value+', ';
addys=addys.replace(/, $/, '');
cc=cc!='?cc='? cc.replace(/, $/, '') : '';
var mailwin=window.open('mailto:'+addys+cc);
mailwin.close();
}
Line: 92
Char: 1
Error: "null" is null or not an object
Code: 0
If I try to pull everything from the database and not filter it, then I get an error and it won't bring up the compose box. The error now says:
Line: 91
Char: 1
Error: Invalid syntax
Code: 0
I show that Line 91 is var mailwin=window.open('mailto:'+addys+cc);
Any idea what the problem is here? Thanks![]()



Reply With Quote

Bookmarks