Hi Clifton,
Thanks for your help. Overnight I had thought about a similar solution which I have now achieved. Instead of making another Toolbook DHTML I just use pgGoToURL to display this html in a suitable field.
- Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
<meta name="generator" content="PSPad editor, www.pspad.com">
<title></title>
<style type="text/css">
textarea {
width: 380px;
height: 27px;
font-size: 1.2em;
font-family: sans-serif, Arial, Helvetica;
border: 1px solid black;
resize: none;
}
</style>
</head>
<body>
<textarea rows="1" cols="80" id="nameBox"></textarea>
<script>
function sendName(){
var obj = document.getElementById("nameBox");
var result = obj.value;
top.tbfunction_pgTBObjSet("newName","text", result);
}
function setName(newName){
var obj = document.getElementById("nameBox");
obj.value = newName;
obj.select();
}
function test(){
var obj = document.getElementById("nameBox");
alert(obj.value);
}
</script>
</body>
</html>
It works well so I'm sure a TB DHTML would also do the job.
One other thing: perhaps you could add a note in the context help to warn that the Toolbook field used with psGoToURL MUST be activated ie non-editable. I've just spent a couple of hours trying to figure out what was wrong. Everything went to plan but remained invisible!