HTML Document syntax.. another set of questions
Posted: Tue Jun 29, 2010 7:48 pm
hi all,I am trying out a simple login function and i encountered 2 problems do anyone knows how to:
1) calling a method in a class to do the login validation
2) redirect from a html page to another in Jade? like asp response.redirect. after the user login, it will redirect to home page.
the following is my code... definitely somewhere went wrong...
begin
create cust transient;
accept:=cust.validateLogin(nametxt,pwdtxt); // validateLogin is a method i created under a class called Customer
if accept=true then
submitLogin:='<a href="'buildLink(CongApp)'"></a>'; //submitLogin is a button on the HTML
else
submitLogin:='<a href="'buildLink(CongApp)'"></a>';
endif;
return inheritMethod();
end;
1) calling a method in a class to do the login validation
2) redirect from a html page to another in Jade? like asp response.redirect. after the user login, it will redirect to home page.
the following is my code... definitely somewhere went wrong...
begin
create cust transient;
accept:=cust.validateLogin(nametxt,pwdtxt); // validateLogin is a method i created under a class called Customer
if accept=true then
submitLogin:='<a href="'buildLink(CongApp)'"></a>'; //submitLogin is a button on the HTML
else
submitLogin:='<a href="'buildLink(CongApp)'"></a>';
endif;
return inheritMethod();
end;