When sending a newsletter with "Newsletter v3" this code " onload='SetFrameHeight();'" is added to the body tag of the email when it is mailed to the recipients.
Most email clients ignore this code, but other clients pup up with a script error. This is seen in Outlook Express and Windows Mail.
Would it be possible to remove this script in the emails? I consider this as a bug in Newsletter v3... should not be so hard to fix?
Michael
Developer forum
E-mail notifications
Newsletter v3 script error
Posted on 29/07/2010 13:26:24
Replies
Nicolai Høeg Pedersen
Posted on 29/07/2010 13:56:12
The newsletter you are sending out is page based I guess.
That page uses a Dynamicweb stylesheet. Find that stylesheet in management center, and uncheck the "Fixed (Internet Explorer)" option on the page node - see manual:
http://manual.net.dynamicweb.dk/Dynamicweb-On-line-Manual/Management-Center/Stylesheets/Page/Page.aspx
That checkbox includes "SetContentHeight()" on the body's onload event. That must be it. Otherwise it is something you have set your self.
Take a look at the stylesheet in question on the "Template" tab of the Page node. Does it have a Body onload set?
http://manual.net.dynamicweb.dk/Dynamicweb-On-line-Manual/Management-Center/Stylesheets/Page/Template.aspx
That page uses a Dynamicweb stylesheet. Find that stylesheet in management center, and uncheck the "Fixed (Internet Explorer)" option on the page node - see manual:
http://manual.net.dynamicweb.dk/Dynamicweb-On-line-Manual/Management-Center/Stylesheets/Page/Page.aspx
That checkbox includes "SetContentHeight()" on the body's onload event. That must be it. Otherwise it is something you have set your self.
Take a look at the stylesheet in question on the "Template" tab of the Page node. Does it have a Body onload set?
http://manual.net.dynamicweb.dk/Dynamicweb-On-line-Manual/Management-Center/Stylesheets/Page/Template.aspx
Posted on 29/07/2010 21:52:10
No, it's a newsletter created in News v2 and with inline stylesheet.
The "Fixed (Internet Explorer)" option is unchecked.
There is no "Body onload" defined on the "Template" tab.
I just tried mailing a test on a clean installation of Dynamicweb, and I still get the onload script call in the email.
I'm pretty sure that the onload='SetFrameHeight();' is added by Dynamicweb for the test function "Preview in browser", but Dynamicweb forget to remove this on the final newsletter. Does this make sense?
The "Fixed (Internet Explorer)" option is unchecked.
There is no "Body onload" defined on the "Template" tab.
I just tried mailing a test on a clean installation of Dynamicweb, and I still get the onload script call in the email.
I'm pretty sure that the onload='SetFrameHeight();' is added by Dynamicweb for the test function "Preview in browser", but Dynamicweb forget to remove this on the final newsletter. Does this make sense?
Nicolai Høeg Pedersen
Posted on 30/07/2010 09:27:17
I've sent it for investigation in QA. We will make a bugfix for it.
Nicolai Høeg Pedersen
Posted on 30/07/2010 09:54:29
Registered as bug in TFS with ID 5271. You can find it here http://engage.dynamicweb-cms.com/Releases-177.aspx when released. Will be out with Service Release 1 (19.1.1.0) some time in the end of August.
Posted on 30/07/2010 10:47:19
Great, thank you!