Thanks for this but I found a way to do it. Not the most elagant code but
this is how I did it.
I wrapped the routine in a function and called the function from onblurr.
I need the field as this is the text box the result is written into.
<script LANGUAGE="JavaScript">
function RevCheck(Field)
{
var vReviewer = "";
var vURL = "";
vReviewer = document.forms['frmDocDetails'].elements
['txtReviewer'+Field].value;
vURL="../pages/CheckReviewer.asp?Rev=" + vReviewer + "&Field=" + Field
DocWindow=window.open
(vURL,'CheckReviewer', 'width=0,height=0,resizable=yes,scrollbars=no,locati
on=no,status=yes')
DocWindow.focus()
}
</script>
Andy Green
> Hi
>
>
> I have a form on which I have to do some server side validation. I
cannot
> use the form event as I need this to submit the form data to the
database.
>
> I'm using an onblurr event on the text boxes to open an asp page to do
the
> checks & return an error is there is one. I can get it to work but...
I'm
> having trouble passing the textbox value with the url.
>
> The asp page uses request.querystring to retreive the value.
>
> This is what I'm after:-
>
> onblur="Javascript:top.FS1Top.OpenDocWindow('../pages/CheckReviewer.asp?
> Rev=TEXT BOX VALUE HERE','CheckReviewer','30','30')"
>
> Thanks is advance
>