I have a problem. Do you remember that time you help me to create the web page pageDan2.asp? Do you remember the part which move data. How do you do the javascript like the one you did on the addIP, removeIP and getIP.
I have a problem. Do you remember that time you help me to create the web page pageDan2.asp? Do you remember the part which move data. How do you do the javascript like the one you did on the addIP, removeIP and getIP.
Thanks
Irwin
Yes i remember, but what JavaScript do you need, i cant remember the JavaScript for AddIP,RemoveIP etc. Can you refresh my memory, or explain, i will see what i can do.
function Submit(action)
{
//alert(action=="AddIP")
if (action=="GetIP")
{
if (document.formTable.selTable.selectedIndex==0)
{
alert("Please select a Table Name");
document.formTable.selTable.focus();
return;
}
}
}
This is the javascript you did for the GetIP button. But now I want one javascript on the moveData part. I did something like this, but it did not seem to work. I set the form to check it onSubmit.
Code:
function Check(action)
{
if ((document.moveData.VB.value=="") && (document.moveData.BAT.value==""))
{
alert("Please select a VB Script & Batch file");
return;
}
if (document.moveData.VB.value=="")
}
alert("Please select a VB Script");
return;
{
if (document.moveData.BAT.value=="")
}
alert("Please select a Batch file");
return;
{
if (action=="")
}
alert("Please select a Table Name");
return;
}
}
</script>
What is this part for document.formTable.selTable.focus();??? Can you explain what the focus is for???
I want to validate everything in the form moveData. I did some code as shown in the last post are they right or wrong. Or maybe you have another solution.
I want to validate everything in the form moveData. I did some code as shown in the last post are they right or wrong. Or maybe you have another solution.
Thanks
Irwin
I didnt see that you poster some code in your prev post.
Now paste the javascript code in the <head> section along with the other Javascript code.
Code:
function Check()
{
if (document.moveData.VB.value=="")
{
alert("Please select a VB Script");
return false;
}
if (document.moveData.BAT.value=="")
{
alert("Please select a Batch file");
return false;
}
}
Thanks I work to some extend. But the error is still showing.
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
/mysite/page3.asp, line 56
How do you prevent this from happening?
The error is there because there is no table name to send to on the next page.