3.2.0

aw inside an email

First I want to say this a great product and if I wasn't a broke ass student trying to be an entrepeneur, I would put my money where my mouth is.
That bein said, I'm a newbie at this and I want to be able to use aw grids inside emails.
I use a php script to create an html email so I try to pass the grid as inside a php variable that serves as my email text.
I can do the email w/o the grid.
I can also do the grid in an regular html page.
I can't seem to integrate both, so far the closest I got is :
$maintext = "<html><body><b>".$_POST["var2"]."</b>\n";
$maintext .= "?><script>var obj1 = new Active.Controls.Grid;
obj1.setId('grid1');
obj1.setRowProperty('count', 15);
obj1.setColumnProperty('count', 5);
obj1.setDataProperty('text', function(i, j){return data1[i][j]});
obj1.setColumnProperty('text', function(i){return columns1[i]});
document.write(obj1);</script><?php";
$maintext .= "</body></html>";
$maintext = str_replace("?>", "", $maintext);

I tried a couple of other tricks you guys mentioned, but I guess I'm not there yet, it just won't work, and I don't know why.
Please help a brotha out.
NEVER UPSET ALWAYS WILLING TO LEARN GUY
July 20,
You have to include links to grid.js and grid.css files, but I doubt that it will ever work - most email clients will not execute scripts inside html emails.
Alex (ActiveWidgets)
July 21,
Ok, I thought that might be the problem. I really want to do this thought, and I think someone is trying build a php class to create aw grids, do you think that would work ?
NEVER UPSET ALWAYS WILLING TO LEARN GUY
July 21,

This topic is archived.

See also:


Back to support forum