11.07.2015 Views

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

webMathematica™ Wolfram - Wolfram Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

86 webMathematica User Guide{"cx"->"0","cy"->"0","r"->".1","fill"->"red", "stroke"->"blue","stroke-width"->"0.01"},{XMLElement["animateMotion",{"dur"->"6s","repeatCount"->"indefinite","rotate"->"auto", "path" -> pts},{}]}];newXML=xml/.x:XMLElement["polyline",___] -> Sequence[x,newElem] ;ExportString[newXML,"XML"]]There are a number of other ways of obtaining interactive results with SVG. For example,JavaScript can interact with and manipulate the SVG tree, thereby supporting interactive featuressuch as popups when the mouse is moved over a graphic.HTML FormattingOne of the advantages of the HTML templating technique that webMathematica provides is thatthere is often little need to try and generate HTML formats with Mathematica programs. In fact,many of the HTML formatting issues can be left to web designers who can use their standardtools. However, sometimes it is useful to apply some HTML formatting functions to Mathematicaexpressions. This is particularly the case for HTML tables. In order to allow this, an HTML utilitypackage is provided with webMathematica that supports table formatting functions. This sectionwill explore the use of this HTML formatting. A more general discussion of output is available inthe section on Evaluation Formatting.Remember that if you want to return HTML that is not generated by the HTML package, youshould construct your own string of HTML and return this as shown in the example below.StringJoin[ "", ToString[ x], ""]The HTML FunctionsThe HTML functions are contained in a package, MSP`HTML`, which is part of the webMathematicalayout. Since the package is loaded when webMathematica starts there is no need to load

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!