Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>



Redirection for iPhone, iPod, iPad browser
In case you want to show a different web application for users of a desktop browser versus users of an iPhone, iPod, iPad browser, following code can be added in the server controller to redirect:
procedure TIWServerController.IWServerControllerBaseBeforeDispatch( Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean); begin if (Pos('iPhone',Request.UserAgent) <> 0) or (Pos('iPod',Request.UserAgent) <> 0) or (Pos('iPad',Request.UserAgent) <> 0) then begin Response.SendRedirect(URLOFMOBILEWEBAPP); Handled := True; end; end;