Hi Danial,
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
Printable View
Hi Danial,
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.Quote:
Originally Posted by lchi
Danial
Hi Danial,
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 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;
}
}
}
What is this part for document.formTable.selTable.focus();??? Can you explain what the focus is for???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>
Thanks
Irwin
Yep I remember now.:thumb:
Ok now tell me what exactly do you want to Validate?
Hi Danial,
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.Quote:
Originally Posted by lchi
Now paste the javascript code in the <head> section along with the other Javascript code.
Change the first line of our form to this :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;
}
}
Happy CodingCode:<form action="page3.asp" method="post" name="moveData" id="moveData" onsubmit="return Check()">
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.
Thanks
Irwin