miercuri, aprilie 18, 2007

Some better Javascript for Editforms

From this discussion group:

<script language="javascript">
<!--
document.forms('OWSForm').elem­ents('urn:schemas-microsoft-co­m:office:office#
YOURFIELDNAMEHERE').disabled=t­rue;
document.forms('OWSForm').elem­ents('urn:schemas-microsoft-co­m:office:office#
YOUROTHERFIELDNAMEHERE').disab­led=true;
//-->
</script>

One caveat: If the FIRST field on the form is disabled, you'll get an error about not being able to set the focus to it.

Niciun comentariu:

Despre mine

Timi-Ostravia, Republic of Czedvia, Bulgaria
I make web applications. The tools I use are many and far between. I have been maining to learn Ruby and Python, and Perl. These tools are all like Lego to me. They can all be make to build things and have their strengths and weakest.