Embedded javascript in the VPE visual document?
by Marshall Culpepper
Hey guys..
I was curious if it's possible to execute javascript by adding <script>
nodes into the head node the same way that <link> nodes are added for CSS
styles. I've created a method that does it for me locally, but the script in
question doesn't seem to be executing... is there something special needed
to make javascript work in this document? Here's my snippet:
public static void addScriptNodeToHead (VpePageContext pageContext,
nsIDOMDocument visualDocument, String scriptSrc) {
nsIDOMNode headNode = pageContext.getVisualBuilder().getHeadNode();
nsIDOMElement scriptNode = visualDocument.createElement("script");
scriptNode.setAttribute("src", scriptSrc);
scriptNode.setAttribute("type", "text/javascript");
headNode.appendChild(scriptNode);
}
16 years, 5 months
QA Daily report 15 August 2008.
by Anton Klimkovich
This is Daily QA report for 15 August 2008.
1. Issues verification.
2. Free testing.
3. Testcases creation for pages.xml editor.
--
Best regards,
Anton Klimkovich mailto:aklimkovich@exadel.com
16 years, 5 months