Page 1 of 1

HTML Document syntax.. another set of questions

Posted: Tue Jun 29, 2010 7:48 pm
by ken chiam
hi all,I am trying out a simple login function and i encountered 2 problems :cry: 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;

Re: HTML Document syntax.. another set of questions

Posted: Tue Aug 03, 2010 2:10 pm
by ken chiam
The redirect is simple , just use goToPage:=Welcome //welcome is the next html page that is redirected to