WeBWorKdocs

sq_webwork:


Home
Current UR
courses
Visitor
page
Intro to
WeBWorK
WeBWorK 2
Twiki
WW
Community
Grant Support
& awards
Discussion
group
Problem
library
Write/modify
problems
Create &
manage course
Tutorial on
running a course
HowTos
FAQ
WeBWorK2
FAQ
Software
Download
How to
Install WW server
Feedback
Site Map
Change
preferences
Change
password





Prev | Next | manpages

HEADER_TEXT

Description
The HEADER_TEXT() function concatenates its arguments and places them in the output header text string. It is used for material which is destined to be placed in the header of the html problem -- such as javaScript code.
It can be used more than once in a PG source file.

Syntax

HEADER_TEXT("$string1", "$string2",...);

Params

A list of strings

Action

Similarly to TEXT it concatenates its input and stores it in $STRINGforHEADER_TEXT.

Returns

Nothing

Examples

JavaScript example
HEADER_TEXT(<<EOF);
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available online from -->
<!-- The JavaScript Source!! http://javascriptsource.com -->
<!-- Begin function func(x)
{ return( $a*Math.pow(x,2) + $b*x +$c );}
// We redefine the function for the javaScript
// A savy student will be able to tell to read this
// by looking at the HTML source of their window.
// Later we'll see other methods that make this
// difficult or impossible.
// End -->
</SCRIPT>

EOF

Macro Definition File

PG.pl

<| Post or View Comments |>


Prev | Next | manpages

Last update: Wednesday, January 10, 2007 at 10:16:19 PM.
This site maintained using Manila and Frontier software.