[ome-devel] making javascript work in the HTML templates

Melissa Yung melimelau at yahoo.com.au
Sun Jul 30 07:02:30 BST 2006


This javascript code works fine but when we pasted it
in one of the .tmpl file for OME it doesn't.
Any ideas?

Thanks.

<script type = "text/javascript">

function addColumn(workset)
{
    hi = document.workset.column1_name.value;
    alert("Hi" + hi);
}

</script>

<form name="workset">
         <input id='yid' type="text"
name="column1_name">
         <input type="button" value="Add Column" 
onClick="addColumn(workset)">
</form>

Send instant messages to your online friends http://au.messenger.yahoo.com 


More information about the ome-devel mailing list