Thanks for your reply its much appreciated. I understand the process
of servier client side processes, and have a webapp that uses them
fine for getting dynamic data displaying it etc.

But after login i want to show them the toolbar with their extra items
etc but i cant even do a full post back without the iui js jumping in
and loading it in the main toolbar as 99% of the time you want to
happen. I am sure there must be away to refresh the toolbar as the
thread i attached above shows but why is something easy not integrated
into the iui code ie a link to the main page with refresh content etc
or simiiar that overides all else.

Thanks again. Sorry if i did not explain my problem well enough


On Jun 28, 11:02 am, Remi Grumeau <[email protected]> wrote:
> On Tuesday, June 28, 2011, Jonathan <[email protected]> wrote:
> > granted you need to but how with iui. I am having the same problem as
> > this thread 
> > now:http://groups.google.com/group/iphonewebdev/browse_thread/thread/f460...
>
> Login is a pretty much serverside process, frontend doesn't have so
> much to say here...
>
> > Surely there is a simpler way to handles this with MVC. I have even
> > tried response.redirect to the main page but then it loads the main
> > page again insided the current toolbar. Please help.
>
> Which is the actual normal process. A login page with a form, that you
> submit via JS or plain POST submission... and detect if login/pass is
> ok server side. If not, just render the form again with a clear prompt
> message ("wrong pass", "no account with this ident", ...) and if
> login/pass is ok, redirect to the "index" of your app. On load, this
> "index" should normally test session if ident / token is ok and render
> your app (and if not, redirect to login form).
>
> If you deal with session or cookies (or anything in headers), just
> forget about ajax form submission ...
>
> R.
>
> --
>
> Kinds Regards,
> Remi Grumeau

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to