...

nifty use for eval()

joh6nn
09-08-2002, 07:53 AM
i came up with the following, to help me test the syntax of functions while i'm writing them. i've only been using it for a day or two, but so far, it's been really handy.

<HTML>
<HEAD>
<TITLE>Evaluator</TITLE>

<META HTTP-EQUIV="Content-Script-Type" CONTENT="text/javascript">

</HEAD>
<BODY>

<FORM>
<TABLE WIDTH="100%" HEIGHT="100%">
<TR>
<TD COLSPAN="2" HEIGHT="100%"><TEXTAREA NAME="script" STYLE="width: 100%; height: 100%"></TEXTAREA></TD>
</TR>
<TR>
<TD ALIGN="CENTER"><INPUT TYPE="BUTTON" VALUE="eval" OnClick="eval(this.form.script.value);"></TD>
<TD ALIGN="CENTER"><INPUT TYPE="RESET" VALUE="clear"></TD>
</TR>
</TABLE>
</FORM>

</BODY>
</HTML>

jalarie
09-12-2002, 03:41 PM
Short, to the point, and it works.&nbsp; Who could want more than that? :thumbsup:

But I was really bored, so I wrote the "Bookmarklet Editor" page in the "Samples of my work" area of my site at:

&nbsp;http://spruce.flint.umich.edu/~jalarie/

:D

java_jedi
09-16-2002, 09:51 PM
Pretty neat....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum