HTML Document syntax.. another set of questions

For questions and postings not covered by the other forums
ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

HTML Document syntax.. another set of questions

Postby ken chiam » Tue Jun 29, 2010 7:48 pm

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;

ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Re: HTML Document syntax.. another set of questions

Postby ken chiam » Tue Aug 03, 2010 2:10 pm

The redirect is simple , just use goToPage:=Welcome //welcome is the next html page that is redirected to


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 39 guests