ࡱ > " $ ! Y bjbjWW ! = = ] H H H H H T H s J | | | | | | | | 8 : : : : : : $ ^ | | | | | ^ | | | | x | | 8 0 | 8 b 8 8 | p NcGH H 8 Creating a New html Page on the Fly Responding to the Users Input
The html page containing the Image_and_Cursor applet above was created on the fly by the Javascript function in the html code on the next page. If you compare this Javascript code with the one sheet instructions for adding a curve in Image_and_Cursor, you will see that this Javascript code simply writes the same code using instructions like win.document.write and win.document.writeln. Notice, however, that it inserts the users input from the form at the appropriate points. The key lines are the lines:
var x_low = document.response.x_low.value
which read the users input from the form and lines like
win.document.write("")
which insert the users input into the appropriate part of the new html page.
Warning: The html code on the back of this sheet must be entered without pressing the Enter Key (or Return Key) in the middle of a win.document.write or win.document.writeln statement.
Lite Applets, Forms, and Javascript
C D E e u I M 2 5 = H CJ OJ QJ 5CJ OJ QJ CJ OJ QJ 5CJ OJ QJ CJ OJ QJ 5CJ
j CJ UCJ C D F G H I 3 5 H O n 3 f g *
$ $ C D F G H I 3 5 H O n 3 f g *
; ( l <
@ _ } ~ 1 \ u w ?*
; ( l <
@ _ } ~ 1 \ u w 0= /!"#$% D d L !y
c A O S X : L i b r a r y : W e b S e r v e r : D o c u m e n t s : L i t e _ A p p l e t s _ J O M A : s q u i r t _ a n d _ c u r v e . b m p b Dv8{>j D rn Hrs5{v.Dv8{>jPNG
IHDR L K6+ gAMA ܲ pHYs ` `zxE IDATx]eGN716BV2dvnZ YBK/ ÑSK p@Ė%$bg %LO{ylp}6ƽ[?N}9g,"011111qqϮ)r7S&&&&&n,ML|Q?
ML|!MracԶs_"LԹ/ML|ӳs_
LdS&&|L_DæML<"71qzMx1EnbnMxb1EnbbbMx21EnbbߣUS&&@&&&&&n*f$71111qc1Enbbbbbč)r7S&&&&&n,MLLLLXLx걖N@Pa`0IZ~s,_tpNrUpB;5$$0+ {H{$` _@v
he 7 W&7|Hm(Y,ҥÀ@1rJdځ(V)
5d"FRR@P#Pu$ A+rB2a+:if+<mXY2[zINOOOOO;o|?_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