PDA

View Full Version : Gate for ExtJS or Sencha Touch



Shining77
20 Feb 2012, 9:18 AM
Hi there,

is there a useful method or gate to check which client does the request?

For instance:
The client is Firefox then I want to render an ExtJS view
When the client is a mobile client like iPad I want to render Sencha touch

mitchellsimoens
20 Feb 2012, 9:33 AM
I would add a default header to distinguish what framework it came from.

Shining77
20 Feb 2012, 10:08 AM
What do you mean with default header? Can you give me an example?

mitchellsimoens
20 Feb 2012, 10:25 AM
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Ajax-property-defaultHeaders