<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana>I have a login form in which you enter your username and
password. Once this information is validated, I want to go to another webpage.
How do I do this?</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Here's my problem code...</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>I render the login form in #renderContentOn: of my main
page like so...</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana> html render: login.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>My login form has the following #renderContentOn:
...</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>renderContentOn: html<BR> html paragraph: 'Your
email address is your username.'.<BR> self renderStatusMessageOn:
html.<BR> <BR> html form:<BR> [html
div<BR> class: 'row';<BR> with:
<BR> [html span<BR> class:
'formlabel';<BR> with: [html text: 'your
username'].<BR> html
span<BR> class:
'forminput';<BR> with: [html textInput on:
#emailAddress of: user]].<BR> html div<BR> class:
'row';<BR> with: <BR> [html
span<BR> class:
'formlabel';<BR> with: [html text: 'your
password'].<BR> html
span<BR> class:
'forminput';<BR> with: [(html textInput type:
'password') on: #password of: user]].<BR> html
div<BR> class: 'spacer';<BR> with: '
'.<BR> html div<BR> class:
'row';<BR> with: <BR> [html
span<BR> class:
'formlabel';<BR> with: [html text:
''].<BR> html
span<BR> class:
'forminput';<BR> with:
<BR> [((html
submitButton<BR> class: 'submit') on:
#save of: self) text: 'submit']]]</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>On "save" I want to go to another page represented by
class #GSServiceCentre. Right now, I have a test statement to verify that this
GSServiceCentre page renders correctly:</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana> html anchor callback: [self call:
GSServiceCentre new]; with: 'service centre']].</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>I click on "service centre" and it brings me to my
desired page. But I want to do this on "save" in my login form. I don't know how
to do that. If I simply make a call to #GSServiceCentre like so:</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana> self call: GSServiceCentre
new</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>it renders the desired page as a component replacing the
login form, which is not what I want.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Anyway, I hope I made myself clear. Can anyone
help?</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Thanks.</FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Regards,</FONT></DIV>
<DIV><FONT face=Verdana>Richard</FONT></DIV></BODY></HTML>